@import url("/css/payhot-profile-reference.css?v=profile-reference-v34");

:root {
  --bg: #f0f4f8;
  --white: #ffffff;
  --ink: #1d1d1d;
  --muted: #67768c;
  --soft: #e0e5ea;
  --line: rgba(46, 74, 105, 0.1);
  --red: #fd2226;
  --green: #00d512;
  --shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
  --font-ui: "Inter", Arial, sans-serif;
  --font-title: "Onest", Arial, sans-serif;
  --font-number: "Red Hat Display", "Onest", Arial, sans-serif;
  --font-code: "Fira Code", monospace;
}

/* PayHot profile runtime */
.profile-payhot-page {
  --profile-green: #9fff2e;
  --profile-green-dark: #6dd812;
  --profile-ink: #111111;
  --profile-muted: #7b7f88;
  --profile-line: #e7e7e7;
  --profile-card: #ffffff;
  --profile-soft: #f6f7f8;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px 20px 72px;
  color: var(--profile-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-payhot-page *,
.profile-drawer-layer * {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 124px;
}

.profile-title-row img {
  width: 52px;
  height: 52px;
}

.profile-title-row h1,
.profile-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-title-row p,
.profile-panel header p {
  margin: 7px 0 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.4;
}

.profile-refresh {
  margin-left: auto;
  height: 44px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}

.profile-identity-card {
  position: relative;
  min-height: 190px;
  border-radius: 8px;
  background: #181818;
  color: #fff;
  overflow: hidden;
  padding: 18px;
  display: grid;
  align-content: end;
  box-shadow: 0 18px 44px rgba(17, 17, 17, .14);
}

.profile-identity-card::before {
  content: "";
  position: absolute;
  inset: auto -44px -80px auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: var(--profile-green);
}

.profile-card-status {
  position: absolute;
  top: 16px;
  z-index: 1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.profile-card-status-merchant {
  left: 16px;
  background: var(--profile-green);
  color: #111;
}

.profile-card-status-mode {
  right: 16px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.profile-avatar-frame {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 1;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.profile-avatar-frame img {
  width: 40px;
  height: 40px;
}

.profile-card-login-label,
.profile-identity-card span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.profile-identity-card strong {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-size: 24px;
}

.profile-panel {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-card);
  padding: 22px;
  margin-top: 18px;
}

.profile-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.payhot-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contacts-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 1.2fr);
}

.payhot-field-card,
.drawer-field {
  display: grid;
  gap: 8px;
}

.payhot-field-card span,
.drawer-field span {
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 600;
}

.payhot-field-card input,
.drawer-field input,
.profile-inline-form input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 15px;
  color: #111;
  font-size: 14px;
  outline: none;
}

.payhot-field-card input:focus,
.drawer-field input:focus,
.profile-inline-form input:focus {
  border-color: var(--profile-green-dark);
  box-shadow: 0 0 0 3px rgba(159, 255, 46, .22);
}

.telegram-bot-card,
.external-service-card,
.security-metrics > div,
.security-lists > article,
.password-card,
.access-row {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-soft);
}

.telegram-bot-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.profile-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.profile-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--profile-green-dark);
}

.bot-status-row,
.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bot-status-row span,
.profile-muted {
  color: var(--profile-muted);
  font-size: 13px;
}

.payhot-primary,
.payhot-secondary,
.drawer-primary,
.drawer-secondary,
.access-open-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.payhot-primary,
.drawer-primary,
.access-open-button {
  background: var(--profile-green);
  color: #111;
}

.payhot-secondary,
.drawer-secondary {
  background: #fff;
  color: #111;
  border: 1px solid var(--profile-line);
}

.profile-message {
  margin: 0 0 14px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}

.profile-message.is-error {
  background: #fff0f0;
  color: #b3261e;
}

.profile-message.is-success {
  background: #efffe2;
  color: #377800;
}

.twofa-connect-card {
  position: relative;
  min-height: 230px;
  border-radius: 8px;
  background: #171717;
  color: #fff;
  overflow: hidden;
  padding: 22px;
  display: grid;
  align-content: end;
  justify-items: start;
}

.twofa-connect-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--profile-green);
}

.twofa-connect-card img {
  position: absolute;
  right: 42px;
  top: 58px;
  z-index: 1;
  width: 78px;
  height: 78px;
}

.twofa-connect-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.15;
}

.qr-status-card {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.qr-status-card strong {
  color: #fff;
  font-size: 16px;
}

.twofa-added-card-runtime {
  position: relative;
  min-height: 248px;
  border-radius: 8px;
  background: #f3f5f2;
  overflow: hidden;
  padding: 24px;
}

.twofa-added-card-runtime::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 52%, rgba(159, 255, 46, .55), transparent 28%);
  pointer-events: none;
}

.twofa-card-reference {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: min(330px, 42%);
  max-height: 100%;
  object-fit: contain;
}

.twofa-status-label {
  display: block;
  color: var(--profile-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.twofa-pill {
  position: relative;
  z-index: 1;
  display: table;
  border-radius: 999px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.twofa-pill-connected {
  background: var(--profile-green);
  color: #111;
}

.twofa-pill-provider {
  background: #fff;
  color: #111;
}

.twofa-card-toggle {
  position: absolute;
  left: 24px;
  bottom: 32px;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #d2d4d7;
  cursor: pointer;
}

.twofa-card-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s ease;
}

.twofa-card-toggle.is-on {
  background: var(--profile-green-dark);
}

.twofa-card-toggle.is-on::after {
  transform: translateX(20px);
}

.twofa-card-caption {
  position: absolute;
  left: 84px;
  bottom: 36px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.external-auth-grid,
.security-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.external-service-card {
  min-height: 128px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.external-service-card span,
.security-metrics span,
.password-card span,
.access-row span {
  color: var(--profile-muted);
  font-size: 13px;
}

.external-service-card strong,
.security-metrics strong {
  font-size: 18px;
}

.profile-action-row.compact {
  gap: 6px;
}

.profile-action-row.compact .payhot-secondary {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.profile-command-box {
  margin-top: 14px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.profile-command-box span,
.profile-command-box small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.profile-command-box strong {
  overflow-wrap: anywhere;
}

.security-metrics > div {
  padding: 15px;
  display: grid;
  gap: 7px;
}

.security-note {
  color: var(--profile-muted);
  font-size: 13px;
  margin: 14px 0;
}

.security-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-lists > article {
  padding: 16px;
}

.security-lists h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.profile-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.security-row,
.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-top: 8px;
}

.security-row button {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: #fff;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
}

.security-row small,
.security-row em {
  color: var(--profile-muted);
  font-size: 12px;
  font-style: normal;
}

.password-card {
  width: min(100%, 430px);
  min-height: 122px;
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.password-card strong {
  font-size: 26px;
  letter-spacing: 3px;
}

.access-list {
  display: grid;
  gap: 10px;
}

.access-open-button {
  justify-self: start;
}

.profile-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 100svh;
  min-height: 100dvh;
  max-width: 100%;
}

.profile-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .36);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.profile-drawer {
  position: relative;
  z-index: 1;
  width: min(512px, 100%);
  height: 100svh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-y: auto;
  background: #fff;
  padding: 34px 28px 40px;
  box-shadow: -22px 0 60px rgba(0, 0, 0, .18);
  display: grid;
  align-content: start;
  gap: 20px;
}

.profile-drawer h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.profile-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f4;
  color: #111;
  font-size: 24px;
  cursor: pointer;
}

.profile-drawer-body {
  display: grid;
  gap: 14px;
}

.drawer-primary,
.drawer-secondary {
  width: 100%;
}

.profile-drawer-dropdown {
  width: 100%;
}

.profile-drawer-dropdown .payhot-dropdown-button,
.profile-drawer-dropdown .payhot-dropdown-menu {
  width: 100%;
  --payhot-dropdown-width: 100%;
}

.twofa-drawer-provider {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid var(--profile-line);
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-weight: 700;
}

.twofa-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
  color: #343840;
  font-size: 14px;
}

.qr-secret-box {
  border-radius: 8px;
  background: #f5f6f7;
  padding: 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.qr-secret-box img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.qr-secret-box strong {
  text-align: center;
  overflow-wrap: anywhere;
}

.drawer-confirm-copy {
  border-radius: 8px;
  background: #f5f6f7;
  padding: 18px;
  font-size: 16px;
  line-height: 1.45;
  color: #111;
}

@media (max-width: 1100px) {
  .profile-hero,
  .contacts-grid,
  .payhot-profile-grid,
  .external-auth-grid,
  .security-metrics,
  .security-lists {
    grid-template-columns: 1fr;
  }

  .profile-title-row {
    min-height: auto;
    align-items: flex-start;
  }

  .profile-refresh {
    margin-left: 0;
  }

  .profile-panel > header,
  .profile-title-row {
    flex-direction: column;
  }

  .profile-inline-form,
  .security-row,
  .access-row {
    grid-template-columns: 1fr;
  }

  .twofa-card-reference {
    opacity: .36;
    width: 220px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: #dfe7ef;
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.figma-frame {
  position: relative;
  width: 1440px;
  min-height: var(--frame-height, 1214px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  background: var(--bg);
}

.figma-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.88), transparent 17%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.48), transparent 15%);
}

.cabinet-shell-underlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-width: 0;
  min-height: var(--frame-height, 1214px);
  isolation: isolate;
  overflow: visible;
  transition: filter 160ms ease;
}

.page-title {
  position: absolute;
  left: 392px;
  top: 109px;
  width: 342px;
  height: 58px;
}

.page-title h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 29px;
  font-weight: 500;
}

.page-title h1 img {
  width: 24px;
  height: 24px;
}

.page-title p,
.metrics-title p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
  font-weight: 500;
}

.quick-actions {
  position: absolute;
  left: 392px;
  top: 327px;
  z-index: 2;
  width: 504px;
  height: 186px;
}

.quick-card {
  position: absolute;
  top: 0;
  height: 186px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-card::before {
  content: "";
  position: absolute;
  width: 271px;
  height: 47px;
  right: -120px;
  top: 78px;
  border-radius: 50%;
  background: #ff8486;
  filter: blur(26px);
  transform: rotate(52deg);
}

.quick-card span {
  position: absolute;
  left: 18px;
  top: 24px;
  color: #000;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 14px;
  font-weight: 500;
  z-index: 1;
}

.quick-card img {
  position: absolute;
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: hue-rotate(132deg) saturate(1.45) brightness(1.02);
}

.quick-card-payments {
  left: 0;
  width: 155px;
}

.quick-card-payments img {
  left: 36px;
  top: 54px;
}

.quick-card-docs {
  left: 163px;
  width: 175px;
}

.quick-card-docs img {
  left: 34px;
  top: 67px;
}

.quick-card-project {
  left: 346px;
  width: 156px;
}

.quick-card-project img {
  left: 21px;
  top: 65px;
}

.store-card {
  position: absolute;
  left: 392px;
  top: 625px;
  z-index: 1;
  width: 504px;
  height: 205px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: #111;
  box-shadow: var(--shadow);
}

.store-text {
  position: absolute;
  left: 92px;
  top: 62px;
  z-index: 1;
}

.store-text span {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.store-text strong {
  font-size: 20px;
  line-height: 18px;
  font-weight: 600;
}

.store-logo {
  position: absolute;
  left: 24px;
  top: 62px;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
}

.store-logo img {
  width: 20px;
  height: 20px;
}

.store-settings {
  position: absolute;
  right: 24px;
  top: 32px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.store-settings img {
  width: 18px;
  height: 18px;
}

.metrics-title {
  position: absolute;
  left: 927px;
  top: 109px;
  width: 441px;
}

.metrics-title h2 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 18px;
  font-weight: 500;
}

.metric-card {
  position: absolute;
  left: 927px;
  width: 441px;
  height: 205px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(240, 247, 255, 0.5));
}

.conversion-card {
  top: 199px;
}

.payments-card {
  top: 412px;
}

.amount-card {
  top: 625px;
}

.metric-card h3 {
  position: absolute;
  left: 24px;
  top: 21px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 14px;
  font-weight: 500;
}

.metric-card h3 img {
  width: 20px;
  height: 20px;
}

.metric-inner {
  position: absolute;
  left: 4px;
  top: 62px;
  width: 433px;
  height: 139px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-inner > strong {
  position: absolute;
  left: 24px;
  top: 24px;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 36px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 1px;
}

.metric-inner > strong small {
  font-size: 20px;
  line-height: 18px;
}

.metric-inner > p {
  position: absolute;
  left: 24px;
  top: 86px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.metric-check {
  position: absolute;
  left: 24px;
  top: 91px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8d96a3;
  font-size: 14px;
  font-weight: 500;
}

.metric-check b {
  color: var(--ink);
  font-weight: 600;
}

.check-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 213, 18, 0.3);
}

.check-dot img {
  width: 18px;
  height: 18px;
}

.donut {
  position: absolute;
  right: 45px;
  top: 24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 54%, transparent 55%),
    conic-gradient(var(--green) 0 273deg, #e0e5ea 273deg 360deg);
  opacity: 0.9;
}

.bars {
  position: absolute;
  right: 40px;
  bottom: 24px;
  width: 138px;
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.bars i {
  flex: 1 1 0;
  display: block;
  border-radius: 2px;
  background: #e0e5ea;
}

.bars i.active {
  position: relative;
  overflow: hidden;
  background: var(--green);
}

.bars i.active::before {
  content: "";
  position: absolute;
  inset: -40px;
  transform: rotate(-24deg);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 118px, transparent 118px 122px);
}

.line-chart {
  position: absolute;
  right: 44px;
  top: 43px;
  width: 126px;
  height: 58px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(0, 213, 18, 0.2), rgba(0, 213, 18, 0));
}

.line-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  border: 2px solid var(--green);
  clip-path: polygon(0 80%, 16% 60%, 33% 72%, 50% 38%, 66% 56%, 83% 12%, 100% 24%, 100% 100%, 0 100%);
}

.stats-wide {
  position: absolute;
  left: 392px;
  width: 245px;
  height: 142px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stats-total {
  top: 199px;
}

.stats-sum {
  left: 651px;
  top: 199px;
}

.stats-wide h3 {
  margin: 24px 0 0 24px;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 14px;
  font-weight: 500;
}

.stats-wide strong {
  display: block;
  margin: 23px 0 0 24px;
  font-family: var(--font-number);
  font-size: 36px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 1px;
}

.stats-wide strong small {
  font-size: 20px;
  line-height: 18px;
}

.stats-wide p {
  margin: 12px 0 0 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.stats-wide b {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 22px;
  margin: 0 6px;
  color: #fff;
  border-radius: 1024px;
  background: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.daily-dynamics {
  position: absolute;
  left: 392px;
  top: 846px;
  width: 976px;
  height: 115px;
}

.daily-dynamics h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 18px;
  font-weight: 500;
}

.chat-panel {
  position: absolute;
  left: 1172px;
  top: 794px;
  z-index: 7;
  width: 260px;
  height: 420px;
  display: none;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  color: #fff;
  background: #111;
}

.figma-frame[data-state="chat"] .chat-panel {
  display: block;
}

.figma-frame[data-state="chat"] .chat-collapsed {
  display: none;
}

.chat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 34, 38, 0.7), transparent 34%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.96), rgba(10, 10, 10, 0.8)),
    url("/assets/dashboard/chat/chat-texture.png") center/cover;
}

.chat-head,
.chat-body,
.chat-message {
  position: absolute;
  z-index: 1;
}

.chat-head {
  left: 18px;
  top: 16px;
  width: 224px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: center 27%;
  border-radius: 50%;
}

.chat-head strong {
  display: block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
}

.chat-head small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
}

.chat-head button {
  margin-left: auto;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 19px;
  line-height: 1;
}

.chat-body {
  left: 4px;
  top: 69px;
  width: 252px;
  height: 351px;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.9);
}

.chat-brand {
  position: absolute;
  right: 13px;
  top: -55px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
}

.welcome-card {
  position: absolute;
  left: 36px;
  top: 24px;
  width: 180px;
  height: 190px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 28px;
  color: var(--ink);
  border-radius: 20px;
  background: #fff;
}

.welcome-card span {
  font-size: 30px;
  line-height: 1;
}

.welcome-card strong {
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 22px;
  font-weight: 500;
}

.welcome-card p {
  width: 141px;
  margin: 23px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 15px;
  font-weight: 500;
}

.chat-message {
  left: 12px;
  bottom: 8px;
  width: 236px;
  height: 84px;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
}

.chat-message > span {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 14px;
  font-weight: 500;
}

.chat-message div {
  position: absolute;
  left: 18px;
  bottom: 12px;
  display: flex;
  gap: 10px;
}

.chat-message div img {
  width: 18px;
  height: 18px;
}

.chat-message button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red);
}

.chat-message button img {
  width: 18px;
  height: 18px;
}

.notification-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.34);
  border-radius: 32px;
}

.notifications-drawer {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 31;
  width: 512px;
  height: 1198px;
  display: none;
  overflow: hidden;
  border-radius: 28px;
}

.notifications-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
}

.drawer-profile {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  z-index: 2;
  border-radius: 50%;
  background: #f0f4f8 url("/assets/dashboard/profile-menu/user.svg") center / 22px 22px no-repeat;
  border: 1px solid rgba(46, 74, 105, 0.1);
}

.drawer-panel {
  position: absolute;
  left: 8px;
  top: 76px;
  width: 496px;
  height: 1114px;
  z-index: 1;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer-panel h2 {
  position: absolute;
  left: 24px;
  top: -46px;
  margin: 0;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 22px;
  font-weight: 500;
}

.notification-list {
  position: absolute;
  left: 24px;
  top: 32px;
  width: 428px;
  height: 460px;
}

.notification-total {
  margin: 0 0 30px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.notification-item {
  position: relative;
  width: 428px;
  height: 44px;
  display: block;
  margin-bottom: 48px;
  padding: 0 0 0 58px;
  text-align: left;
  background: transparent;
}

.notification-item::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 44px;
  width: 4px;
  height: 48px;
  border-radius: 2px;
  background: #e0e5ea;
}

.notification-item:last-child::after {
  display: none;
}

.notification-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(224, 229, 234, 0.5);
}

.notification-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}

.notification-icon img {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.notification-item strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.notification-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
  font-weight: 500;
}

.notification-item.unread small {
  padding-left: 14px;
}

.notification-item.unread small::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 32px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.notification-item.reject .notification-icon img {
  transform: rotate(45deg);
}

.clear-notifications {
  position: absolute;
  left: 24px;
  bottom: 522px;
  width: 448px;
  height: 52px;
  border-radius: 1024px;
  background: #f0f4f8;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.socials {
  position: absolute;
  right: 64px;
  top: 132px;
  z-index: 1;
  display: flex;
  gap: 6px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.socials img {
  width: 18px;
  height: 18px;
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
}

.toast {
  min-width: 220px;
  margin-bottom: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Settlements reference transfer */
.figma-frame:has(.settlements-runtime-page) {
  --settlements-left: 392px;
  --settlements-right: 74px;
  --settlements-width: min(974px, calc(100% - var(--settlements-left) - var(--settlements-right)));
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: none;
  background: #f0f4f8;
}

body:has(.settlements-runtime-page) {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #f0f4f8;
}

.figma-frame:has(.settlements-runtime-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flow-root;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
  background: #f0f4f8;
}

.figma-frame:has(.settlements-runtime-page) .topbar {
  width: 100%;
  max-width: 100%;
}

.figma-frame:has(.settlements-runtime-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: calc(100% - 16px);
  max-width: 1424px;
  min-width: 0;
  height: 221px;
  margin-top: 64px;
  margin-right: 8px;
  margin-left: 8px;
  background: transparent;
}

.settlements-runtime-page,
.settlements-runtime-page * {
  box-sizing: border-box;
}

.settlements-runtime-page {
  position: relative;
  width: var(--settlements-width);
  min-height: max(calc(100dvh - 398px), 1047px);
  margin-left: var(--settlements-left);
  padding-top: 109px;
  padding-bottom: 40px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.settlements-content {
  position: relative;
  width: 100%;
  min-height: 1047px;
  z-index: 2;
}

.settlements-title {
  position: relative;
  width: min(520px, 100%);
  min-height: 58px;
}

.settlements-title img {
  position: absolute;
  left: -1px;
  top: 3px;
  width: 24px;
  height: 24px;
}

.settlements-title h1 {
  position: absolute;
  left: 36px;
  top: 0;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 28.8px;
  letter-spacing: -1px;
  font-weight: 500;
}

.settlements-title p {
  position: absolute;
  left: 0;
  top: 41px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 500;
}

.settlements-filter-wrap {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.settlements-runtime-page .status-filter {
  box-sizing: border-box;
  width: 130px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 8, 33, 0.04);
}

.settlements-runtime-page .status-filter img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.settlements-runtime-page .status-filter-arrow {
  transition: transform 0.18s ease;
}

.settlements-runtime-page .status-filter.is-open .status-filter-arrow,
.settlements-runtime-page .status-filter[aria-expanded="true"] .status-filter-arrow {
  transform: rotate(180deg);
}

.settlements-status-menu {
  position: absolute;
  right: 0;
  top: 48px;
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(103, 118, 140, 0.16);
  box-shadow: 0 18px 55px rgba(0, 8, 33, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.settlements-status-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.settlements-status-menu button.active,
.settlements-status-menu button:hover {
  background: #f0f4f8;
}

.settlements-stats {
  position: absolute;
  left: 0;
  top: 106px;
  width: 162px;
  height: 401px;
}

.settlements-stats .stats-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 99px;
}

.settlements-stats .stats-item h2 {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 14.4px;
  letter-spacing: -0.3px;
  font-weight: 500;
}

.settlements-stats .stats-item strong {
  position: absolute;
  left: 0;
  top: 38px;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 36px;
  line-height: 32.4px;
  letter-spacing: 1px;
  font-weight: 600;
}

.settlements-stats .stats-item p {
  position: absolute;
  left: 0;
  top: 82px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 500;
  white-space: nowrap;
}

.settlements-stats .stats-total {
  top: 155px;
  border-top: 0;
}

.settlements-stats .stats-total::after {
  display: none;
  content: none;
}

.settlements-stats .stats-new {
  top: 302px;
}

.settlements-stats .stats-separator {
  position: absolute;
  left: 0;
  top: 122px;
  width: 162px;
  height: 1px;
  background: #d4dce5;
}

.settlements-stats .stats-separator.second {
  top: 277px;
}

.settlement-grid {
  position: absolute;
  left: 170px;
  top: 107px;
  width: min(804px, calc(100% - 170px));
  display: grid;
  grid-template-columns: repeat(3, 264px);
  grid-auto-rows: 415px;
  gap: 16px 6px;
}

.settlement-card {
  position: relative;
  width: 264px;
  height: 415px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 0 5.32px rgba(0, 8, 33, 0.03),
    0 0 17.87px rgba(0, 8, 33, 0.04),
    0 0 80px rgba(0, 8, 33, 0.07);
  cursor: pointer;
}

.settlement-card:focus-visible {
  outline: 2px solid #2276fd;
  outline-offset: 4px;
}

.settlement-card .card-top {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 256px;
  height: 178px;
  border-radius: 20px;
  background: #f0f4f8;
}

.settlement-card .coin {
  position: absolute;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2.25px solid #fff;
  border-radius: 13.5px;
  overflow: hidden;
}

.settlement-card .coin img {
  max-width: 17px;
  max-height: 17px;
  display: block;
}

.settlement-card .coin-usdt {
  left: 14px;
  background: #009393;
}

.settlement-card .coin-btc {
  left: 14px;
  background: #f7931a;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
}

.settlement-card .coin-eth {
  left: 14px;
  background: #fff;
}

.settlement-card .coin-network {
  left: 45px;
  background: #2276fd;
}

.settlement-card.status-failure .coin-network,
.settlement-card.status-pending .coin-network {
  background: #67768c;
}

.settlement-card .status-pill {
  position: absolute;
  left: 14px;
  top: 134px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 8px 2px;
  border-radius: 128px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.settlement-card .status-pill img {
  width: 12px;
  height: 12px;
}

.settlement-card.status-success .status-pill {
  width: 100px;
  color: #fff;
  background: #00d512;
}

.settlement-card.status-pending .status-pill {
  width: 96px;
  color: #7f3e00;
  background: #fddd2d;
}

.settlement-card.status-failure .status-pill {
  width: 96px;
  color: #fff;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.settlement-card .settlement-id {
  position: absolute;
  left: 18px;
  top: 66px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 500;
}

.settlement-card h2 {
  position: absolute;
  left: 18px;
  top: 90px;
  max-width: 220px;
  margin: 0;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 14.4px;
  letter-spacing: -0.3px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settlement-card dl,
.settlement-card dt,
.settlement-card dd {
  margin: 0;
}

.settlement-card .field {
  position: absolute;
  left: 18px;
  display: block;
}

.settlement-card .field dt {
  margin: 0 0 8px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 500;
}

.settlement-card .field dd {
  max-width: 210px;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settlement-card .field-created {
  top: 200px;
}

.settlement-card .field-rub {
  top: 266px;
}

.settlement-card .field-rate {
  left: 94px;
  top: 266px;
}

.settlement-card .field-usdt {
  top: 332px;
}

.settlements-state {
  position: absolute;
  left: 170px;
  top: 107px;
  width: min(804px, calc(100% - 170px));
  min-height: 415px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  color: #67768c;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 80px rgba(0, 8, 33, 0.07);
}

.settlements-error {
  color: #ec0a46;
}

.settlements-runtime-page .more-button {
  position: absolute;
  left: 438px;
  top: 993px;
  width: 266px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.settlements-runtime-page .more-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.settlements-toast {
  position: fixed;
  right: 28px;
  top: 88px;
  z-index: 220;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 20px 60px rgba(0, 8, 33, 0.18);
  animation: toast-in 180ms ease-out;
}

.settlements-toast.success {
  border-left: 4px solid #00d512;
}

.settlements-runtime-page .detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.settlement-detail-panel,
.settlement-detail-panel * {
  box-sizing: border-box;
}

.settlement-detail-panel {
  position: fixed;
  right: 8px;
  top: 24px;
  bottom: 24px;
  width: 512px;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 32px;
  font-family: var(--font-ui);
  color: #1d1d1d;
  scrollbar-width: thin;
}

.settlement-detail-panel .detail-outer {
  position: absolute;
  left: 0;
  top: 0;
  width: 512px;
  height: 1150px;
  min-height: calc(100dvh - 48px);
  border-radius: 32px;
  background: #f0f4f8;
}

.settlement-detail-panel .detail-inner {
  position: absolute;
  left: 8px;
  top: 118px;
  width: 496px;
  height: 1010px;
  border-radius: 24px;
  background: #fff;
}

.settlement-detail-panel .detail-close {
  position: sticky;
  left: 456px;
  top: 12px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-left: 456px;
  border: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow:
    0 0 10.02px rgba(0, 0, 0, 0.12),
    0 0 80px rgba(0, 0, 0, 0.23);
  cursor: pointer;
}

.settlement-detail-panel .detail-close img {
  width: 14px;
  height: 14px;
}

.settlement-detail-panel h2 {
  position: absolute;
  left: 32px;
  top: 30px;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 21.6px;
  letter-spacing: -1px;
  font-weight: 500;
}

.settlement-detail-panel .detail-status,
.settlement-detail-panel .confirm-status {
  position: absolute;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 8px 2px;
  border-radius: 128px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: -0.3px;
  font-weight: 600;
  white-space: nowrap;
}

.settlement-detail-panel .detail-status {
  left: 32px;
  top: 64px;
  width: 100px;
  color: #fff;
  background: #00d512;
}

.settlement-detail-panel .detail-status.status-processing {
  width: 104px;
  color: #7f3e00;
  background: #fddd2d;
}

.settlement-detail-panel .detail-status.status-declined {
  width: 100px;
  color: #fff;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.settlement-detail-panel .detail-status img {
  width: 12px;
  height: 12px;
}

.settlement-detail-panel .confirm-status {
  left: 138px;
  top: 64px;
  width: 153px;
  color: #00d512;
  background: rgba(0, 213, 18, 0.1);
}

.settlement-detail-panel .merchant-card {
  position: absolute;
  left: 32px;
  top: 142px;
  width: 448px;
  height: 126px;
  border-radius: 20px;
  background: #f0f4f8;
}

.settlement-detail-panel .merchant-icon {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 24px;
  height: 24px;
}

.settlement-detail-panel .merchant-label,
.settlement-detail-panel .merchant-name {
  position: absolute;
  left: 24px;
  margin: 0;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.settlement-detail-panel .merchant-label {
  top: 60px;
  color: #67768c;
  font-size: 14px;
}

.settlement-detail-panel .merchant-name {
  top: 83px;
  max-width: 390px;
  overflow: hidden;
  color: #1d1d1d;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settlement-detail-panel .detail-fields {
  position: absolute;
  inset: 0;
}

.settlement-detail-panel .detail-field {
  position: absolute;
  width: 200px;
  min-height: 48px;
}

.settlement-detail-panel .detail-field span,
.settlement-detail-panel .detail-comment span,
.settlement-detail-panel .commission-field span {
  display: block;
  margin: 0 0 12px;
  color: #67768c;
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.settlement-detail-panel .detail-field strong,
.settlement-detail-panel .detail-comment strong,
.settlement-detail-panel .commission-field strong {
  display: block;
  color: #1d1d1d;
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.settlement-detail-panel .detail-field strong small {
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
}

.settlement-detail-panel .detail-field.created {
  left: 32px;
  top: 286px;
  width: 360px;
}

.settlement-detail-panel .detail-field.updated {
  left: 32px;
  top: 366px;
}

.settlement-detail-panel .detail-field.rate {
  left: 249px;
  top: 366px;
}

.settlement-detail-panel .sum-box {
  position: absolute;
  left: 32px;
  top: 438px;
  width: 448px;
  height: 432px;
  border-radius: 20px;
  background: #f0f4f8;
}

.settlement-detail-panel .sum-row {
  position: absolute;
  left: 18px;
  height: 40px;
}

.settlement-detail-panel .rub-row {
  top: 26px;
}

.settlement-detail-panel .crypto-row {
  top: 114px;
  width: 412px;
}

.settlement-detail-panel .token-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13.5px;
}

.settlement-detail-panel .token-icon img {
  max-width: 16.2px;
  max-height: 16.4px;
}

.settlement-detail-panel .rub-token {
  background: #2276fd;
}

.settlement-detail-panel .usdt-token {
  background: #009393;
}

.settlement-detail-panel .sum-copy {
  position: absolute;
  left: 52px;
  top: -2px;
  width: 190px;
}

.settlement-detail-panel .sum-copy small,
.settlement-detail-panel .network-copy small,
.settlement-detail-panel .copy-label {
  display: block;
  color: #67768c;
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.settlement-detail-panel .sum-copy strong,
.settlement-detail-panel .network-copy strong {
  display: block;
  margin-top: 8px;
  color: #1d1d1d;
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.settlement-detail-panel .network-copy {
  position: absolute;
  left: 328px;
  top: -2px;
  width: 92px;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-align: right;
}

.settlement-detail-panel .network-copy strong {
  display: inline;
  margin: 0;
}

.settlement-detail-panel .network-copy img {
  width: 15.84px;
  height: 16.38px;
  flex: 0 0 auto;
}

.settlement-detail-panel .sum-divider {
  position: absolute;
  left: 18px;
  top: 88px;
  width: 412px;
  height: 1px;
  background: #d4dce5;
}

.settlement-detail-panel .copy-row {
  position: absolute;
  left: 4px;
  width: 440px;
  height: 88px;
  background: transparent;
}

.settlement-detail-panel .wallet-row {
  top: 176px;
}

.settlement-detail-panel .hash-row {
  top: 272px;
}

.settlement-detail-panel .copy-row-bg {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 16px;
}

.settlement-detail-panel .copy-label {
  position: absolute;
  left: 18px;
  top: 24px;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
}

.settlement-detail-panel .copy-address-bg {
  position: absolute;
  left: 97px;
  right: 8px;
  top: 8px;
  bottom: 8px;
  background: #f0f4f8;
  border-radius: 8px;
}

.settlement-detail-panel .copy-row code {
  position: absolute;
  left: 109px;
  top: 16px;
  right: 62px;
  max-height: 56px;
  display: block;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-all;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-code);
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 17px;
}

.settlement-detail-panel .copy-row button {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.settlement-detail-panel .copy-row button span {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 6px;
}

.settlement-detail-panel .copy-row button img {
  position: absolute;
  left: 29.5%;
  top: 29.5%;
  width: 40.9%;
  height: 40.9%;
}

.settlement-detail-panel .commission-field {
  position: absolute;
  left: 22px;
  top: 370px;
}

.settlement-detail-panel .detail-field.provider {
  left: 32px;
  top: 874px;
}

.settlement-detail-panel .detail-field.payout-id {
  left: 249px;
  top: 874px;
}

.settlement-detail-panel .detail-field.provider-status-field {
  left: 32px;
  top: 946px;
}

.settlement-detail-panel .detail-field.provider-error {
  left: 32px;
  top: 1018px;
  width: 360px;
}

.settlement-detail-panel .detail-field.payout-requested {
  left: 32px;
  top: 1090px;
}

.settlement-detail-panel .detail-field.payout-callback {
  left: 249px;
  top: 1090px;
}

.settlement-detail-panel .detail-field.provider strong,
.settlement-detail-panel .detail-field.payout-id strong,
.settlement-detail-panel .detail-field.provider-status-field strong,
.settlement-detail-panel .detail-field.payout-requested strong,
.settlement-detail-panel .detail-field.payout-callback strong {
  color: #67768c;
}

.settlement-detail-panel .detail-comment {
  position: absolute;
  left: 32px;
  width: 390px;
  min-height: 48px;
}

.settlement-detail-panel .detail-comment img {
  position: absolute;
  left: 0;
  top: 14px;
  width: 24px;
  height: 24px;
}

.settlement-detail-panel .detail-comment span,
.settlement-detail-panel .detail-comment strong {
  margin-left: 38px;
}

.settlement-detail-panel .merchant-comment {
  top: 900px;
}

.settlement-detail-panel .admin-comment {
  top: 970px;
}

.settlement-detail-panel .admin-comment strong {
  color: #67768c;
}

.settlement-detail-panel .confirm-line {
  position: absolute;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.settlement-detail-panel .confirm-line.first {
  top: 1050px;
}

.settlement-detail-panel .confirm-line.second {
  top: 1080px;
}

.settlement-detail-panel .confirm-line img {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.settlement-detail-panel .confirm-line.second img + img {
  margin-left: -12px;
}

.settlement-detail-panel .confirm-line span {
  color: #67768c;
}

.settlement-detail-panel .confirm-line strong {
  color: #1d1d1d;
  font-weight: 600;
}

.settlement-admin-panel {
  position: absolute;
  left: 8px;
  top: 1450px;
  width: 496px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
}

.settlement-admin-panel h3 {
  margin: 0 0 18px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 22px;
  font-weight: 600;
}

.settlement-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settlement-admin-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #67768c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.settlement-admin-grid label.wide {
  grid-column: 1 / -1;
}

.settlement-admin-grid input,
.settlement-admin-grid select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d4dce5;
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.settlement-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.settlement-admin-actions .primary-btn,
.settlement-admin-actions .ghost-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
}

.settlement-raw-details {
  margin-top: 16px;
  color: #67768c;
  font-size: 13px;
  font-weight: 600;
}

.settlement-raw-details pre {
  max-height: 140px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-family: var(--font-code);
  font-size: 12px;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .figma-frame:has(.settlements-runtime-page) {
    --settlements-left: 336px;
    --settlements-right: 32px;
  }

  .settlement-grid {
    grid-template-columns: repeat(2, 264px);
    width: 534px;
  }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1439px) {
  .figma-frame {
    transform: scale(var(--cabinet-frame-scale, 1));
    transform-origin: top left;
    margin: 0;
  }

  body {
    min-height: var(--cabinet-frame-scaled-height, var(--frame-height, 1214px));
  }
}

/* Operations pages are normal-flow backoffice surfaces. Keep this late in the
   shell stylesheet so reference-canvas selectors cannot pull them beneath the
   absolute desktop header or reintroduce a fixed 1440px rail. */
#figmaFrame.figma-frame.operations-shell,
#figmaFrame.figma-frame.operations-shell .cabinet-shell-underlay {
  min-width: 0;
  height: auto;
  overflow: visible;
}

#figmaFrame.figma-frame.operations-shell .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

#figmaFrame.figma-frame.operations-shell .cabinet-page-slot {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

@media (min-width: 768px) {
  #figmaFrame.figma-frame.operations-shell .cabinet-page-slot {
    padding: 109px 0 48px;
  }

  #figmaFrame.figma-frame.operations-shell .cabinet-page-slot > .cabinet-content-rail {
    box-sizing: border-box;
    position: relative;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-block: 0;
    margin-inline: clamp(20px, 4vw, 72px);
    margin-inline-start: clamp(280px, 26vw, 392px);
  }
}

@media (max-width: 767px) {
  #figmaFrame.figma-frame.operations-shell .cabinet-page-slot {
    padding: 0;
  }

  #figmaFrame.figma-frame.operations-shell .cabinet-content-rail {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}


/* Terminal editor owns its form geometry instead of inheriting page filter tracks. */
.admin-payhot-drawer.terminal-editor-drawer {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-section {
  display: grid;
  gap: 14px;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  min-width: 0;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .field > :is(input, select, textarea),
.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .readonly-value {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  color: #1d1d1d;
  background: #fff;
  font: 500 13px/1.2 var(--font-ui);
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .field > textarea {
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .readonly-value {
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  background: #f8faff;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-field--wide,
.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .check-row,
.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .module-card {
  grid-column: 1 / -1;
}

.admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .field-hint {
  min-height: 30px;
  color: #69788d;
  font: 500 11px/1.35 var(--font-ui);
}

@media (max-width: 620px) {
  .admin-payhot-drawer.terminal-editor-drawer {
    width: min(100vw - 20px, 760px);
  }

  .admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-payhot-drawer.terminal-editor-drawer .terminal-editor-field--wide,
  .admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .check-row,
  .admin-payhot-drawer.terminal-editor-drawer .terminal-editor-grid .module-card {
    grid-column: auto;
  }
}

/* Figma default frame alignment: node 1:255 */
.figma-frame {
  background: #f0f4f8;
}

.topbar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 1440px;
  height: 77px;
  background: linear-gradient(180deg, #caccda 0%, rgba(238, 245, 255, 0) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 0;
}

.brand {
  position: absolute;
  left: 72px;
  top: 18px;
  width: 155px;
  height: 36px;
}

.brand-logo {
  position: absolute;
  left: 0;
  top: 7px;
  width: 85px;
  height: 18px;
  object-fit: contain;
}

.theme-toggle {
  position: absolute;
  left: 101px;
  right: auto;
  top: 0;
  width: 54px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.theme-toggle-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 36px;
  border: 1.13px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.theme-toggle-thumb {
  position: absolute;
  left: 2.25px;
  top: 2.25px;
  width: 31.5px;
  height: 31.5px;
  border-radius: 144px;
  background: #fff;
  transition: left 180ms ease;
}

.theme-toggle.is-dark .theme-toggle-thumb {
  left: 20.25px;
}

.theme-toggle-thumb::before {
  content: "";
  position: absolute;
  left: 2.25px;
  top: 2.25px;
  width: 27px;
  height: 27px;
  border-radius: 1152px;
  background: #1d1d1d;
}

.theme-toggle-sun,
.theme-toggle-moon {
  position: absolute;
  left: 5.63px;
  top: 5.63px;
  z-index: 1;
  width: 20.25px;
  height: 20.25px;
  pointer-events: none;
}

.theme-toggle-sun {
  object-fit: contain;
}

.theme-toggle-moon {
  background: transparent;
}

.theme-toggle-moon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 12px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  box-shadow: -6px 0 0 2px #fff;
}

.balance-card {
  position: absolute;
  top: 10px;
  height: 57px;
  min-width: 0;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 8, 33, 0.02);
}

.balance-card-hold {
  left: 392px;
  width: 250px;
}

.balance-card-available {
  left: 650px;
  width: 415px;
}

.balance-icon {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
}

.balance-label {
  position: absolute;
  left: 56px;
  top: 9px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 15.4px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.balance-value-row {
  position: absolute;
  left: 56px;
  top: 26px;
  right: 14px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.balance-rub {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.balance-rub .balance-amount {
  font-size: 15px;
  line-height: 22.4px;
}

.balance-rub .balance-currency {
  font-size: 12px;
  line-height: 16.8px;
}

.balance-rub .balance-approx {
  color: #707784;
  font-size: 14px;
  line-height: 19.6px;
}

.balance-usdt {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  color: #707784;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 17px;
  font-weight: 500;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-usdt img {
  width: 13px;
  height: 11px;
}

.withdraw-button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 85px;
  height: 40px;
  color: #1d1d1d;
  border: 0;
  border-radius: 12px;
  background: #e1e5ea;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 240ms ease, color 240ms ease;
}

.withdraw-button:hover:not(:disabled) {
  background-color: #1d1d1d;
  color: #fff;
}

.balance-card-available .balance-icon {
  left: 18px;
}

.balance-card-available .balance-label,
.balance-card-available .balance-value-row {
  left: 58px;
}

.balance-card-available .balance-value-row {
  right: 14px;
}

.balance-card-available.has-withdraw-action .balance-value-row {
  right: 104px;
}

.bell-button {
  position: absolute;
  left: 1242px;
  top: 10px;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 57px;
  height: 57px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bell-button::before,
.profile-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 57px;
  height: 57px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  transition: background-color 240ms ease, background 240ms ease;
}

.bell-button:hover::before {
  background: #e1e5ea;
}

.bell-button img {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 33px;
  height: 33px;
  transform: none;
  transform-origin: center;
}

.bell-button span {
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 1024px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: none;
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
}

.notifications-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 70000;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  pointer-events: auto;
  isolation: isolate;
}

.notifications-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70000;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  border: 0;
  background: rgba(13, 19, 29, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: default;
  pointer-events: auto;
}

.header-notifications-modal {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 70001;
  width: 512px;
  height: 750px;
  max-height: none;
  overflow: hidden;
  color: var(--ink);
  border-radius: 32px;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.header-notifications-modal.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.header-notifications-modal,
.header-notifications-modal * {
  box-sizing: border-box;
}

.header-notifications-close {
  position: absolute;
  left: 456px;
  top: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.02px rgba(0, 0, 0, 0.12);
}

.header-notifications-close img {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.header-notifications-modal h2 {
  position: absolute;
  left: 32px;
  top: 30px;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 21.6px;
  font-weight: 500;
  letter-spacing: -1px;
}

.header-notifications-panel {
  position: absolute;
  left: 8px;
  top: 76px;
  width: 496px;
  height: 660px;
  border-radius: 24px;
  background: #fff;
}

.header-notifications-count {
  position: absolute;
  left: 24px;
  top: 32px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.header-notifications-timeline span {
  position: absolute;
  left: 44px;
  width: 4px;
  height: 48px;
  background: var(--bg);
}

.header-notification-item {
  position: absolute;
  left: 24px;
  width: 428px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.header-notification-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-notification-copy {
  position: absolute;
  left: 58px;
  top: 0;
  width: 370px;
  height: 44px;
  min-width: 0;
}

.header-notification-title {
  position: absolute;
  left: 0;
  top: 1px;
  max-width: 370px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-notification-date {
  position: absolute;
  left: 0;
  top: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: normal;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.header-notification-item.unread .header-notification-title,
.header-notification-item.unread .header-notification-date {
  color: var(--ink);
}

.header-notification-unread-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.header-notifications-empty {
  position: absolute;
  left: 24px;
  top: 90px;
  width: 448px;
  min-height: 96px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 20px;
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.header-notifications-actions {
  position: absolute;
  left: 24px;
  top: 535px;
  width: 448px;
  height: 116px;
}

.header-notifications-clear,
.header-notifications-all {
  position: absolute;
  left: 0;
  width: 448px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 13px;
  line-height: normal;
  font-weight: 700;
}

.header-notifications-clear {
  top: 0;
  color: var(--ink);
  border: 1px solid rgba(29, 29, 29, 0.2);
  background: transparent;
}

.header-notifications-clear:disabled {
  color: rgba(103, 118, 140, 0.5);
  cursor: default;
}

.header-notifications-all {
  top: 64px;
  color: #fff;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.profile-button {
  position: absolute;
  left: 1311px;
  top: 10px;
  width: 57px;
  height: 57px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-button img {
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: 1;
  width: 52px;
  height: 53px;
  padding: 14px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  border-radius: 13px;
  background: #f0f4f8;
}

.profile-dropdown-backdrop {
  position: absolute;
  left: -20px;
  top: -10px;
  z-index: 29;
  width: 1480px;
  height: 1224px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.profile-dropdown {
  position: absolute;
  left: 1148px;
  top: 75px;
  z-index: 30;
  width: 220px;
  height: 478px;
  color: #1d1d1d;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown,
.profile-dropdown * {
  box-sizing: border-box;
}

.profile-dropdown-surface {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03),
    0 0 17.87px rgba(0, 8, 33, 0.04),
    0 0 80px rgba(0, 8, 33, 0.07);
}

.profile-dropdown-status-label {
  position: absolute;
  left: 26px;
  top: 24px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.profile-dropdown-name {
  position: absolute;
  left: 26px;
  top: 55px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
}

.profile-dropdown-name img {
  width: 18px;
  height: 18px;
}

.profile-dropdown-name span {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.3px;
}

.profile-dropdown-premium {
  position: absolute;
  left: 8px;
  top: 95px;
  width: 204px;
  height: 112px;
  overflow: hidden;
  border: 1px solid #eff3f7;
  border-radius: 16px;
  background: #eff3f7;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.profile-dropdown-premium--active {
  height: 102px;
  border-color: #eff3f7;
  background:
    linear-gradient(180deg, rgba(73, 114, 206, 0.2) 0%, rgba(73, 114, 206, 0.1) 100%),
    #eff3f7;
}

.profile-dropdown-premium--active:focus-visible {
  outline: 2px solid #4972ce;
  outline-offset: 2px;
}

.profile-dropdown-premium-active-title,
.profile-dropdown-premium-active-badge,
.profile-dropdown-premium-active-benefits,
.profile-dropdown-premium-active-protection {
  position: absolute;
}

.profile-dropdown-premium-active-title {
  left: 18px;
  top: 18px;
  z-index: 2;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 15px;
}

.profile-dropdown-premium-active-badge {
  left: 86px;
  top: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 24px;
  padding: 1px 2px 2px;
  border-radius: 128px;
  color: #fff;
  background: #4972ce;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.profile-dropdown-premium-active-benefits {
  left: 18px;
  top: 51px;
  z-index: 2;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 16px;
}

.profile-dropdown-premium-active-protection {
  left: 50px;
  top: 0;
  z-index: 1;
  width: 154px;
  height: 102px;
  pointer-events: none;
}

.profile-dropdown-premium--active .profile-dropdown-premium-arrow {
  z-index: 3;
}

.profile-dropdown--premium-admin {
  height: 258px;
}

.profile-dropdown--premium-admin .profile-dropdown-premium {
  top: 24px;
}

.profile-dropdown--premium-admin .profile-dropdown-settings {
  top: 142px;
}

.profile-dropdown--premium-admin .profile-dropdown-exit-form {
  top: 206px;
}

.premium-modal-overlay .payhot-overlay-backdrop { background: rgba(240, 244, 248, .54); }
.premium-modal-overlay .payhot-overlay-panel.premium-modal-panel { --payhot-overlay-edge: 24px; --payhot-overlay-width: 684px; width: min(684px, calc(100dvw - 48px)); max-height: calc(100dvh - 48px); padding: 0; overflow-x: hidden; overflow-y: auto; border: 0; background: transparent; box-shadow: none; }
.prem-modal,
.prem-modal * { box-sizing: border-box; }
.prem-modal { position: relative; flex: 0 0 auto; width: 684px; height: 862px; max-width: 100%; overflow: hidden; border-radius: 24px; color: #1d1d1d; font-family: var(--font-ui); }
.prem-modal-bg { position: absolute; inset: 0; border: 1px solid rgba(46, 74, 105, .1); border-radius: 24px; background: linear-gradient(180deg, #fff 0%, #f0f7ff 64%); }
.prem-hero-glow,
.prem-hero-image { position: absolute; left: 377px; top: 7px; width: 350px; height: 350px; object-fit: contain; }
.prem-hero-glow { opacity: .55; filter: blur(32px); }
.prem-hero-image { z-index: 1; }
.prem-hero-tint { position: absolute; left: 436px; top: 17px; z-index: 2; width: 336px; height: 330px; background: #4368d2; mix-blend-mode: hue; pointer-events: none; }
.prem-close { position: absolute; left: 633px; top: 7px; z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.prem-close img { width: 59px; height: 58px; transform: translate(-7px, -7px); }
.prem-modal h1 { position: absolute; left: 30px; top: 47px; z-index: 3; width: 390px; margin: 0; color: #000; font-family: var(--font-title); font-size: 24px; font-weight: 500; line-height: 30px; letter-spacing: -1px; }
.prem-lead { position: absolute; left: 30px; top: 131px; z-index: 3; width: 378px; margin: 0; color: #1d1d1d; font-size: 14px; font-weight: 500; letter-spacing: -.3px; line-height: 24px; }
.prem-feature { position: absolute; z-index: 3; margin: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 5.32px rgba(0,8,33,.03), 0 0 17.87px rgba(0,8,33,.04), 0 0 80px rgba(0,8,33,.07); }
.prem-feature-icon { position: absolute; left: 18px; top: 19px; width: 36px; height: 36px; border-radius: 13px; background: linear-gradient(180deg, rgba(73,114,206,.2), rgba(73,114,206,.1)); }
.prem-feature-icon img { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; object-fit: contain; }
.prem-feature h2,
.prem-feature p { position: absolute; margin: 0; font-size: 14px; font-weight: 600; line-height: 22px; letter-spacing: -.3px; }
.prem-feature h2 { color: #1d1d1d; }
.prem-feature p { color: #67768c; }
.prem-feature-manager { left: 12px; top: 255px; width: 173px; height: 211px; }
.prem-feature-manager .prem-feature-icon img,
.prem-feature-invite .prem-feature-icon img { width: 18px; height: 18px; }
.prem-feature-manager .prem-feature-icon img { left: 11px; top: 9px; }
.prem-feature-invite .prem-feature-icon img { left: 9px; top: 9px; }
.prem-feature-manager h2 { left: 18px; top: 73px; width: 137px; }
.prem-feature-manager p { left: 18px; top: 127px; width: 131px; }
.prem-feature-telegram { left: 189px; top: 255px; width: 251px; height: 211px; }
.prem-feature-telegram h2 { left: 18px; top: 73px; width: 204px; }
.prem-feature-telegram p { left: 18px; top: 127px; width: 219px; }
.prem-feature-early { left: 444px; top: 255px; width: 228px; height: 211px; }
.prem-feature-early h2 { left: 18px; top: 73px; width: 187px; }
.prem-feature-early p { left: 18px; top: 127px; width: 198px; }
.prem-feature-settles { left: 12px; top: 470px; width: 428px; height: 195px; }
.prem-feature-settles h2 { left: 18px; top: 73px; }
.prem-feature-settles p { left: 18px; top: 105px; width: 396px; }
.prem-feature-chat { left: 444px; top: 470px; width: 228px; height: 195px; }
.prem-feature-chat h2 { left: 18px; top: 73px; width: 204px; }
.prem-feature-chat p { left: 18px; top: 104px; width: 219px; }
.prem-feature-invite { left: 12px; top: 669px; width: 195px; height: 181px; }
.prem-feature-invite h2 { left: 18px; top: 73px; }
.prem-feature-invite p { left: 18px; top: 105px; width: 155px; }
.prem-feature-channel { left: 211px; top: 669px; width: 251px; height: 181px; }
.prem-feature-channel h2 { left: 18px; top: 73px; width: 204px; }
.prem-feature-channel p { left: 18px; top: 105px; width: 219px; }
.prem-feature-meet { left: 466px; top: 669px; width: 206px; height: 181px; }
.prem-feature-meet h2 { left: 18px; top: 73px; }
.prem-feature-meet p { left: 18px; top: 105px; width: 155px; }

@media (max-width: 720px) {
  .premium-modal-overlay .payhot-overlay-panel.premium-modal-panel { --payhot-overlay-edge: 12px; width: calc(100dvw - 24px); max-height: calc(100dvh - 24px); }
  .prem-modal { max-width: none; }
}

.profile-dropdown-premium-title {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  color: #67768c;
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 700;
  line-height: 15px;
}

.profile-dropdown-premium-lock {
  position: absolute;
  left: 82px;
  top: 16px;
  z-index: 2;
  width: 18px;
  height: 18px;
}

.profile-dropdown-premium-subtitle {
  position: absolute;
  left: 18px;
  top: 50px;
  z-index: 2;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
}

.profile-dropdown-premium strong {
  position: absolute;
  left: 18px;
  top: 74px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
}

.profile-dropdown-premium-arrow {
  position: absolute;
  left: 168px;
  top: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
}

.profile-dropdown-premium-amount {
  font-size: 16px;
  line-height: 22.4px;
}

.profile-dropdown-premium-currency {
  font-size: 14px;
  line-height: 19.6px;
}

.profile-dropdown-premium-glow,
.profile-dropdown-premium-image {
  position: absolute;
  left: 110px;
  top: 20px;
  width: 92px;
  height: 92px;
  transform: rotate(0deg);
  transform-origin: top left;
}

.profile-dropdown-premium-glow {
  z-index: 0;
  filter: blur(32px);
}

.profile-dropdown-premium-image {
  z-index: 1;
}

.profile-dropdown-money {
  position: absolute;
  left: 8px;
  top: 215px;
  width: 204px;
  height: 149px;
  padding: 12px 10px;
  border-radius: 16px;
  background: #eff3f7;
}

.profile-dropdown-money-label {
  display: block;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.profile-dropdown-money strong {
  display: block;
  margin-top: 10px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.profile-dropdown-money strong span {
  font-size: 12px;
  text-transform: uppercase;
}

.profile-dropdown-money-left {
  display: block;
  margin-top: 10px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.profile-dropdown-money-left b {
  font-weight: 600;
}

.profile-dropdown-money-progress {
  position: absolute;
  left: 10px;
  top: 98px;
  width: 184px;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(225, 229, 234, 0.95);
}

.profile-dropdown-money-progress span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.profile-dropdown-money-scale {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 117px;
  display: flex;
  justify-content: space-between;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.profile-dropdown-money-scale span:first-child {
  color: rgba(103, 118, 140, 0.5);
}

.profile-dropdown-settings {
  position: absolute;
  left: 8px;
  top: 372px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 204px;
  height: 40px;
  padding: 0 24px;
  color: #1d1d1d;
  text-decoration: none;
  border-radius: 12px;
  background: #eff3f7;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}

.profile-dropdown-settings img {
  width: 18px;
  height: 18px;
}

.profile-dropdown-exit-form {
  position: absolute;
  left: 26px;
  top: 436px;
  margin: 0;
}

.profile-dropdown-exit {
  padding: 0;
  color: #67768c;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.6px;
  cursor: pointer;
}

.profile-dropdown.compact {
  height: 120px;
}

.profile-dropdown.compact .profile-dropdown-settings {
  top: 16px;
}

.profile-dropdown.compact .profile-dropdown-exit-form {
  top: 78px;
}

/* Shared PayHot dropdown */
.payhot-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #1d1d1d;
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.payhot-dropdown.is-open {
  z-index: 180;
}

.payhot-dropdown-button {
  box-sizing: border-box;
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  height: var(--payhot-dropdown-control-height, 42px);
  min-height: var(--payhot-dropdown-control-height, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.payhot-dropdown-dismiss {
  position: fixed;
  z-index: 179;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.payhot-dropdown-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.payhot-dropdown-leading,
.payhot-dropdown-arrow,
.payhot-dropdown-menu img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.payhot-dropdown-arrow {
  transition: transform 0.18s ease;
}

.payhot-dropdown.is-open .payhot-dropdown-arrow {
  transform: rotate(180deg);
}

.payhot-dropdown-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payhot-dropdown-menu {
  box-sizing: border-box;
  position: absolute;
  z-index: 180;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 100%;
  max-height: min(360px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(103, 118, 140, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 65px rgba(38, 56, 84, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.payhot-dropdown-dismiss.is-portal {
  z-index: var(--payhot-dropdown-dismiss-layer, 179);
}

.payhot-dropdown-menu.is-portal {
  position: fixed;
  left: var(--payhot-dropdown-left, 0);
  top: var(--payhot-dropdown-top, 0);
  width: var(--payhot-dropdown-width, 100%);
  min-width: var(--payhot-dropdown-width, 100%);
  max-width: var(--payhot-dropdown-width, 100%);
  max-height: var(--payhot-dropdown-max-height, min(360px, calc(100dvh - 24px)));
  z-index: var(--payhot-dropdown-layer, 180);
}

.payhot-dropdown-menu button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1d1d1d;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.payhot-dropdown-menu button span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payhot-dropdown-menu button.active,
.payhot-dropdown-menu button:hover {
  background: #f0f4f8;
  color: #fd2226;
}

.payhot-dropdown-menu button:disabled {
  cursor: default;
  opacity: 0.5;
}

.payhot-dropdown:focus-within .payhot-dropdown-button {
  border-color: rgba(253, 34, 38, 0.42);
  box-shadow: 0 0 0 3px rgba(253, 34, 38, 0.08);
}

.payhot-dropdown.field-box {
  --payhot-dropdown-control-height: 100%;
  padding: 0;
  overflow: visible;
}

.payhot-dropdown.field-box .payhot-dropdown-button {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  padding: 0 24px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
}

.payhot-field-mode-dropdown .payhot-dropdown-button {
  --payhot-dropdown-control-height: 42px;
  border-color: #dfe6ee;
  background: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-ui);
}

.field .payhot-dropdown,
.orders-runtime-page .orders-filter-panel .field .payhot-dropdown,
.disputes-runtime-page .disputes-filter-panel .field .payhot-dropdown,
.exports-field .payhot-dropdown,
.export-create-panel .create-field .payhot-dropdown {
  --payhot-dropdown-control-height: 42px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: 700 13px var(--font-ui);
}

.field .payhot-dropdown-button,
.orders-runtime-page .orders-filter-panel .field .payhot-dropdown-button,
.disputes-runtime-page .disputes-filter-panel .field .payhot-dropdown-button {
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background-color: #fff;
  color: #1d1d1d;
  padding: 0 14px 0 12px;
  font: 700 13px var(--font-ui);
}

.exports-field .payhot-dropdown,
.export-create-panel .create-field .payhot-dropdown {
  --payhot-dropdown-control-height: 44px;
}

.orders-runtime-page .orders-filter-panel,
.disputes-runtime-page .disputes-filter-panel,
.exports-filter-panel {
  position: relative;
  z-index: 900;
  overflow: visible;
}

.orders-runtime-page .orders-filter-panel .payhot-dropdown.is-open,
.disputes-runtime-page .disputes-filter-panel .payhot-dropdown.is-open,
.exports-filter-panel .payhot-dropdown.is-open {
  z-index: 1000;
}

.orders-runtime-page:has(.orders-filter-panel .payhot-dropdown.is-open) {
  overflow: visible;
}

.logout-form {
  position: absolute;
  left: 1376px;
  top: 10px;
  width: 57px;
  height: 57px;
  margin: 0;
}

.logout-button {
  position: absolute;
  left: 0;
  top: 0;
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.side-menu {
  position: absolute;
  left: 68px;
  top: 89px;
  z-index: 4;
  width: 282px;
  height: 724px;
  overflow: visible;
}

.side-menu-list {
  position: absolute;
  left: 0;
  top: 0;
  width: 282px;
  height: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 118, 140, 0.35) transparent;
}

.side-menu-list.with-create-link {
  top: 64px;
  height: 656px;
}

.side-menu-list::-webkit-scrollbar {
  width: 4px;
}

.side-menu-list::-webkit-scrollbar-track {
  background: transparent;
}

.side-menu-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 118, 140, 0.35);
}

.create-link-button {
  position: absolute;
  left: 0;
  top: 0;
  width: 282px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 37px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 19.6px;
  font-weight: 600;
  letter-spacing: 0;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.create-link-button strong {
  font-weight: 600;
}

.create-link-button .create-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.create-link-button .create-plus::before,
.create-link-button .create-plus::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.create-link-button .create-plus::after {
  transform: rotate(90deg);
}

.menu-link {
  position: relative;
  left: 4px;
  flex: 0 0 44px;
  width: 196px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 12px;
  color: #1d1d1d;
  font-size: 14px;
  line-height: 19.6px;
  font-weight: 500;
  letter-spacing: 0;
}

.menu-link span,
.menu-link img {
  position: relative;
  z-index: 1;
}

.menu-link img {
  width: 20px;
  height: 20px;
  opacity: 1;
}

.menu-link .menu-icon-active {
  display: none;
}

.menu-link.active {
  color: #fd2226;
  font-weight: 600;
  gap: 16px;
}

.menu-link.active::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -82px;
  top: -4px;
  bottom: -4px;
  border-radius: 16px;
  background: rgba(185, 193, 204, 0.2);
  z-index: -1;
}

.menu-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #fd2226;
}

.menu-link.active img {
  width: 44px;
  height: 44px;
  padding: 13px;
  margin-left: -12px;
  border-radius: 16px;
  background: transparent;
  filter: brightness(0) invert(1);
}

.menu-link.active .menu-icon-default {
  display: none;
}

.menu-link.active .menu-icon-active {
  display: block;
}

.menu-technical-group {
  position: relative;
  left: 4px;
  width: 196px;
}

.menu-technical-group__toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  border: 0;
  color: #1d1d1d;
  background: transparent;
  font: 500 14px/19.6px var(--font-ui);
  text-align: left;
  cursor: pointer;
}

.menu-technical-group__toggle img { width: 20px; height: 20px; }
.menu-technical-group__toggle i { width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.menu-technical-group__toggle.is-expanded { color: #ec0a46; font-weight: 600; }
.menu-technical-group__toggle.is-expanded i { transform: rotate(225deg) translateY(-2px); }
.menu-technical-group__items { display: grid; gap: 2px; margin: 0 0 5px 44px; padding: 2px 0 4px; border-left: 1px solid rgba(103, 118, 140, .24); }
.menu-technical-group__link { min-height: 31px; display: flex; align-items: center; padding: 0 11px; border-radius: 7px; color: #67768c; font: 500 12px/1.2 var(--font-ui); }
.menu-technical-group__link.active { color: #ec0a46; font-weight: 700; background: rgba(236, 10, 70, .07); }

.page-title {
  left: 392px;
  top: 109px;
  width: 342px;
}

.page-title h1 {
  font-size: 32px;
  line-height: 28.8px;
  font-weight: 500;
}

.page-title p {
  width: 348px;
  margin-top: 13px;
  color: #67768c;
  font-size: 14px;
  font-weight: 500;
}

.metrics-title {
  left: 927px;
  top: 109px;
  width: 441px;
  height: 58px;
}

.metrics-title h2 {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-size: 20px;
  line-height: 18px;
}

.metrics-title p {
  position: absolute;
  left: 0;
  top: 41px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.store-card {
  position: absolute;
  left: 392px;
  top: 199px;
  width: 490px;
  height: 104px;
  isolation: isolate;
  color: #fff;
}

.store-card-shadow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 490px;
  height: 104px;
  border-radius: 28px;
  overflow: visible;
  pointer-events: none;
}

.store-card-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 490px;
  height: 104px;
  border-radius: 28px;
  background: #1d1d1d;
  pointer-events: none;
}

.store-card-effect {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 490px;
  height: 104px;
  overflow: hidden;
  border-radius: 28px;
  pointer-events: none;
}

.store-card-texture,
.store-card-vignette {
  position: absolute;
  inset: 0;
  width: 490px;
  height: 104px;
  pointer-events: none;
}

.store-card-texture {
  object-fit: cover;
  mix-blend-mode: screen;
}

.store-card-texture-base {
  z-index: 1;
  opacity: 0.12;
  filter: grayscale(1) brightness(0.78);
  -webkit-mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.10) 33%, rgba(0, 0, 0, 0.50) 52%, rgba(0, 0, 0, 0.56) 72%, rgba(0, 0, 0, 0.08) 100%);
  mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.10) 33%, rgba(0, 0, 0, 0.50) 52%, rgba(0, 0, 0, 0.56) 72%, rgba(0, 0, 0, 0.08) 100%);
}

.store-card-texture-red {
  z-index: 2;
  opacity: 0.30;
  filter: brightness(0) saturate(100%) invert(20%) sepia(94%) saturate(5426%) hue-rotate(348deg) brightness(102%) contrast(109%);
  mix-blend-mode: plus-lighter;
  -webkit-mask-image:
    radial-gradient(ellipse 124px 62px at 372px 70px, #000 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.25) 62%, transparent 86%);
  mask-image:
    radial-gradient(ellipse 124px 62px at 372px 70px, #000 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.25) 62%, transparent 86%);
}

.store-card-vignette {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(29, 29, 29, 0.92) 0%, rgba(29, 29, 29, 0.78) 34%, rgba(29, 29, 29, 0.14) 55%, rgba(29, 29, 29, 0.32) 77%, rgba(29, 29, 29, 0.86) 100%),
    linear-gradient(180deg, rgba(29, 29, 29, 0.60) 0%, rgba(29, 29, 29, 0) 44%, rgba(29, 29, 29, 0.45) 100%);
}

.store-card-glow {
  position: absolute;
  z-index: 4;
  background: #d71f22;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

.store-card-glow-ellipse {
  left: 360.5px;
  top: 29.55px;
  width: 268.52px;
  height: 50.24px;
  border-radius: 50%;
  transform: rotate(51.384deg) scale(0.994, 1.006);
  transform-origin: 0 0;
  filter: blur(25.84px);
}

.store-card-glow-beam {
  left: 289.51px;
  top: 72.77px;
  width: 41.19px;
  height: 296.53px;
  transform: rotate(-32.195deg);
  transform-origin: 0 0;
  filter: blur(36.17px);
}

.store-logo {
  position: absolute;
  left: 24px;
  top: 28px;
  z-index: 4;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.store-logo-bg,
.store-logo-inner,
.store-logo-apple {
  position: absolute;
}

.store-logo-bg {
  inset: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
}

.store-logo-inner {
  left: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #000;
}

.store-logo-apple {
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  overflow: visible;
  filter: brightness(0) invert(1);
}

.store-copy {
  position: absolute;
  left: 92px;
  top: 24px;
  z-index: 4;
  width: 318px;
  min-width: 0;
  color: #fff;
}

.store-label {
  margin: 0 0 9px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
}

.store-title {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.5px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-settings {
  position: absolute;
  left: 422px;
  right: auto;
  top: 32px;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.store-settings-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.quick-actions {
  left: 392px;
  top: 327px;
  width: 490px;
  height: 186px;
}

.quick-card {
  height: 186px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-card-payments {
  width: 155px;
}

.quick-card-docs {
  left: 163px;
  width: 175px;
}

.quick-card-project {
  left: 346px;
  width: 144px;
}

.quick-card span {
  left: 18px;
  top: 24px;
  font-size: 18px;
  line-height: 14.4px;
  letter-spacing: -0.5px;
  font-weight: 500;
  z-index: 3;
}

.quick-card::before {
  display: none;
}

.quick-card .quick-arrow {
  position: absolute;
  left: 24px;
  top: 138px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
  z-index: 2;
}

.quick-card .quick-visual {
  position: absolute;
  object-fit: cover;
  filter: none;
  pointer-events: none;
  z-index: 1;
}

.quick-card-payments .quick-visual {
  left: 0;
  top: 0;
  width: 155px;
  height: 186px;
}

.quick-card-docs .quick-visual {
  left: 0;
  top: 0;
  width: 175px;
  height: 186px;
}

.quick-card-project .quick-visual {
  left: 0;
  top: 0;
  width: 144px;
  height: 186px;
}

.stats-wide {
  top: 541px;
  height: 126px;
  width: 245px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-top: 0;
}

.stats-total::before,
.stats-total::after {
  content: "";
  position: absolute;
  background: rgba(185, 194, 205, 0.4);
}

.stats-total {
  left: 392px;
  width: 490px;
  border-top: 1px solid rgba(185, 194, 205, 0.4);
}

.stats-total::before {
  left: 222px;
  top: 20px;
  width: 1px;
  height: 125px;
}

.stats-total::after {
  left: 0;
  top: 165px;
  width: 490px;
  height: 1px;
}

.stats-sum {
  left: 646px;
  width: 266px;
}

.stats-wide h3 {
  margin: 36px 0 0 0;
  color: #1d1d1d;
  font-size: 16px;
  line-height: 14.4px;
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.3px;
}

.stats-sum h3,
.stats-sum strong,
.stats-sum p {
  margin-left: 0;
}

.stats-wide strong {
  margin: 23px 0 0 0;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 36px;
  line-height: 32.4px;
  font-weight: 600;
  letter-spacing: 1px;
}

.stats-wide strong small {
  font-size: 20px;
  line-height: 18px;
  font-weight: 600;
}

.stats-wide p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.stats-wide b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 18px;
  padding: 0 6px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1;
  background: #00d512;
  border-radius: 128px;
}

.stats-sum b {
  min-width: 56px;
}

.conversion-card {
  top: 199px;
}

.payments-card {
  top: 412px;
}

.amount-card {
  top: 625px;
}

.metric-card h3 {
  left: 24px;
  top: 24px;
  display: block;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 19.6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1d1d1d;
}

.metric-inner {
  left: 3px;
  top: 61px;
  width: 433px;
  height: 139px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.metric-inner > strong {
  top: 24px;
  font-size: 36px;
  line-height: 32.4px;
}

.metric-inner > p {
  top: 99px;
}

.metric-check {
  top: 91px;
}

.conversion-chart,
.bar-chart,
.amount-chart {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.conversion-chart {
  right: 0;
  top: 0;
  width: 112px;
  height: 165px;
}

.bar-chart {
  left: 255px;
  top: 23px;
  width: 138px;
  height: 92px;
}

.amount-chart {
  left: 267px;
  top: 43px;
  width: 128px;
  height: 58px;
}

.donut {
  right: -34px;
  top: -19px;
  width: 178px;
  height: 178px;
  background:
    radial-gradient(circle, #fff 57%, transparent 58%),
    repeating-conic-gradient(#00d512 0deg 2deg, transparent 2deg 6deg, #e0e5ea 6deg 9deg, transparent 9deg 13deg);
}

.bars {
  right: 42px;
  bottom: 31px;
  height: 92px;
  gap: 7px;
}

.bars i {
  max-width: 21px;
  border-radius: 3px;
}

.line-chart {
  right: 39px;
  top: 40px;
  width: 126px;
  height: 58px;
  background: linear-gradient(180deg, rgba(0, 213, 18, 0.23), rgba(0, 213, 18, 0));
}

.daily-dynamics {
  left: 392px;
  top: 738px;
  width: 490px;
  height: 207px;
}

.daily-dynamics h2 {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 18px;
  letter-spacing: -0.5px;
  font-weight: 500;
}

.daily-card {
  position: absolute;
  top: 50px;
  width: 150px;
  height: 157px;
  border-radius: 24px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  overflow: hidden;
}

.daily-created {
  left: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
}

.daily-success {
  left: 158px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(240, 247, 255, 0.7) 100%);
}

.daily-errors {
  left: 316px;
  width: 174px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.daily-card h3 {
  position: absolute;
  left: 18px;
  top: 24px;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 14.4px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.daily-card strong {
  position: absolute;
  left: 18px;
  top: 62px;
  display: block;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 36px;
  line-height: 32.4px;
  font-weight: 600;
  letter-spacing: 1px;
}

.daily-card-icon {
  position: absolute;
  top: 66px;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.daily-created .daily-card-icon {
  left: 108px;
}

.daily-success .daily-card-icon {
  left: 113px;
}

.daily-errors .daily-card-icon {
  left: 132px;
}

.daily-progress {
  position: absolute;
  left: 18px;
  top: 118px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  height: 6px;
}

.seg {
  position: relative;
  flex-shrink: 0;
  height: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #1d1d1d;
}

.seg-8 { width: 8px; }
.seg-9 { width: 9px; }

.seg::before {
  content: "";
  position: absolute;
  left: -16px;
  top: -8.37px;
  width: 32px;
  height: 37.07px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 4px);
  transform: rotate(-24deg);
  transform-origin: 0 0;
}

.daily-success .seg {
  background: #00d512;
}

.daily-errors .seg {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.seg.empty {
  background: #e0e5ea;
}

.seg.empty::before {
  display: none;
}

.telegram-widget {
  position: absolute;
  left: 68px;
  top: 893px;
  z-index: 4;
  width: 282px;
  height: 64px;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #100c0d;
  box-shadow:
    0 0.927px 2.748px rgba(0, 57, 113, 0.02),
    0 2.346px 6.95px rgba(0, 57, 113, 0.04),
    0 4.785px 14.177px rgba(0, 57, 113, 0.04),
    0 9.855px 29.201px rgba(0, 57, 113, 0.06),
    0 27px 80px rgba(0, 57, 113, 0.08);
}

.telegram-widget-bg {
  position: absolute;
  left: 52px;
  top: -53px;
  z-index: 1;
  width: 442px;
  height: 224px;
  display: block;
}

.telegram-widget-icon {
  position: absolute;
  left: 12px;
  top: 15.5px;
  z-index: 2;
  width: 32px;
  height: 32px;
}

.telegram-widget-copy {
  position: absolute;
  left: 56px;
  top: 11px;
  z-index: 2;
  display: block;
}

.telegram-widget-copy small {
  display: block;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18.2px;
  font-weight: 500;
}

.telegram-widget-logo {
  display: block;
  width: 84px;
  height: 12px;
  margin-top: 3px;
}

.telegram-widget-arrow {
  position: absolute;
  left: 226px;
  top: 8px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.5);
}

.telegram-widget-arrow img {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  display: block;
}

.page-footer {
  position: absolute;
  left: 8px;
  top: var(--footer-top, 985px);
  width: 1424px;
  height: 221px;
  border-radius: 32px;
}

.page-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #d4dce5;
  border-radius: 32px;
  background: transparent;
}

.footer-links {
  position: absolute;
  left: 64px;
  top: 57px;
  z-index: 1;
  height: 18px;
  display: block;
}

.footer-links > span:first-child {
  position: absolute;
  left: 0;
  top: 0;
  width: 170px;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-links a {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  font-family: var(--font-title);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.footer-links a:nth-of-type(1) { left: 238px; }
.footer-links a:nth-of-type(2) { left: 490px; }
.footer-links a:nth-of-type(3) { left: 738px; }
.footer-links a:nth-of-type(4) { left: 964px; }
.footer-links .uptime { left: 1203px; }

.footer-links > span:first-child {
  top: 2px;
}

.footer-links a:not(.uptime) img {
  width: 18px;
  height: 18px;
}

.footer-links .uptime {
  position: absolute;
  left: 1203px;
  top: 2px;
  width: 93px;
  height: 16px;
  margin-left: 0;
  display: block;
}

.footer-links .uptime img {
  width: 93px;
  height: 16px;
  display: block;
}

.footer-hot-wallet {
  position: absolute;
  left: 64px;
  top: 123px;
  z-index: 1;
  width: 205px;
  height: 56px;
  display: block;
}

.footer-hot-wallet img {
  width: 205px;
  height: 56px;
  display: block;
}

.footer-apps {
  position: absolute;
  left: 604px;
  top: 123px;
  z-index: 1;
  display: flex;
  gap: 12px;
}

.footer-apps a {
  width: 180px;
  height: 56px;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.footer-apps a img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
}

.footer-telegram-app {
  border-radius: 12px;
  overflow: hidden;
}

.socials {
  display: none;
}

.chat-collapsed {
  position: absolute;
  left: 1172px;
  top: 1169px;
  z-index: 6;
  width: 260px;
  height: 45px;
  display: block;
  padding: 0;
  gap: 0;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.chat-collapsed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fd2226, rgba(236, 10, 70, 0.9));
}

.chat-collapsed .chat-bubble-icon {
  position: absolute;
  left: 18px;
  top: 15px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: url("/assets/dashboard/chat/comment-dots.svg") center/contain no-repeat;
}

.chat-collapsed .chat-bubble-icon::before,
.chat-collapsed .chat-bubble-icon::after {
  content: none;
}

.chat-collapsed span:not(.chat-bubble-icon) {
  position: absolute;
  left: 40px;
  top: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: normal;
  font-weight: 600;
  white-space: nowrap;
}

.chat-collapsed strong {
  position: absolute;
  left: 189px;
  top: 16px;
  z-index: 1;
  color: #fff;
  font-family: "Omega Flight Bold Italic", var(--font-title);
  font-size: 12.706px;
  line-height: normal;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

.chat-panel {
  left: 1172px;
  top: 794px;
}

.notifications-page {
  position: absolute;
  left: 392px;
  top: 109px;
  z-index: 2;
  width: 976px;
  min-height: 0;
}

.notifications-hero {
  position: relative;
  width: 976px;
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.notifications-hero .section-title {
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 29px;
  font-weight: 500;
}

.notifications-hero .section-subtitle {
  max-width: 520px;
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 17px;
  font-weight: 500;
}

.notifications-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 460px;
}

.notifications-page .ghost-btn {
  min-height: 44px;
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid rgba(46, 74, 105, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(0, 8, 33, 0.02);
}

.notifications-page .ghost-btn:disabled {
  color: rgba(103, 118, 140, 0.55);
  cursor: default;
}

.notifications-page .ghost-btn-sm {
  min-height: 36px;
  padding: 0 14px;
}

.notifications-clear-page {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%) !important;
}

.notifications-clear-page:disabled {
  color: rgba(255, 255, 255, 0.72) !important;
  background: linear-gradient(180deg, rgba(253, 34, 38, 0.5) 0%, rgba(236, 10, 70, 0.5) 100%) !important;
}

.notifications-feed-card {
  position: relative;
  width: 976px;
  min-height: 560px;
  padding: 28px 32px 32px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.notifications-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.notifications-filter-row.categories {
  margin-bottom: 24px;
}

.notification-filter {
  min-height: 36px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.notification-filter.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.notifications-unread-count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.notifications-page .form-error,
.notifications-page .form-success {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.notifications-page .form-error {
  color: #ec0a46;
  background: #fff0f1;
}

.notifications-page .form-success {
  color: #008f0c;
  background: rgba(0, 213, 18, 0.12);
}

.notifications-page .empty-block {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(103, 118, 140, 0.25);
  border-radius: 20px;
  background: rgba(240, 244, 248, 0.72);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.notifications-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: #fff;
}

.notification-feed-item.unread {
  position: relative;
  border-color: rgba(253, 34, 38, 0.22);
  background:
    linear-gradient(90deg, rgba(253, 34, 38, 0.08) 0%, rgba(255, 255, 255, 0.96) 36%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(253, 34, 38, 0.08), var(--shadow);
}

.notification-feed-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.notification-feed-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.notification-feed-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 1024px;
  background: var(--bg);
}

.notification-feed-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.notification-feed-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notification-feed-title {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-feed-item.unread .notification-feed-title {
  color: #1d1d1d;
  font-weight: 700;
}

.notification-feed-item.unread .notification-feed-meta {
  color: #fd2226;
}

.notification-feed-text,
.notification-feed-meta {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-feed-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.pager-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.pager-info {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.notification-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100svh;
  min-height: 100dvh;
  max-width: 100%;
  pointer-events: none;
  isolation: isolate;
}

.notification-dialog-root,
.notification-dialog-root * {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

.notification-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border: 0;
  background: rgba(13, 19, 29, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.notification-detail-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(512px, calc(100vw - 48px));
  max-height: calc(100dvh - 64px);
  max-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 28px;
  background: #f0f4f8;
  box-shadow: 0 28px 90px rgba(0, 8, 33, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.notification-detail-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: start;
  gap: 16px;
}

.notification-detail-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(46, 74, 105, 0.1);
}

.notification-detail-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.notification-detail-head .section-title {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #000;
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 30px;
  font-weight: 500;
}

.notification-detail-head .section-subtitle {
  margin-top: 8px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.notification-modal-close {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1d1d1d;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 2.75px rgba(0, 0, 0, 0.02),
    0 0 6.95px rgba(0, 0, 0, 0.03),
    0 0 14.18px rgba(0, 0, 0, 0.04),
    0 0 29.2px rgba(0, 0, 0, 0.05),
    0 0 80px rgba(0, 0, 0, 0.07);
  font-family: var(--font-ui);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.notification-modal-close span {
  transform: translateY(-1px);
}

.notification-detail-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
}

.notification-detail-card-label {
  margin-bottom: 10px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.notification-full-text {
  min-width: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.notification-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-detail-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #67768c;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.notification-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.notification-detail-actions .primary-btn {
  min-width: 128px;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 18px 40px rgba(236, 10, 70, 0.22);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
}

.notification-raw-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 720px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 64px);
  max-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 90px rgba(0, 8, 33, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.notification-raw-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.notification-raw-head .section-title {
  color: #000;
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 30px;
  font-weight: 500;
}

.notification-raw-head .section-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.notification-raw-code {
  min-width: 0;
  max-height: min(620px, calc(100dvh - 250px));
  max-height: min(620px, calc(100svh - 250px));
  overflow: auto;
  margin: 0;
  padding: 18px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: #f0f4f8;
  font-family: "Fira Code", Consolas, monospace;
  font-size: 12px;
  line-height: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

.notification-raw-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.admin-payhot-page,
.admin-payhot-page *,
.admin-payhot-drawer,
.admin-payhot-drawer * {
  box-sizing: border-box;
}

.figma-frame:has(.admin-payhot-page) {
  --admin-content-left: 392px;
  --admin-content-right: 72px;
  --admin-content-width: calc(100% - var(--admin-content-left) - var(--admin-content-right));
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: none;
}

body:has(.admin-payhot-page) {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.figma-frame:has(.admin-payhot-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flow-root;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.admin-payhot-page) .topbar {
  width: 100%;
  max-width: 100%;
}

.admin-payhot-page.orders-page {
  position: relative;
  left: auto;
  top: auto;
  z-index: 3;
  width: min(1080px, var(--admin-content-width));
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  min-height: calc(100vh - 398px);
  min-height: calc(100svh - 398px);
  min-height: calc(100dvh - 398px);
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 105px var(--admin-content-right) 0 var(--admin-content-left);
  padding: 0;
  color: var(--ink);
  font-family: var(--font-ui);
}

.api-docs-runtime-page.api-reference-content {
  position: relative;
  left: auto;
  top: auto;
  z-index: 3;
  width: min(974px, var(--admin-content-width));
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 30px;
  margin: 109px var(--admin-content-right) 0 var(--admin-content-left);
  padding: 0 0 8px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.api-docs-runtime-page .api-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.api-docs-runtime-page .api-breadcrumbs a,
.api-docs-runtime-page .api-breadcrumbs span {
  min-height: 27px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #39506e;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  text-decoration: none;
}

.api-docs-runtime-page .api-breadcrumbs a {
  background: #dfe5eb;
}

.api-docs-runtime-page .api-breadcrumbs span {
  border: 1px solid #dfe5eb;
}

.api-docs-runtime-page .api-page-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.api-docs-runtime-page .api-page-heading h1 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 0;
}

.api-docs-runtime-page .api-page-heading p {
  margin: 20px 0 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: 0;
}

.api-docs-runtime-page .api-heading-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.api-docs-runtime-page .api-heading-actions span,
.api-docs-runtime-page .api-heading-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-decoration: none;
}

.api-docs-runtime-page .api-heading-actions span {
  color: #39506e;
  border: 1px solid #dfe5eb;
  background: rgba(255, 255, 255, 0.76);
}

.api-docs-runtime-page .api-heading-actions a {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 10px 24px rgba(236, 10, 70, 0.16);
}

.api-docs-runtime-page .api-tabs {
  min-width: 0;
  max-width: 100%;
  min-height: 61px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
  align-items: flex-start;
  border-bottom: 1px solid #d4dce5;
}

.api-docs-runtime-page .api-tabs button {
  position: relative;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #67768c;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
}

.api-docs-runtime-page .api-tabs button:first-child {
  font-weight: 700;
}

.api-docs-runtime-page .api-tabs button.active {
  color: #1d1d1d;
}

.api-docs-runtime-page .api-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 93px;
  max-width: 100%;
  height: 2px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.api-docs-runtime-page .api-section-title {
  width: min(678px, 100%);
  min-width: 0;
}

.api-docs-runtime-page .api-section-title h2,
.api-docs-runtime-page .api-doc-section h3 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
}

.api-docs-runtime-page .api-section-title p {
  margin: 19px 0 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
}

.api-docs-runtime-page .api-doc-stack {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.api-docs-runtime-page .api-code-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 475px));
  gap: 24px;
}

.api-docs-runtime-page .api-code-card,
.api-docs-runtime-page .api-doc-section,
.api-docs-runtime-page .api-mini-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%),
    #fff;
}

.api-docs-runtime-page .api-code-card {
  position: relative;
  height: 480px;
}

.api-docs-runtime-page .api-code-card header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 62px;
}

.api-docs-runtime-page .api-code-card header span {
  position: absolute;
  left: 24px;
  top: 21px;
  right: 74px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  line-height: 14.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-docs-runtime-page .api-code-card header img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.api-docs-runtime-page .api-code-card header button {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.api-docs-runtime-page .api-code-card header button img {
  width: 18px;
  height: 18px;
}

.api-docs-runtime-page .code-panel {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 62px;
  bottom: 4px;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
}

.api-docs-runtime-page .code-lines {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 24px;
  color: #67768c;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  white-space: pre;
  user-select: none;
}

.api-docs-runtime-page .code-sample {
  position: absolute;
  left: 48px;
  top: 24px;
  right: 18px;
  min-width: 0;
  margin: 0;
  color: #000;
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: pre;
}

.api-docs-runtime-page .api-endpoint-card .api-endpoint-body {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 62px;
  bottom: 4px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
}

.api-docs-runtime-page .api-endpoint-body code,
.api-docs-runtime-page .api-mini-card code,
.api-docs-runtime-page .api-info-callout code,
.api-docs-runtime-page .docs-param-table code {
  color: #2276fd;
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
}

.api-docs-runtime-page .api-endpoint-body p,
.api-docs-runtime-page .api-mini-card p {
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.api-docs-runtime-page .api-doc-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.api-docs-runtime-page .api-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
}

.api-docs-runtime-page .docs-param-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
}

.api-docs-runtime-page .docs-param-table th,
.api-docs-runtime-page .docs-param-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(46, 74, 105, 0.08);
  text-align: left;
  vertical-align: top;
}

.api-docs-runtime-page .docs-param-table th {
  color: #67768c;
  background: rgba(240, 247, 255, 0.78);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}

.api-docs-runtime-page .docs-param-table tr:last-child td {
  border-bottom: 0;
}

.api-docs-runtime-page .api-mini-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.api-docs-runtime-page .api-mini-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.api-docs-runtime-page .api-mini-card strong {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
}

.api-docs-runtime-page .api-info-callout {
  position: relative;
  min-width: 0;
  min-height: 82px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%),
    linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.api-docs-runtime-page .api-info-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 100%;
}

.api-docs-runtime-page .api-info-icon {
  position: absolute;
  left: 24px;
  top: 31px;
  width: 20px;
  height: 20px;
}

.api-docs-runtime-page .api-info-callout p {
  min-width: 0;
  margin: 0;
  padding: 31px 32px 24px 54px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.api-docs-runtime-page .api-info-callout .blue-comma {
  color: #2276fd;
}

.api-docs-runtime-page .timeline-list {
  display: grid;
  gap: 16px;
}

.api-docs-runtime-page .timeline-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
}

.api-docs-runtime-page .timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 0 0 5px rgba(253, 34, 38, 0.08);
}

.api-docs-runtime-page .timeline-title {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.api-docs-runtime-page .timeline-text {
  margin-top: 4px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
}

.figma-frame:has(.admin-payhot-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: calc(100% - 16px);
  max-width: 1424px;
  min-width: 0;
  height: 221px;
  margin: 72px 8px 0;
}

.admin-payhot-page .page-card,
.admin-payhot-drawer:not(.users-detail-drawer):not(.users-create-drawer),
.admin-payhot-page .drawer-card.admin-payhot-drawer {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(0, 8, 33, 0.08);
}

.admin-payhot-page .page-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.admin-payhot-page .section-head,
.admin-payhot-drawer .drawer-head,
.admin-payhot-drawer .section-head {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-payhot-page .section-head-split {
  align-items: center;
}

.admin-payhot-page .section-title,
.admin-payhot-drawer .section-title,
.admin-payhot-page .drawer-section-title,
.admin-payhot-drawer .drawer-section-title {
  color: #000;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-payhot-page .drawer-section-title,
.admin-payhot-drawer .drawer-section-title {
  font-size: 17px;
  line-height: 22px;
}

.admin-payhot-page .section-subtitle,
.admin-payhot-drawer .section-subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-payhot-page .drawer-action-row,
.admin-payhot-page .filter-actions,
.admin-payhot-page .toolbar-row,
.admin-payhot-drawer .drawer-action-row,
.admin-payhot-drawer .filter-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-payhot-page .toolbar-row-bottom {
  justify-content: flex-start;
}

.admin-payhot-page .page-stats,
.admin-payhot-drawer .page-stats {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-payhot-page .page-stats-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-payhot-page .ui-stat-card,
.admin-payhot-drawer .ui-stat-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

/* Statistics KPI content is projected into AdminStatisticsRuntime, so keep its
   operations presentation independent from component CSS isolation. */
.admin-statistics-runtime__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  min-width: 0;
}

.admin-statistics-runtime__kpis .ui-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 39, 75, 0.05);
}

.admin-statistics-runtime__kpis .ui-stat-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff0f1;
  color: #ec0a46;
}

.admin-statistics-runtime__kpis .ui-stat-body {
  min-width: 0;
}

.admin-statistics-runtime__kpis .ui-stat-label {
  color: #67768c;
  font: 700 11px/1.3 var(--font-ui);
  text-transform: uppercase;
}

.admin-statistics-runtime__kpis .ui-stat-value {
  margin-top: 4px;
  overflow: hidden;
  color: #1d2939;
  font: 700 20px/1.15 var(--font-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-statistics-runtime__kpis .ui-stat-hint {
  margin-top: 5px;
  color: #8a98aa;
  font: 500 11px/1.35 var(--font-ui);
}

.admin-statistics-runtime__kpis > .ui-stat-card.neutral:last-child .ui-stat-value {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

@container (min-width: 560px) {
  .admin-statistics-runtime__kpis > .ui-stat-card.neutral:last-child {
    grid-column: span 2;
  }
}

.admin-payhot-page .ui-stat-icon,
.admin-payhot-drawer .ui-stat-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #fd2226;
  border-radius: 14px;
  background: #fff0f1;
}

.admin-payhot-page .ui-stat-body,
.admin-payhot-drawer .ui-stat-body {
  min-width: 0;
}

.admin-payhot-page .ui-stat-label,
.admin-payhot-drawer .ui-stat-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-payhot-page .ui-stat-value,
.admin-payhot-drawer .ui-stat-value {
  margin-top: 3px;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-payhot-page .ui-stat-hint,
.admin-payhot-drawer .ui-stat-hint {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-payhot-page .filter-grid,
.admin-payhot-drawer .filter-grid {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
}

.admin-payhot-page .field,
.admin-payhot-drawer .field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.admin-payhot-page .field span,
.admin-payhot-drawer .field span {
  min-width: 0;
}

.admin-payhot-page .field input,
.admin-payhot-page .field select,
.admin-payhot-page .field textarea,
.admin-payhot-drawer .field input,
.admin-payhot-drawer .field select,
.admin-payhot-drawer .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.admin-payhot-page .field textarea,
.admin-payhot-drawer .field textarea {
  min-height: 104px;
  resize: vertical;
}

.admin-payhot-page .field input:focus,
.admin-payhot-page .field select:focus,
.admin-payhot-page .field textarea:focus,
.admin-payhot-drawer .field input:focus,
.admin-payhot-drawer .field select:focus,
.admin-payhot-drawer .field textarea:focus {
  border-color: rgba(253, 34, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(253, 34, 38, 0.08);
}

.admin-payhot-page .field input:disabled,
.admin-payhot-page .field select:disabled,
.admin-payhot-page .field textarea:disabled,
.admin-payhot-drawer .field input:disabled,
.admin-payhot-drawer .field select:disabled,
.admin-payhot-drawer .field textarea:disabled {
  color: rgba(103, 118, 140, 0.8);
  background: rgba(240, 244, 248, 0.7);
}

.admin-payhot-page .checkbox-field,
.admin-payhot-drawer .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-payhot-page .checkbox-field input,
.admin-payhot-drawer .checkbox-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: #fd2226;
}

.admin-payhot-page .primary-btn,
.admin-payhot-page .ghost-btn,
.admin-payhot-page .danger-btn,
.admin-payhot-page .mini-btn,
.admin-payhot-drawer .primary-btn,
.admin-payhot-drawer .ghost-btn,
.admin-payhot-drawer .danger-btn,
.admin-payhot-drawer .mini-btn,
.admin-payhot-page .icon-btn,
.admin-payhot-drawer .icon-btn {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.admin-payhot-page .primary-btn,
.admin-payhot-drawer .primary-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 10px 24px rgba(236, 10, 70, 0.18);
}

.admin-payhot-page .danger-btn,
.admin-payhot-drawer .danger-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #1d1d1d 0%, #3b1117 100%);
  box-shadow: 0 10px 24px rgba(29, 29, 29, 0.16);
}

.admin-payhot-page .ghost-btn,
.admin-payhot-page .mini-btn,
.admin-payhot-drawer .ghost-btn,
.admin-payhot-drawer .mini-btn,
.admin-payhot-page .icon-btn,
.admin-payhot-drawer .icon-btn {
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.admin-payhot-page .ghost-btn-sm,
.admin-payhot-drawer .ghost-btn-sm,
.admin-payhot-page .mini-btn,
.admin-payhot-drawer .mini-btn {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

.admin-payhot-page .icon-btn,
.admin-payhot-drawer .icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 42px;
  font-size: 20px;
}

.admin-payhot-page .primary-btn:disabled,
.admin-payhot-page .ghost-btn:disabled,
.admin-payhot-page .mini-btn:disabled,
.admin-payhot-page .danger-btn:disabled,
.admin-payhot-drawer .primary-btn:disabled,
.admin-payhot-drawer .ghost-btn:disabled,
.admin-payhot-drawer .mini-btn:disabled,
.admin-payhot-drawer .danger-btn:disabled,
.admin-payhot-page .ghost-btn.disabled,
.admin-payhot-drawer .ghost-btn.disabled {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
  pointer-events: none;
}

.admin-payhot-page .table-wrap,
.admin-payhot-drawer .table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-payhot-page .data-table,
.admin-payhot-drawer .data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
}

.admin-payhot-page .compact-table,
.admin-payhot-drawer .compact-table {
  min-width: 560px;
}

.admin-payhot-page .data-table th,
.admin-payhot-page .data-table td,
.admin-payhot-drawer .data-table th,
.admin-payhot-drawer .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(46, 74, 105, 0.08);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-payhot-page .data-table th,
.admin-payhot-drawer .data-table th {
  color: var(--muted);
  background: rgba(240, 244, 248, 0.82);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-payhot-page .data-table tbody tr:last-child td,
.admin-payhot-drawer .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-payhot-page.user-projects-admin-page {
  min-height: max(calc(100dvh - 398px), 900px);
}

.admin-payhot-page.user-projects-admin-page .page-card {
  gap: 22px;
}

.admin-payhot-page.user-projects-admin-page .data-table {
  min-width: 1120px;
}

.admin-payhot-page.user-projects-admin-page .data-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-payhot-page.user-projects-admin-page .data-table td:first-child,
.admin-payhot-page.user-projects-admin-page .data-table td:nth-child(8),
.admin-payhot-page.user-projects-admin-page .data-table td:nth-child(10),
.admin-payhot-page.user-projects-admin-page .data-table td:nth-child(11) {
  white-space: nowrap;
}

.admin-payhot-page .clickable-row,
.admin-payhot-drawer .clickable-row {
  cursor: pointer;
}

.admin-payhot-page .clickable-row:hover td,
.admin-payhot-drawer .clickable-row:hover td {
  background: #fff7f8;
}

.admin-payhot-page .row-actions,
.admin-payhot-drawer .row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-payhot-page .pager-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.admin-payhot-page .pager-info {
  min-width: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.admin-payhot-page .empty-block,
.admin-payhot-page .form-error,
.admin-payhot-page .form-success,
.admin-payhot-page .info-block,
.admin-payhot-page .role-note,
.admin-payhot-drawer .empty-block,
.admin-payhot-drawer .form-error,
.admin-payhot-drawer .form-success,
.admin-payhot-drawer .info-block,
.admin-payhot-drawer .role-note {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.admin-payhot-page .empty-block,
.admin-payhot-drawer .empty-block {
  color: var(--muted);
  border: 1px dashed rgba(46, 74, 105, 0.16);
  background: rgba(240, 244, 248, 0.72);
}

.admin-payhot-page .form-error,
.admin-payhot-drawer .form-error {
  color: #b00020;
  border: 1px solid rgba(236, 10, 70, 0.18);
  background: #fff0f1;
}

.admin-payhot-page .form-success,
.admin-payhot-drawer .form-success {
  color: #0f7a20;
  border: 1px solid rgba(0, 169, 51, 0.16);
  background: rgba(0, 213, 18, 0.1);
}

.admin-payhot-page .info-block,
.admin-payhot-page .role-note,
.admin-payhot-drawer .info-block,
.admin-payhot-drawer .role-note {
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.admin-payhot-page .detail-grid,
.admin-payhot-drawer .detail-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-payhot-page .detail-item,
.admin-payhot-drawer .detail-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-payhot-page .detail-label,
.admin-payhot-drawer .detail-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-payhot-page .detail-value,
.admin-payhot-drawer .detail-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1d1d1d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.admin-payhot-page .code-block,
.admin-payhot-drawer .code-block {
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  color: #182335;
  border-radius: 14px;
  background: #f0f4f8;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 18px;
  white-space: pre-wrap;
}

.admin-payhot-page .drawer-section,
.admin-payhot-drawer .drawer-section {
  min-width: 0;
  display: grid;
  gap: 14px;
}

/* Settings keep one common page surface, so only their direct sections receive
   a quiet visual boundary. Nested operational details intentionally stay flat. */
#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .settings-page > .page-card > .drawer-section {
  box-sizing: border-box;
  gap: 16px;
  margin: 2px 0;
  padding: 20px;
  border: 1px solid #dfe6ef;
  border-left: 3px solid #d75b62;
  border-radius: 12px;
  background: #fcfdff;
  box-shadow: 0 4px 14px rgba(22, 45, 74, 0.035);
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .settings-page > .page-card > .drawer-section > .section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf3;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .settings-page > .page-card > .drawer-section > .section-head .drawer-section-title {
  color: #17243a;
}

/* Payment-domain catalog: an operational list, not a generic unstyled table. */
.settings-section-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px;
    border: 1px solid var(--line, #d8dde7);
    border-radius: 8px;
    background: var(--surface-muted, #f7f8fa);
}

.settings-section-navigation a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--text-secondary, #536071);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.settings-broadcast-form .field-span-2 {
    grid-column: 1 / -1;
    min-width: 0;
}

.settings-broadcast-form .field-span-2 textarea {
    min-height: 96px;
    resize: vertical;
}

.settings-broadcast-form .settings-broadcast-channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px 12px;
    border: 1px solid rgba(46, 74, 105, 0.14);
    border-radius: 8px;
    background: #f7f9fc;
}

.settings-broadcast-form .settings-broadcast-channels legend {
    width: 100%;
    margin: 0 0 2px;
    padding: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.settings-broadcast-form .settings-broadcast-channels label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid rgba(46, 74, 105, 0.12);
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.settings-broadcast-form .settings-broadcast-channels input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #fd2226;
}

.settings-broadcast-form .settings-broadcast-channels label:has(input:checked) {
    border-color: rgba(253, 34, 38, 0.36);
    background: #fff0f1;
    color: #b91c1c;
}

.settings-section-navigation a:hover,
.settings-section-navigation a.is-active {
    color: var(--text-primary, #172033);
    background: #fff;
    box-shadow: 0 1px 2px rgb(24 35 52 / 10%);
}

@media (max-width: 640px) {
    .settings-section-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-section-navigation a {
        justify-content: center;
        padding: 0 8px;
    }
}

.admin-payhot-page .payment-domains-settings {
  gap: 16px;
  padding-top: 4px;
}

.admin-payhot-page .payment-domain-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  color: #5a4300;
  border: 1px solid rgba(208, 151, 0, 0.24);
  border-radius: 8px;
  background: #fff8df;
  font: 600 13px/19px var(--font-ui);
}

.admin-payhot-page .payment-domain-notice strong {
  color: #3e2d00;
  white-space: nowrap;
}

.admin-payhot-page .payment-domain-create {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 8px;
  background: rgba(240, 244, 248, 0.48);
}

.admin-payhot-page .payment-domain-create .field {
  min-width: 0;
}

.admin-payhot-page .payment-domain-create-action {
  min-height: 42px;
  white-space: nowrap;
}

.admin-payhot-page .payment-domain-list {
  display: grid;
  gap: 10px;
}

.admin-payhot-page .payment-domain-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-payhot-page .payment-domain-card-main,
.admin-payhot-page .payment-domain-card-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-payhot-page .payment-domain-card-heading {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #152235;
  font: 700 14px/20px var(--font-ui);
}

.admin-payhot-page .payment-domain-origin {
  display: block;
  overflow-wrap: anywhere;
  color: #52657c;
  font: 600 12px/18px var(--font-code);
}

.admin-payhot-page .payment-domain-default,
.admin-payhot-page .payment-domain-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font: 800 11px/16px var(--font-ui);
  white-space: nowrap;
}

.admin-payhot-page .payment-domain-default {
  color: #075d34;
  background: #e2f7eb;
}

.admin-payhot-page .payment-domain-status.is-ready { color: #075d34; background: #e2f7eb; }
.admin-payhot-page .payment-domain-status.is-pending { color: #795b00; background: #fff3ce; }
.admin-payhot-page .payment-domain-status.is-disabled { color: #6b7280; background: #edf0f3; }

.admin-payhot-page .payment-domain-check {
  color: #68788d;
  font: 600 12px/18px var(--font-ui);
  white-space: nowrap;
}

.admin-payhot-page .payment-domain-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-payhot-page .payment-domain-error {
  grid-column: 1 / -1;
  padding-top: 2px;
  color: #ad1530;
  font: 600 12px/18px var(--font-ui);
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .admin-payhot-page .payment-domain-notice {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-payhot-page .payment-domain-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-payhot-page .payment-domain-create-action {
    width: 100%;
  }

  .admin-payhot-page .payment-domain-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .admin-payhot-page .payment-domain-card-meta {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .admin-payhot-page .payment-domain-check {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .admin-payhot-page .payment-domain-actions {
    justify-content: flex-start;
  }
}

.admin-payhot-page .drawer-badge-row,
.admin-payhot-drawer .drawer-badge-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-payhot-page .ui-pill,
.admin-payhot-drawer .ui-pill {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 999px;
  background: rgba(240, 244, 248, 0.9);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-payhot-page .ui-pill.compact,
.admin-payhot-drawer .ui-pill.compact {
  padding: 6px 9px;
  font-size: 11px;
}

.admin-payhot-page .ui-pill.accent,
.admin-payhot-drawer .ui-pill.accent {
  color: #fd2226;
  background: #fff0f1;
}

.admin-payhot-page .ui-pill.success,
.admin-payhot-drawer .ui-pill.success {
  color: #0f7a20;
  background: rgba(0, 213, 18, 0.1);
}

.admin-payhot-page .ui-pill.warning,
.admin-payhot-drawer .ui-pill.warning {
  color: #9f5b00;
  background: rgba(255, 184, 0, 0.14);
}

.admin-payhot-page .ui-pill.danger,
.admin-payhot-drawer .ui-pill.danger {
  color: #b00020;
  background: #fff0f1;
}

.admin-payhot-page .status-chip,
.admin-payhot-drawer .status-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--font-title);
  font-size: 12px;
  line-height: 15px;
  font-weight: 800;
}

.admin-payhot-page .status-chip.success,
.admin-payhot-drawer .status-chip.success {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.admin-payhot-backdrop,
.admin-payhot-page .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  border: 0;
  background: rgba(13, 19, 29, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.admin-payhot-drawer:not(.users-detail-drawer):not(.users-create-drawer),
.admin-payhot-page .drawer-card.admin-payhot-drawer {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 121;
  width: 560px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  overflow: auto;
}

.admin-payhot-drawer.settings-flow-modal {
  width: min(760px, calc(100vw - 48px));
}

/* Shared admin panel contract. Legacy flows now use PayhotOverlay, while their
   existing forms and callbacks stay in place inside this stable surface. */
.admin-payhot-panel-overlay .admin-payhot-drawer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 0;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 24px 90px rgba(0, 8, 33, 0.22);
}

.admin-payhot-panel-overlay .admin-payhot-panel {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-payhot-panel-overlay .admin-payhot-drawer.cashbox-admin-drawer {
  position: fixed;
  top: var(--payhot-overlay-edge, 24px);
  right: var(--payhot-overlay-edge, 24px);
  left: auto;
  width: min(720px, calc(100vw - (var(--payhot-overlay-edge, 24px) * 2)));
  height: auto;
  max-height: calc(100dvh - (var(--payhot-overlay-edge, 24px) * 2));
  overflow: auto;
}

.admin-payhot-panel-overlay .admin-payhot-drawer :is(pre, .code-block, .detail-value) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.admin-payhot-panel-overlay .admin-payhot-drawer pre,
.admin-payhot-panel-overlay .admin-payhot-drawer .code-block {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-payhot-panel-overlay .admin-payhot-panel :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
  border-color: #dce4ee;
  background: #fff;
}

.admin-payhot-panel-overlay .admin-payhot-panel textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-payhot-panel-overlay .admin-payhot-panel .icon-btn,
.admin-payhot-panel-overlay .admin-payhot-panel .cashbox-close-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #526174;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 46, 72, 0.09);
}

.admin-payhot-panel-overlay .admin-payhot-panel .drawer-badge-row,
.admin-payhot-panel-overlay .admin-payhot-panel .drawer-action-row {
  min-width: 0;
  flex-wrap: wrap;
}

/* Privileged content inside a merchant-visible detail surface. */
.shared-admin-section {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shared-admin-section > :is(.drawer-section-title, h2, h3) {
  min-width: 0;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.shared-admin-section :is(.filter-grid, .settlement-admin-grid, .statistics-runtime-grid) {
  min-width: 0;
}

.shared-admin-section :is(input, select, textarea) {
  min-width: 0;
  width: 100%;
  border-color: #dce4ee;
  background: #fff;
}

.shared-admin-section :is(.filter-actions, .drawer-action-row, .settlement-admin-actions, .statistics-runtime-actions) {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shared-admin-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shared-admin-section .role-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #526174;
  background: #eef3f8;
}

/* Operations order details are one fluid technical surface. The merchant
   reference canvas is intentionally excluded by the is-backoffice marker. */
.orders-detail-overlay .order-detail-panel:has(.admin-order-details-runtime) {
  width: min(calc(100% - 32px), 42rem);
  min-width: 0;
  max-width: 42rem;
  padding: 0;
  background: #f0f4f8;
}

.orders-detail-overlay .mobile-order-backoffice-details.is-backoffice {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0 clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px);
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 16px;
  background: #fff;
}

.orders-detail-overlay .mobile-order-backoffice-details.is-backoffice > summary {
  cursor: pointer;
  color: #1d1d1d;
  font: 800 15px/20px var(--font-title);
}

.orders-detail-overlay .admin-order-detail-sections {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.orders-detail-overlay .admin-order-detail-sections > .drawer-section {
  min-width: 0;
  margin: 0;
}

.orders-detail-overlay .admin-order-detail-sections .drawer-section:not(.shared-admin-section) {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  background: #f7f9fc;
}

.orders-detail-overlay .admin-order-detail-sections .detail-grid {
  min-width: 0;
}

/* Operations-only order mutations live inside a legacy detail canvas. Keep
   their controls independent from the reference form selectors. */
.orders-detail-overlay .admin-order-mutation-section {
  gap: 16px;
  padding: 18px;
  border-color: #dce4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 48, 73, 0.05);
}

.orders-detail-overlay .admin-order-mutation-section .drawer-section-title {
  color: #1d1d1d;
  font: 800 16px/20px var(--font-title);
}

.orders-detail-overlay .admin-order-mutation-section .role-note {
  padding: 10px 12px;
  border: 1px solid #e2e9f1;
  border-radius: 12px;
  color: #526174;
  background: #f7f9fc;
  font: 500 13px/18px var(--font-ui);
}

.orders-detail-overlay .admin-order-mutation-section .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.orders-detail-overlay .admin-order-mutation-section .field {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
}

.orders-detail-overlay .admin-order-mutation-section .field > span {
  color: #67768c;
  font: 700 12px/16px var(--font-ui);
}

.orders-detail-overlay .admin-order-mutation-section .field-wide {
  grid-column: 1 / -1;
}

.orders-detail-overlay .admin-order-mutation-section .field :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #1d1d1d;
  font: 700 13px/20px var(--font-ui);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.orders-detail-overlay .admin-order-mutation-section .field :is(input, select, textarea):focus {
  border-color: rgba(236, 10, 70, 0.48);
  box-shadow: 0 0 0 3px rgba(236, 10, 70, 0.1);
}

.orders-detail-overlay .admin-order-mutation-section .field :is(input, select, textarea):disabled {
  color: #67768c;
  background: #f0f4f8;
  cursor: not-allowed;
}

.orders-detail-overlay .admin-order-mutation-section .filter-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
}

.orders-detail-overlay .admin-order-mutation-section .primary-btn {
  min-height: 42px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #ec0a46;
  color: #fff;
  box-shadow: 0 8px 18px rgba(236, 10, 70, 0.2);
  cursor: pointer;
  font: 800 13px/20px var(--font-ui);
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.orders-detail-overlay .admin-order-mutation-section .primary-btn:hover:not(:disabled) {
  background: #d60940;
}

.orders-detail-overlay .admin-order-mutation-section .primary-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.orders-detail-overlay .admin-order-mutation-section .primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.operations-project-create {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  color: #1d1d1d;
  background: #fff;
  font-family: var(--font-ui);
}

.operations-project-create * { box-sizing: border-box; }
.operations-project-create > header,
.operations-project-create > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operations-project-create header p {
  margin: 0 0 6px;
  color: #67768c;
  font: 700 11px/1 var(--font-ui);
}

.operations-project-create h2 { margin: 0; font: 700 20px/1.15 var(--font-title); }
.operations-project-create header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #d4dce5;
  border-radius: 50%;
  color: #67768c;
  background: #fff;
  font-size: 22px;
}

.operations-project-create > label { display: grid; gap: 7px; min-width: 0; }
.operations-project-create > label > span { color: #67768c; font: 700 12px/1 var(--font-ui); }
.operations-project-create > label > input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d4dce5;
  border-radius: 10px;
  color: #1d1d1d;
  background: #fff;
  font: 600 13px/1 var(--font-ui);
}

@media (max-width: 767px) {
  .operations-project-create { padding: 20px 16px; }
  .operations-project-create > footer { align-items: stretch; }
  .operations-project-create > footer > button { flex: 1 1 0; }
}

.shared-admin-raw {
  min-width: 0;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  background: #fff;
}

.shared-admin-raw > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  color: #526174;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.shared-admin-raw > summary::-webkit-details-marker { display: none; }

.shared-admin-raw > summary::after {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #67768c;
  border-bottom: 2px solid #67768c;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.shared-admin-raw[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }

.shared-admin-raw__body,
.shared-admin-raw > pre {
  min-width: 0;
  margin: 0;
  padding: 0 14px 14px;
}

.shared-admin-raw :is(pre, .code-block) {
  max-width: 100%;
  max-height: 300px;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border-radius: 10px;
  background: #eef3f8;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
}

@media (max-width: 767px) {
  .admin-payhot-panel-overlay .admin-payhot-drawer,
  .admin-payhot-panel-overlay .admin-payhot-drawer.cashbox-admin-drawer {
    position: fixed;
    top: calc(var(--payhot-mobile-panel-edge, 12px) + env(safe-area-inset-top));
    right: max(var(--payhot-mobile-panel-edge, 12px), env(safe-area-inset-right));
    bottom: calc(var(--payhot-mobile-panel-edge, 12px) + env(safe-area-inset-bottom));
    left: max(var(--payhot-mobile-panel-edge, 12px), env(safe-area-inset-left));
    width: auto;
    max-width: none;
    max-height: none;
    padding: 20px;
    border-radius: 24px;
  }

  .admin-payhot-panel-overlay .admin-payhot-drawer .section-head,
  .admin-payhot-panel-overlay .admin-payhot-drawer .drawer-head,
  .admin-payhot-panel-overlay .admin-payhot-drawer .drawer-action-row,
  .admin-payhot-panel-overlay .admin-payhot-drawer .filter-actions {
    align-items: stretch;
  }

  .admin-payhot-panel-overlay .admin-payhot-drawer .drawer-action-row > *,
  .admin-payhot-panel-overlay .admin-payhot-drawer .filter-actions > * {
    flex: 1 1 140px;
  }

  .shared-admin-section {
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .shared-admin-section :is(.filter-grid, .settlement-admin-grid, .statistics-runtime-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  .shared-admin-section :is(.filter-actions, .drawer-action-row, .settlement-admin-actions, .statistics-runtime-actions) > * {
    width: 100%;
  }

  .shared-admin-actions > * { flex: 1 1 140px; }

  .orders-detail-overlay .admin-order-mutation-section {
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .orders-detail-overlay .admin-order-mutation-section .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .orders-detail-overlay .admin-order-mutation-section .field-wide {
    grid-column: auto;
  }

  .orders-detail-overlay .admin-order-mutation-section .filter-actions {
    display: block;
  }

  .orders-detail-overlay .admin-order-mutation-section .primary-btn {
    width: 100%;
  }
}

/* User drawers use the shared viewport-level PayhotOverlay contract. */
.admin-payhot-panel-overlay :is(.users-detail-drawer, .users-create-drawer) {
  --payhot-overlay-edge: 24px;
  --payhot-overlay-width: 512px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 0;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 24px 90px rgba(0, 8, 33, 0.22);
}

.admin-payhot-drawer .settings-modal-flow {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-payhot-drawer .settings-modal-step {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-payhot-drawer .settings-step-title {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.admin-payhot-drawer .settings-period-row,
.admin-payhot-drawer .settings-compact-grid,
.admin-payhot-drawer .settings-preview-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-payhot-drawer .settings-period-row {
  display: flex;
  flex-wrap: wrap;
}

.admin-payhot-drawer .settings-compact-option,
.admin-payhot-drawer .settings-inline-toggle {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
}

.admin-payhot-drawer .settings-compact-option input,
.admin-payhot-drawer .settings-inline-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: #fd2226;
}

.admin-payhot-drawer .settings-compact-option span,
.admin-payhot-drawer .settings-inline-toggle span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-payhot-drawer .settings-compact-option strong,
.admin-payhot-drawer .settings-inline-toggle strong {
  color: #1d1d1d;
  font-size: 13px;
  line-height: 17px;
  font-weight: 800;
}

.admin-payhot-drawer .settings-compact-option small,
.admin-payhot-drawer .settings-inline-toggle small {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.admin-payhot-page .settings-action-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-payhot-page .settings-action-title {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.admin-payhot-page .settings-action-copy,
.admin-payhot-page .field-hint,
.admin-payhot-drawer .field-hint,
.admin-payhot-page .field-error-text,
.admin-payhot-drawer .field-error-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}

.admin-payhot-page .field-error-text,
.admin-payhot-drawer .field-error-text,
.admin-payhot-page .field-required,
.admin-payhot-drawer .field-required {
  color: #ec0a46;
}

.admin-payhot-page .risk-code-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 240, 241, 0.72) 0%, rgba(255, 255, 255, 0.78) 34%),
    rgba(255, 255, 255, 0.76);
}

.admin-payhot-page .risk-code-head {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(46, 74, 105, 0.08);
}

.admin-payhot-page .risk-code-title {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
}

.admin-payhot-page .risk-code-card .json-preview {
  max-height: 420px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  color: #182335;
  background: #f8fafc;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 19px;
  white-space: pre;
}

.admin-payhot-page .module-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-payhot-page .module-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 244, 248, 0.72) 100%);
}

.admin-payhot-page .module-title {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.admin-payhot-page .settings-integrations-catalog .module-card {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-payhot-page .settings-integrations-catalog .module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 74, 105, 0.24);
  box-shadow: 0 8px 20px rgba(22, 45, 74, 0.1);
}

.admin-payhot-page .settings-integrations-catalog .module-card:focus-visible {
  outline: 2px solid #fd2226;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .admin-payhot-page .settings-integrations-catalog .module-card {
    transition: none;
  }

  .admin-payhot-page .settings-integrations-catalog .module-card:hover {
    transform: none;
  }
}

.admin-payhot-page .bot-meta-row,
.admin-payhot-page .module-text {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #1d1d1d;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.admin-payhot-page .bot-meta-row b,
.admin-payhot-page .module-text b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-payhot-page .bot-code-value {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px 9px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--font-code);
  font-size: 11px;
  line-height: 17px;
}

.figma-frame:has(.merchant-projects-page) {
  --projects-content-left: 392px;
  --projects-content-right: 72px;
  --projects-content-width: calc(100% - var(--projects-content-left) - var(--projects-content-right));
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.merchant-projects-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flow-root;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.merchant-projects-page) .topbar {
  width: 100%;
  max-width: 100%;
}

.figma-frame:has(.merchant-projects-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: calc(100% - 16px);
  max-width: 1424px;
  min-width: 0;
  height: 221px;
  margin: 72px 8px 0;
}

.merchant-projects-page.orders-page {
  position: relative;
  left: auto;
  top: auto;
  z-index: 3;
  width: min(976px, var(--projects-content-width));
  max-width: 100%;
  min-width: 0;
  min-height: 900px;
  min-height: max(calc(100vh - 398px), 900px);
  min-height: max(calc(100svh - 398px), 900px);
  min-height: max(calc(100dvh - 398px), 900px);
  display: grid;
  grid-template-columns: 162px minmax(0, 1fr);
  row-gap: 20px;
  column-gap: 24px;
  align-items: start;
  align-content: start;
  grid-auto-rows: min-content;
  margin: 109px var(--projects-content-right) 0 var(--projects-content-left);
  padding: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.merchant-projects-hero {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  align-self: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}

.merchant-projects-title-block {
  min-width: 0;
  margin: 0;
}

.merchant-projects-hero h1 {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 29px;
  font-weight: 500;
  letter-spacing: 0;
}

.merchant-projects-hero h1 img {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex: 0 0 24px;
}

.merchant-projects-hero p {
  margin: 13px 0 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.merchant-projects-actions,
.projects-filter-actions,
.project-admin-actions,
.projects-pager {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.add-project-button,
.projects-secondary-action {
  min-width: 0;
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.add-project-button {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 16px 28px rgba(0, 10, 70, 0.18);
}

.add-project-button img {
  width: 16px;
  height: 16px;
}

.projects-secondary-action {
  color: #1d1d1d;
  border: 1px solid rgba(29, 29, 29, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.add-project-button:disabled,
.projects-secondary-action:disabled {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
}

.projects-info {
  grid-column: 1 / -1;
  position: relative;
  min-width: 0;
  min-height: 81px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 24px 24px 24px 54px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%),
    linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  align-self: start;
  margin: 0;
}

.projects-info-line {
  position: absolute;
  left: 0;
  top: calc(50% - 12px);
  width: 2px;
  height: 24px;
  background: #2276fd;
}

.projects-info-line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 10px;
  height: 24px;
  background: #2276fd;
  filter: blur(16px);
}

.projects-info > img {
  position: absolute;
  left: 24px;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
}

.projects-info p {
  min-width: 0;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
}

.projects-info-admin {
  background:
    linear-gradient(180deg, rgba(255, 240, 241, 0.4) 0%, rgba(255, 255, 255, 0.52) 100%),
    linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.projects-info-muted {
  border-color: rgba(236, 10, 70, 0.14);
  background: #fff0f1;
}

.projects-stats-panel {
  grid-column: 1;
  min-width: 0;
  display: grid;
  gap: 32px;
  padding-top: 0;
  margin-top: 0;
  align-self: start;
}

.projects-stat {
  min-width: 0;
}

.projects-stat h2 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
}

.projects-stat strong {
  display: block;
  margin: 18px 0 0;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 36px;
  line-height: 33px;
  font-weight: 600;
  letter-spacing: 1px;
}

.projects-stat p {
  margin: 7px 0 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.projects-approved-value {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.projects-approved-value strong {
  margin-bottom: 0;
}

.projects-list-column {
  grid-column: 2;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 0;
  align-self: start;
}

.merchant-projects-page.merchant-projects-merchant {
  row-gap: 18px;
  grid-auto-rows: min-content;
}

.merchant-projects-page .projects-list-column > .projects-empty-block {
  min-height: 220px;
  display: grid;
  align-items: center;
}

.approved-mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 1024px;
  background: rgba(0, 213, 18, 0.3);
}

.approved-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  background: rgba(0, 213, 18, 0.5);
}

.approved-mark img {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  filter: brightness(0);
}

.projects-filter-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(0, 8, 33, 0.05);
}

.project-filter-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
}

.project-filter-field input,
.project-filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.project-filter-field input:focus,
.project-filter-field select:focus {
  border-color: rgba(253, 34, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(253, 34, 38, 0.08);
}

.projects-filter-actions {
  align-self: end;
}

.projects-empty-block,
.merchant-projects-page .form-error,
.merchant-projects-page .form-success {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.projects-empty-block {
  color: #67768c;
  border: 1px dashed rgba(46, 74, 105, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.merchant-projects-page .form-error {
  color: #b00020;
  border: 1px solid rgba(236, 10, 70, 0.18);
  background: #fff0f1;
}

.merchant-projects-page .form-success {
  color: #0f7a20;
  border: 1px solid rgba(0, 169, 51, 0.16);
  background: rgba(0, 213, 18, 0.1);
}

.projects-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 264px));
  justify-content: start;
  gap: 8px;
}

.projects-grid-admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 415px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.project-card-admin {
  min-height: 488px;
}

.project-card-top {
  position: relative;
  min-width: 0;
  min-height: 151px;
  margin: 4px;
  border-radius: 20px;
  background: #f0f4f8;
}

.project-card-icon {
  position: absolute;
  left: 14px;
  top: 20px;
  width: 24px;
  height: 24px;
}

.project-id {
  position: absolute;
  left: 14px;
  top: 62px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.project-card h2 {
  position: absolute;
  left: 14px;
  right: 44px;
  top: 86px;
  margin: 0;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-live-dot {
  position: absolute;
  right: 18px;
  top: 83px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 192px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(0.5px);
  backdrop-filter: blur(0.5px);
}

.project-live-dot::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 192px;
  background: #00d512;
  box-shadow: 0 0 12px 6px rgba(0, 213, 18, 0.2);
}

.project-live-dot.is-offline::after {
  background: #aeb8c5;
  box-shadow: none;
}

.project-badges {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 113px;
  min-width: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hold-badge,
.status-badge {
  min-width: 0;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  border-radius: 128px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
}

.hold-badge {
  flex: 0 0 auto;
  color: #fff;
  background: #1d1d1d;
  font-weight: 500;
}

.hold-badge b {
  font-weight: 600;
}

.hold-badge img,
.status-badge img {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.status-badge {
  flex: 0 0 auto;
  width: auto;
  overflow: visible;
  font-weight: 700;
}

.status-approved {
  color: #fff;
  background: #00d512;
}

.status-pending {
  color: #7f3e00;
  background: #ffe02d;
}

.status-warning {
  color: #8a4c00;
  background: #ffe8b3;
}

.status-danger {
  color: #fff;
  background: #ec0a46;
}

.status-neutral {
  color: #526176;
  background: rgba(219, 224, 227, 0.9);
}

.project-details {
  min-width: 0;
  display: grid;
  gap: 17px;
  padding: 18px 18px 22px;
}

.project-field {
  min-width: 0;
}

.project-field > span {
  display: block;
  margin: 0 0 12px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.project-field p {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.project-field p img {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.method-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.method-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 4px 7px;
  color: #1d1d1d;
  border-radius: 128px;
  background: rgba(219, 224, 227, 0.7);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.method-tags span.is-muted {
  color: #67768c;
}

.method-tags img {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.method-tags .method-tag--sberpay img {
  width: 24px;
  height: 12px;
  flex-basis: 24px;
  object-fit: contain;
}

.project-admin-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}

.project-admin-details div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 14px;
  background: rgba(240, 244, 248, 0.62);
}

.project-admin-details span {
  color: #67768c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-admin-details b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1d1d1d;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.project-admin-actions {
  justify-content: flex-start;
  padding: 0 18px 18px;
}

.project-action-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  color: #9f5b00;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.14);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
}

.project-action-chip-success {
  color: #0f7a20;
  background: rgba(0, 213, 18, 0.1);
}

.projects-pager {
  justify-content: center;
  margin-top: 6px;
}

.projects-pager span {
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .figma-frame:has(.admin-payhot-page) {
    --admin-content-left: 392px;
    --admin-content-right: 32px;
  }

  .figma-frame:has(.merchant-projects-page) {
    --projects-content-left: 392px;
    --projects-content-right: 32px;
  }

  .admin-payhot-page.orders-page {
    width: var(--admin-content-width);
    margin-right: var(--admin-content-right);
    margin-left: var(--admin-content-left);
  }

  .merchant-projects-page.orders-page {
    width: var(--projects-content-width);
    margin-right: var(--projects-content-right);
    margin-left: var(--projects-content-left);
  }

  .admin-payhot-page .filter-grid,
  .admin-payhot-drawer .filter-grid,
  .admin-payhot-page .page-stats,
  .admin-payhot-drawer .page-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-payhot-page.orders-page {
    width: calc(100% - 48px);
    margin: 96px 24px 0;
  }

  .merchant-projects-page.orders-page {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    margin: 96px 24px 0;
  }

  .projects-stats-panel,
  .projects-list-column,
  .projects-filter-panel,
  .projects-grid,
  .projects-pager,
  .projects-empty-block,
  .merchant-projects-page .form-error,
  .merchant-projects-page .form-success {
    grid-column: 1;
  }

  .projects-stats-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-grid,
  .projects-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-payhot-page .page-stats,
  .admin-payhot-drawer .page-stats,
  .admin-payhot-page .filter-grid,
  .admin-payhot-drawer .filter-grid,
  .admin-payhot-page .detail-grid,
  .admin-payhot-drawer .detail-grid,
  .admin-payhot-page .module-grid {
    grid-template-columns: 1fr;
  }

  .admin-payhot-page .section-head,
  .admin-payhot-drawer .drawer-head,
  .admin-payhot-drawer .section-head {
    flex-direction: column;
  }

  .merchant-projects-hero {
    flex-direction: column;
  }

  .merchant-projects-actions {
    justify-content: flex-start;
  }
}

.figma-frame:has(.merchant-project-detail-page) {
  --project-detail-left: 392px;
  --project-detail-right: 72px;
  --project-detail-width: calc(100% - var(--project-detail-left) - var(--project-detail-right));
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.merchant-project-detail-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flow-root;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.merchant-project-detail-page) .topbar {
  width: 100%;
  max-width: 100%;
}

.figma-frame:has(.merchant-project-detail-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: calc(100% - 16px);
  max-width: 1424px;
  min-width: 0;
  height: 221px;
  margin: 72px 8px 0;
}

.merchant-project-detail-page.orders-page,
.merchant-project-detail-page *,
.project-moderation-overlay,
.project-moderation-overlay * {
  box-sizing: border-box;
  font-family: var(--font-ui);
}

.merchant-project-detail-page.orders-page {
  position: relative;
  left: auto;
  top: auto;
  z-index: 3;
  width: min(1110px, var(--project-detail-width));
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 398px);
  min-height: calc(100svh - 398px);
  min-height: calc(100dvh - 398px);
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
  margin: 109px var(--project-detail-right) 0 var(--project-detail-left);
  padding: 0;
  color: #1d1d1d;
}

.project-detail-hero {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-detail-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.project-detail-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.project-detail-icon img {
  width: 24px;
  height: 24px;
}

.project-detail-hero h1 {
  min-width: 0;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.project-detail-hero p {
  margin: 10px 0 0;
  color: #67768c;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.project-detail-actions,
.project-detail-button-row,
.project-detail-savebar {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.merchant-project-detail-page > .form-error,
.merchant-project-detail-page > .form-success,
.merchant-project-detail-page > .projects-empty-block {
  grid-column: 1 / -1;
}

.merchant-project-detail-page .form-error span {
  display: block;
  margin-top: 6px;
}

.project-reference-flow {
  grid-column: 1;
  min-width: 0;
  display: grid;
  gap: 22px;
  padding-top: 2px;
}

.project-reference-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta";
  column-gap: 13px;
  align-items: center;
}

.project-flow-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #9ba8b8;
  border-radius: 16px;
  background: rgba(219, 224, 227, 0.72);
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 700;
}

.project-reference-step h2 {
  grid-area: title;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}

.project-reference-step p {
  grid-area: meta;
  margin: 4px 0 0;
  color: #67768c;
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
}

.project-reference-step.done .project-flow-icon {
  color: #003b0a;
  background: rgba(0, 213, 18, 0.32);
}

.project-reference-step.active .project-flow-icon {
  color: #fff;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 14px 28px rgba(236, 10, 70, 0.18);
}

.project-approval-layout,
.project-settings-card,
.project-admin-panel {
  grid-column: 2;
  min-width: 0;
}

.project-approval-layout {
  display: grid;
  gap: 18px;
}

.merchant-project-detail-page .reference-card,
.project-settings-card,
.project-admin-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 250, 253, 0.94) 100%);
  box-shadow: 0 24px 60px rgba(0, 8, 33, 0.08);
}

.merchant-project-detail-page .reference-card {
  padding: 26px;
}

.merchant-project-detail-page .section-heading,
.project-settings-card h2,
.project-admin-panel h2 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.merchant-project-detail-page .notice {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 17px 18px 17px 44px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.merchant-project-detail-page .notice-line {
  position: absolute;
  left: 0;
  top: calc(50% - 12px);
  width: 2px;
  height: 24px;
  background: #2276fd;
}

.merchant-project-detail-page .notice img {
  position: absolute;
  left: 17px;
  width: 18px;
  height: 18px;
}

.merchant-project-detail-page .notice p {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: #1d1d1d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.merchant-project-detail-page .notice a,
.merchant-project-detail-page .notice button {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.merchant-project-detail-page .mode-switch {
  min-width: 0;
  display: inline-flex;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 16px;
  background: #f0f4f8;
}

.merchant-project-detail-page .mode-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #67768c;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.merchant-project-detail-page .mode-tab.active {
  color: #fff;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 14px 26px rgba(236, 10, 70, 0.18);
}

.merchant-project-detail-page .mode-site-icon {
  width: 16px;
  height: 16px;
}

.merchant-project-detail-page .mode-tg-icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: #2276fd;
}

.project-detail-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.project-detail-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 800;
}

.project-detail-field span b {
  color: #ec0a46;
}

.project-detail-field input,
.project-detail-field select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 15px;
  color: #1d1d1d;
  border: 1px solid rgba(46, 74, 105, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.project-detail-field input:focus,
.project-detail-field select:focus {
  border-color: rgba(253, 34, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(253, 34, 38, 0.08);
}

.project-detail-field input:disabled,
.project-detail-field select:disabled,
.project-detail-form:disabled .project-detail-field input,
.project-detail-form:disabled .project-detail-field select {
  color: #67768c;
  background: rgba(240, 244, 248, 0.72);
}

.merchant-project-detail-page .step-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #1d1d1d;
  font-size: 14px;
  font-weight: 800;
}

.merchant-project-detail-page .step-label span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #2276fd;
  font-family: var(--font-number);
}

.merchant-project-detail-page .verification-code,
.merchant-project-detail-page .verification-url,
.project-token-input {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 16px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.merchant-project-detail-page .verification-code strong,
.project-token-input strong {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.merchant-project-detail-page .verification-code button,
.project-token-input button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.merchant-project-detail-page .verification-code button img,
.project-token-input button img {
  width: 16px;
  height: 16px;
}

.project-detail-button-row {
  justify-content: flex-start;
  margin-top: 20px;
}

.project-settings-card {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.project-moderation-status {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 213, 18, 0.16);
  border-radius: 20px;
  background: rgba(0, 213, 18, 0.08);
}

.project-moderation-status .status-check {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(0, 213, 18, 0.26);
}

.project-moderation-status .status-check img {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

.project-moderation-status p {
  grid-area: label;
  margin: 0;
  color: #67768c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-moderation-status strong {
  grid-area: value;
  margin-top: 4px;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 28px;
}

.project-settings-grid,
.project-token-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-settings-grid .detail-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(46, 74, 105, 0.09);
  border-radius: 16px;
  background: rgba(240, 244, 248, 0.62);
}

.project-methods-settings {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.project-method-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(46, 74, 105, 0.09);
  border-radius: 18px;
  background: #fff;
}

.method-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #1d1d1d;
  border-radius: 15px;
  background: #f0f4f8;
  font-size: 12px;
  font-weight: 900;
}

.project-method-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.project-method-card span:not(.method-card-icon),
.project-method-card em {
  color: #67768c;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.project-method-card button {
  min-height: 38px;
  padding: 9px 13px;
  color: #ec0a46;
  border: 1px solid rgba(236, 10, 70, 0.18);
  border-radius: 12px;
  background: #fff0f1;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.project-token-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-token-field {
  min-width: 0;
}

.project-token-field h3 {
  margin: 0;
  color: #67768c;
  font-size: 13px;
  font-weight: 800;
}

.project-sandbox-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.project-sandbox-card p {
  margin: 10px 0 0;
  color: #67768c;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.project-sandbox-toggle {
  width: 92px;
  height: 48px;
  flex: 0 0 92px;
  padding: 4px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 999px;
  background: #f0f4f8;
  cursor: pointer;
}

.project-sandbox-toggle span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #1d1d1d;
  font-size: 11px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-sandbox-toggle.is-on span {
  background: #00b812;
  transform: translateX(42px);
}

.project-admin-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.project-admin-panel header p {
  margin: 8px 0 0;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
}

.project-admin-manual-verification {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(34, 118, 253, 0.18);
  border-radius: 16px;
  background: #f0f7ff;
}

.project-admin-manual-verification h3,
.project-admin-manual-verification p {
  margin: 0;
}

.project-admin-manual-verification h3 {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
}

.project-admin-manual-verification p {
  margin-top: 6px;
  color: #67768c;
  font-size: 12px;
  line-height: 1.35;
}

.project-admin-manual-verification button {
  min-width: 184px;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid rgba(34, 118, 253, 0.3);
  border-radius: 12px;
  color: #2276fd;
  background: #fff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}

.project-admin-manual-verification button:disabled {
  color: #9aa7b7;
  border-color: #d4dce5;
  background: #f0f4f8;
}

.project-admin-methods {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-admin-methods label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.project-detail-savebar {
  grid-column: 2;
  position: sticky;
  bottom: 16px;
  z-index: 4;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 8, 33, 0.08);
}

.merchant-project-detail-page .danger-action {
  color: #ec0a46;
}

.project-moderation-overlay {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(223, 230, 238, 0.64);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.project-moderation-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 48px 42px 38px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 75% 20%, rgba(253, 34, 38, 0.13), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 30px 80px rgba(0, 8, 33, 0.18);
}

.project-moderation-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 16px;
  background: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.project-moderation-visual {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 213, 18, 0.12);
}

.project-moderation-visual span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #00d512;
}

.project-moderation-visual span::before {
  content: "";
  width: 34px;
  height: 18px;
  border-left: 6px solid #fff;
  border-bottom: 6px solid #fff;
  transform: rotate(-45deg) translate(2px, -3px);
}

.project-moderation-panel h1 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  text-align: center;
}

.project-moderation-copy {
  max-width: 420px;
  margin: 0;
  color: #67768c;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-align: center;
}

.project-moderation-panel .manager-info {
  position: relative;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 18px 46px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.project-moderation-panel .manager-info img {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
}

.project-moderation-panel .manager-info p {
  margin: 0;
  color: #1d1d1d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.project-moderation-panel .manager-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: #fff;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 18px 34px rgba(236, 10, 70, 0.2);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .figma-frame:has(.merchant-project-detail-page) {
    --project-detail-left: 320px;
    --project-detail-right: 28px;
  }

  .merchant-project-detail-page.orders-page {
    grid-template-columns: 1fr;
  }

  .project-reference-flow,
  .project-approval-layout,
  .project-settings-card,
  .project-admin-panel,
  .project-detail-savebar {
    grid-column: 1;
  }

  .project-reference-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .figma-frame:has(.merchant-project-detail-page) {
    --project-detail-left: 24px;
    --project-detail-right: 24px;
  }

  .merchant-project-detail-page.orders-page {
    margin-top: 96px;
  }

  .project-detail-hero {
    flex-direction: column;
  }

  .project-detail-actions,
  .project-detail-savebar {
    justify-content: flex-start;
  }

  .project-reference-flow,
  .project-detail-form,
  .project-settings-grid,
  .project-token-grid {
    grid-template-columns: 1fr;
  }

  .project-method-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

/* Merchant project detail reference transfer */
.merchant-project-detail-page.orders-page {
  display: block;
  width: min(976px, var(--project-detail-width, calc(100% - var(--project-detail-left, 392px) - var(--project-detail-right, 72px))));
  max-width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.merchant-project-detail-page > .project-detail-hero,
.merchant-project-detail-page > .project-reference-flow,
.merchant-project-detail-page > .project-detail-savebar {
  display: none;
}

.merchant-project-detail-page .project-detail-feedback {
  width: 780px;
  max-width: 100%;
  margin: 0 0 18px;
}

.merchant-project-detail-page .approve-page-content,
.merchant-project-detail-page .settings-page-content,
.merchant-project-detail-page .approve-page-content *,
.merchant-project-detail-page .settings-page-content * {
  box-sizing: border-box;
}

.merchant-project-detail-page .approve-page-content {
  position: relative;
  left: 0;
  top: 0;
  width: 976px;
  max-width: 100%;
  height: 2933px;
  z-index: 60;
}

.merchant-project-detail-page .settings-page-content {
  position: relative;
  left: 0;
  top: 0;
  width: 976px;
  max-width: 100%;
  height: 1160px;
  z-index: 60;
}

.merchant-project-detail-page .approve-hero,
.merchant-project-detail-page .settings-hero {
  position: absolute;
  left: 0;
  top: 0;
  width: 520px;
  height: 58px;
}

.merchant-project-detail-page .approve-hero h1,
.merchant-project-detail-page .settings-hero h1 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 28.8px;
  font-weight: 500;
}

.merchant-project-detail-page .approve-hero p,
.merchant-project-detail-page .settings-hero p {
  position: absolute;
  left: 0;
  top: 41px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.merchant-project-detail-page .reference-card,
.merchant-project-detail-page .settings-card {
  position: absolute;
  left: 0;
  width: 780px;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
}

.merchant-project-detail-page .card-inner,
.merchant-project-detail-page .settings-card-inner {
  position: absolute;
  left: 4px;
  top: 73px;
  width: 772px;
  border: 1px solid #f0f4f8;
  border-radius: 20px;
  background: #fff;
}

.merchant-project-detail-page .section-heading {
  position: absolute;
  left: 28px;
  top: 32px;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.merchant-project-detail-page .approval-card { top: 90px; height: 680px; }
.merchant-project-detail-page .approval-card .card-inner { height: 603px; }
.merchant-project-detail-page .profile-card { top: 778px; height: 885px; }
.merchant-project-detail-page .profile-card .card-inner { height: 808px; }
.merchant-project-detail-page .integration-card { top: 1671px; height: 861px; }
.merchant-project-detail-page .integration-card .card-inner { height: 784px; }
.merchant-project-detail-page .sandbox-card { top: 2540px; height: 309px; }
.merchant-project-detail-page .sandbox-card .card-inner { height: 232px; }

.merchant-project-detail-page .notice {
  position: absolute;
  left: 28px;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%),
    linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.merchant-project-detail-page .notice::before {
  content: "i";
  position: absolute;
  left: 24px;
  top: 31px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #67768c;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.merchant-project-detail-page .notice-code::before {
  background: #2276fd;
}

.merchant-project-detail-page .profile-card .notice-locked::before,
.merchant-project-detail-page .integration-card .notice-locked::before {
  content: none;
}

.merchant-project-detail-page .notice img {
  display: none;
}

.merchant-project-detail-page .profile-card .notice-locked img,
.merchant-project-detail-page .integration-card .notice-locked img {
  position: absolute;
  left: 24px;
  top: 31px;
  width: 20px;
  height: 20px;
  display: block;
  opacity: 1;
}

.merchant-project-detail-page .notice p {
  position: absolute;
  left: 54px;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: normal;
  font-weight: 500;
}

.merchant-project-detail-page .notice-line {
  position: absolute;
  left: -1px;
  width: 2px;
  height: 24px;
}

.merchant-project-detail-page .notice-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 24px;
  filter: blur(16px);
}

.merchant-project-detail-page .notice-line.gray,
.merchant-project-detail-page .notice-line.gray::after {
  background: #67768c;
}

.merchant-project-detail-page .notice-line.blue,
.merchant-project-detail-page .notice-line.blue::after {
  background: #2276fd;
}

.merchant-project-detail-page .notice-manager {
  top: 97px;
  width: 724px;
  height: 134px;
}

.merchant-project-detail-page .notice-manager .notice-line {
  top: 30px;
}

.merchant-project-detail-page .notice-manager p {
  top: 24px;
  width: 614px;
}

.merchant-project-detail-page .notice-manager button,
.merchant-project-detail-page .notice-manager a {
  position: absolute;
  left: 24px;
  top: 75px;
  width: 195px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.merchant-project-detail-page .notice-code {
  top: 327px;
  width: 724px;
  height: 81px;
}

.merchant-project-detail-page .notice-code .notice-line,
.merchant-project-detail-page .notice-locked .notice-line,
.merchant-project-detail-page .notice-sandbox .notice-line {
  top: 30px;
}

.merchant-project-detail-page .notice-code p {
  left: 54px;
  top: 24px;
  width: 670px;
}

.merchant-project-detail-page .notice-locked {
  top: 97px;
  width: 724px;
  height: 81px;
}

.merchant-project-detail-page .notice-locked p,
.merchant-project-detail-page .notice-sandbox p {
  top: 24px;
  width: 588px;
}

.merchant-project-detail-page .notice-sandbox {
  top: 97px;
  width: 724px;
  height: 81px;
}

.merchant-project-detail-page .mode-switch {
  position: absolute;
  left: 28px;
  top: 251px;
  width: 228px;
  height: 56px;
  border-radius: 20px;
  background: #f0f4f8;
}

.merchant-project-detail-page .mode-tab {
  position: absolute;
  top: 8px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #1d1d1d;
  background: #fff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}

.merchant-project-detail-page .mode-tab.active {
  color: #fff;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.merchant-project-detail-page .mode-tab:first-child { left: 8px; width: 81px; }
.merchant-project-detail-page .mode-tab:last-child { left: 97px; width: 123px; }

.merchant-project-detail-page .mode-site-icon,
.merchant-project-detail-page .mode-tg-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.merchant-project-detail-page .mode-tg-icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: #2276fd;
  clip-path: polygon(0 44%, 100% 4%, 74% 92%, 47% 66%, 28% 82%, 35% 60%);
}

.merchant-project-detail-page .reference-select {
  position: absolute;
  left: 28px;
  top: 341px;
  width: 238px;
  height: 56px;
  margin: 0;
}

.merchant-project-detail-page .reference-select > span {
  position: absolute;
  left: 0;
  top: -23px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.merchant-project-detail-page .reference-select select {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #f0f4f8;
  border-radius: 20px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
}

.merchant-project-detail-page .reference-select .confirmation-type-dropdown {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  --payhot-dropdown-control-height: 44px;
}

.merchant-project-detail-page .reference-select .confirmation-type-dropdown .payhot-dropdown-button {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #f0f4f8;
  border-radius: 16px;
  background: #ffffff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
}

.merchant-project-detail-page .confirmation-type-select:has(.confirmation-type-dropdown.is-open) {
  z-index: 4;
}

.merchant-project-detail-page .approval-card:has(.confirmation-type-dropdown.is-open) {
  overflow: visible;
}

.merchant-project-detail-page .step-label {
  position: absolute;
  left: 54px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.merchant-project-detail-page .step-label span {
  position: absolute;
  left: -26px;
  top: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 128px;
  background: #2276fd;
  color: #fff;
  font-size: 11px;
  line-height: 11px;
}

.merchant-project-detail-page .step-code { top: 440px; }
.merchant-project-detail-page .step-file { top: 562px; }

.merchant-project-detail-page .verification-code {
  position: absolute;
  left: 28px;
  top: 475px;
  width: 448px;
  height: 55px;
  border-radius: 24px;
  background: #f0f4f8;
}

.merchant-project-detail-page .verification-code strong {
  position: absolute;
  left: 24px;
  top: 19px;
  max-width: 350px;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .verification-code button,
.merchant-project-detail-page .token-input button {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 24px;
  background: #fff;
}

.merchant-project-detail-page .copy-icon,
.merchant-project-detail-page .token-input button img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.merchant-project-detail-page .verification-url {
  position: absolute;
  left: 28px;
  top: 597px;
  box-sizing: border-box;
  width: 724px;
  height: 55px;
  padding: 19px 24px;
  overflow: hidden;
  border: 1px solid #f0f4f8;
  border-radius: 24px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .approval-inline-actions {
  position: absolute;
  left: 278px;
  top: 341px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.merchant-project-detail-page .approval-inline-actions button {
  min-width: 168px;
  height: 44px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}

.merchant-project-detail-page .field-block {
  position: absolute;
}

.merchant-project-detail-page .field-block label {
  position: absolute;
  left: 0;
  top: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.merchant-project-detail-page .readonly-field {
  position: absolute;
  left: 0;
  top: 35px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 17px;
  border: 1px solid #f0f4f8;
  border-radius: 20px;
  background: #fff;
}

.merchant-project-detail-page .readonly-field img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 1;
}

.merchant-project-detail-page .readonly-field span,
.merchant-project-detail-page .readonly-field input,
.merchant-project-detail-page .money-field input,
.merchant-project-detail-page .money-field span {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #67768c;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .readonly-field input {
  width: 100%;
}

.merchant-project-detail-page .readonly-field input:disabled,
.merchant-project-detail-page .money-field input:disabled {
  opacity: 1;
}

.merchant-project-detail-page .field-project-name { left: 28px; top: 210px; }
.merchant-project-detail-page .field-site-address { left: 28px; top: 341px; }
.merchant-project-detail-page .field-telegram { left: 29px; top: 472px; }
.merchant-project-detail-page .field-email { left: 405px; top: 472px; }
.merchant-project-detail-page .field-confirmation { left: 24px; top: 603px; }
.merchant-project-detail-page .field-turnover { left: 24px; top: 734px; }
.merchant-project-detail-page .field-average { left: 400px; top: 734px; }
.merchant-project-detail-page .integration-name { left: 28px; top: 210px; }
.merchant-project-detail-page .integration-webhook { left: 28px; top: 341px; }
.merchant-project-detail-page .integration-success { left: 28px; top: 472px; }
.merchant-project-detail-page .integration-error { left: 28px; top: 603px; }
.merchant-project-detail-page .integration-chat { left: 28px; top: 734px; }

.merchant-project-detail-page .field-project-name .readonly-field,
.merchant-project-detail-page .field-site-address .readonly-field,
.merchant-project-detail-page .field-confirmation .readonly-field,
.merchant-project-detail-page .integration-name .readonly-field,
.merchant-project-detail-page .integration-webhook .readonly-field,
.merchant-project-detail-page .integration-success .readonly-field,
.merchant-project-detail-page .integration-error .readonly-field,
.merchant-project-detail-page .integration-chat .readonly-field {
  width: 724px;
}

.merchant-project-detail-page .field-telegram .readonly-field,
.merchant-project-detail-page .field-email .readonly-field {
  width: 347px;
}

.merchant-project-detail-page .money-field {
  position: absolute;
  left: 0;
  top: 35px;
  width: 352px;
  height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 24px;
  border-radius: 20px;
  background: #f0f4f8;
}

.merchant-project-detail-page .money-field input {
  width: 250px;
}

.merchant-project-detail-page .sandbox-toggle {
  position: absolute;
  left: 24px;
  top: 226px;
  width: 60px;
  height: 31px;
  padding: 0;
  border: 1.13px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.merchant-project-detail-page .sandbox-toggle span {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 32px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 1152px;
  background: rgba(103, 118, 140, 0.3);
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
}

.merchant-project-detail-page .sandbox-toggle.is-on span {
  left: 21px;
  background: #00d512;
  color: #fff;
}

.merchant-project-detail-page .sandbox-label {
  position: absolute;
  left: 96px;
  top: 233px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.merchant-project-detail-page .submit-moderation {
  position: absolute;
  left: 0;
  top: 2881px;
  width: 780px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
}

.merchant-project-detail-page .approve-flow,
.merchant-project-detail-page .settings-flow {
  position: absolute;
  left: 852px;
  top: 0;
  width: 124px;
  height: 595px;
}

.merchant-project-detail-page .flow-step,
.merchant-project-detail-page .settings-flow-step {
  position: absolute;
  left: 0;
  width: 124px;
  height: 106px;
}

.merchant-project-detail-page .flow-profile { top: 0; }
.merchant-project-detail-page .flow-integration { top: 151px; }
.merchant-project-detail-page .flow-approve { top: 302px; }
.merchant-project-detail-page .flow-moderation { top: 453px; }

.merchant-project-detail-page .flow-icon,
.merchant-project-detail-page .settings-flow-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 4.5px solid #fff;
  border-radius: 9999px;
  background: #fff;
}

.merchant-project-detail-page .settings-flow-icon,
.merchant-project-detail-page .flow-step.done .flow-icon {
  border-color: #00d512;
  background: #00d512;
}

.merchant-project-detail-page .flow-icon img,
.merchant-project-detail-page .settings-flow-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.62;
}

.merchant-project-detail-page .settings-flow-icon img,
.merchant-project-detail-page .flow-step.done .flow-icon img {
  opacity: 1;
}

.merchant-project-detail-page .flow-step h2,
.merchant-project-detail-page .settings-flow-step h2 {
  position: absolute;
  left: 0;
  top: 66px;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 14.4px;
  font-weight: 500;
  white-space: nowrap;
}

.merchant-project-detail-page .flow-step p,
.merchant-project-detail-page .settings-flow-step p {
  position: absolute;
  left: 0;
  top: 88px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
}

.merchant-project-detail-page .settings-flow-step p,
.merchant-project-detail-page .flow-step.done p {
  color: #00d512;
}

.merchant-project-detail-page .approval-toasts {
  position: absolute;
  left: 671px;
  top: -90px;
  width: 305px;
  height: 232px;
  z-index: 120;
}

.merchant-project-detail-page .approval-toast {
  position: absolute;
  right: 0;
  height: 68px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: rgba(29, 29, 29, 0.75);
  box-shadow: 0 1.087px 3.623px rgba(0, 0, 0, 0.02), 0 3.005px 10.017px rgba(0, 0, 0, 0.04), 0 7.235px 24.118px rgba(0, 0, 0, 0.05), 0 24px 80px rgba(0, 0, 0, 0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.merchant-project-detail-page .approval-toast span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #fd2226;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
}

.merchant-project-detail-page .approval-toast span img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.merchant-project-detail-page .toast-error { top: 0; width: 305px; }
.merchant-project-detail-page .toast-error span { background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%); color: #fff; }
.merchant-project-detail-page .toast-success { top: 82px; width: 178px; }
.merchant-project-detail-page .toast-info { top: 164px; width: 303px; }

.merchant-project-detail-page .approval-toast strong {
  position: absolute;
  left: 70px;
  top: 26px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.project-payhot-toast-region {
  position: fixed;
  top: 112px;
  right: 48px;
  width: min(360px, calc(100vw - 32px));
  z-index: 9900;
  pointer-events: none;
}

.project-payhot-toast {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.087px 3.623px rgba(0, 0, 0, 0.02), 0 3.005px 10.017px rgba(0, 0, 0, 0.04), 0 7.235px 24.118px rgba(0, 0, 0, 0.05), 0 24px 80px rgba(0, 0, 0, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #1d1d1d;
  font-family: var(--font-ui);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-payhot-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-payhot-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.project-payhot-toast span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1d1d1d;
  color: #fff;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.project-payhot-toast.is-error span {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.project-payhot-toast strong {
  min-width: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.merchant-project-detail-page .settings-card {
  top: 90px;
  height: 973px;
}

.merchant-project-detail-page .settings-card-inner {
  left: 3px;
  top: 3px;
  height: 965px;
}

.merchant-project-detail-page .moderation-status {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 724px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%), linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.merchant-project-detail-page .status-line {
  position: absolute;
  left: 0;
  top: 25px;
  width: 2px;
  height: 24px;
  background: #00d512;
}

.merchant-project-detail-page .status-check {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #00d512;
}

.merchant-project-detail-page .status-check img {
  width: 13.5px;
  height: 13.5px;
}

.merchant-project-detail-page .moderation-status p,
.merchant-project-detail-page .moderation-status strong {
  position: absolute;
  left: 54px;
  margin: 0;
  font-family: var(--font-ui);
}

.merchant-project-detail-page .moderation-status p {
  top: 14px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 500;
}

.merchant-project-detail-page .moderation-status strong {
  top: 34px;
  color: #00d512;
  font-size: 15px;
  font-weight: 600;
}

.merchant-project-detail-page .settings-field {
  position: absolute;
  left: 28px;
  top: 128px;
}

.merchant-project-detail-page .settings-field label,
.merchant-project-detail-page .hold-days label,
.merchant-project-detail-page .methods-block h2,
.merchant-project-detail-page .summary-item h3,
.merchant-project-detail-page .token-field h3 {
  display: block;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.merchant-project-detail-page .settings-field .readonly-field {
  width: 728px;
}

.merchant-project-detail-page .confirmed-date {
  position: absolute;
  left: 28px;
  top: 239px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.merchant-project-detail-page .confirmed-date img {
  width: 12px;
  height: 12px;
}

.merchant-project-detail-page .confirmed-date span {
  color: #2276fd;
}

.merchant-project-detail-page .hold-days {
  position: absolute;
  left: 28px;
  top: 288px;
}

.merchant-project-detail-page .hold-days p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 21px 0 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
}

.merchant-project-detail-page .hold-days img {
  width: 18px;
  height: 18px;
}

.merchant-project-detail-page .methods-block {
  position: absolute;
  left: 28px;
  top: 375px;
  width: 718px;
  height: 216px;
}

.merchant-project-detail-page .method-chip {
  position: absolute;
  height: 55px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 24px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
}

.merchant-project-detail-page .method-chip strong {
  color: #1d1d1d;
  font-weight: 600;
  white-space: nowrap;
}

.merchant-project-detail-page .chip-icon,
.merchant-project-detail-page .chip-arrow {
  width: 39px;
  height: 39px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: #fff;
}

.merchant-project-detail-page .chip-icon img {
  max-width: 20px;
  max-height: 20px;
}

.merchant-project-detail-page .method-sbp {
  left: 1px;
  top: 35px;
  width: 286px;
  padding: 8px;
  background: #f0f4f8;
}

.merchant-project-detail-page .method-rf-cards {
  left: 294px;
  top: 35px;
  width: 422px;
  padding: 8px;
  background: #f0f4f8;
}

.merchant-project-detail-page .flag-icon {
  overflow: hidden;
}

.merchant-project-detail-page .flag-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(#f0f0f0 0 33.33%, #0052b4 33.33% 66.66%, #d80027 66.66%);
}

.merchant-project-detail-page .method-world {
  left: 0;
  top: 98px;
  width: 397px;
  padding: 8px;
  background: #f0f4f8;
}

.merchant-project-detail-page .method-erip {
  left: 0;
  top: 161px;
  width: 359px;
  padding: 8px;
  background: #f0f4f8;
}

.merchant-project-detail-page .method-crypto {
  left: 367px;
  top: 161px;
  width: 351px;
  padding: 8px;
  border: 1px solid #f0f4f8;
  background: #fff;
}

.merchant-project-detail-page .method-world,
.merchant-project-detail-page .method-erip,
.merchant-project-detail-page .method-crypto {
  gap: 10px;
}

.merchant-project-detail-page .method-world a,
.merchant-project-detail-page .method-erip a,
.merchant-project-detail-page .method-crypto a,
.merchant-project-detail-page .method-request-link {
  position: absolute;
  top: 18px;
  margin-left: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
}

.merchant-project-detail-page .method-world .method-request-link,
.merchant-project-detail-page .method-erip .method-request-link {
  left: auto;
  right: 22px;
  color: #fd2226;
}

.merchant-project-detail-page .method-crypto .method-request-link {
  left: auto;
  right: 16px;
  color: #006aff;
}

.merchant-project-detail-page .method-chip .method-status.is-active {
  color: #67768c;
}

.merchant-project-detail-page .method-chip .method-status.is-progress {
  color: #a06116;
}

.merchant-project-detail-page .method-chip .method-status.is-danger {
  color: #c4333d;
}

.merchant-project-detail-page .method-chip .method-status.is-muted {
  color: #67768c;
}

.merchant-project-detail-page .chip-icon.muted {
  background: #f0f4f8;
}

.merchant-project-detail-page .settings-summary {
  position: absolute;
  left: 28px;
  top: 636px;
  width: 556px;
  height: 53px;
}

.merchant-project-detail-page .summary-item {
  position: absolute;
  top: 0;
}

.merchant-project-detail-page .summary-return { left: 0; width: 149px; }
.merchant-project-detail-page .summary-source { left: 197px; width: 163px; }
.merchant-project-detail-page .summary-sandbox { left: 408px; width: 120px; }

.merchant-project-detail-page .summary-item > span,
.merchant-project-detail-page .summary-item > strong {
  position: absolute;
  left: 0;
  top: 29px;
}

.merchant-project-detail-page .green-pill,
.merchant-project-detail-page .red-pill {
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1px 9px 2px;
  border-radius: 128px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.merchant-project-detail-page .green-pill {
  background: #00d512;
}

.merchant-project-detail-page .red-pill {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.merchant-project-detail-page .green-pill img,
.merchant-project-detail-page .red-pill img {
  width: 12px;
  height: 12px;
}

.merchant-project-detail-page .summary-item > strong {
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.merchant-project-detail-page .settings-sandbox-toggle {
  left: 616px;
  top: 654px;
}

.merchant-project-detail-page .token-field {
  position: absolute;
  left: 28px;
  width: 448px;
  height: 90px;
}

.merchant-project-detail-page .token-one { top: 737px; }
.merchant-project-detail-page .token-two { top: 845px; }

.merchant-project-detail-page .token-input {
  position: absolute;
  left: 0;
  top: 35px;
  width: 448px;
  height: 55px;
  border-radius: 24px;
  background: #f0f4f8;
}

.merchant-project-detail-page .token-input strong {
  position: absolute;
  left: 24px;
  top: 19px;
  max-width: 360px;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .project-detail-reference-actions {
  position: absolute;
  left: 0;
  width: 780px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.merchant-project-detail-page .approval-reference-actions {
  top: 2958px;
}

.merchant-project-detail-page .settings-reference-actions {
  top: 1088px;
}

.merchant-project-detail-page.project-detail-admin .approve-page-content,
.merchant-project-detail-page.project-detail-admin .settings-page-content {
  margin-bottom: 32px;
}

/* The reference action row is absolutely positioned at the bottom of the
   project canvas. Keep the subsequent admin runtime panel below that row. */
@media (min-width: 768px) {
  .merchant-project-detail-page.project-detail-admin .project-admin-panel {
    position: relative;
    z-index: 1;
    /* The preceding reference canvas ends with an absolute action row. */
    margin-top: 80px;
  }
}

.merchant-project-detail-page .project-detail-admin-reference {
  width: 976px;
  max-width: 100%;
}

.project-create-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--payhot-modal-backdrop-z, 2147483000);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100dvh;
  max-width: 100%;
  overflow: visible;
  isolation: isolate;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.project-create-modal {
  position: relative;
  z-index: var(--payhot-modal-panel-z, 2147483010);
  width: min(448px, calc(100vw - 32px));
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 255, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(0, 8, 33, 0.16), 0 18px 40px rgba(253, 34, 38, 0.10);
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.project-create-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #1d1d1d;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.project-create-kicker {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #67768c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-create-kicker img {
  width: 22px;
  height: 22px;
}

.project-create-modal h2 {
  margin: 0;
  padding-right: 54px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}

.project-create-modal p {
  margin: -6px 0 0;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.project-create-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 800;
}

.project-create-field input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 15px 17px;
  border: 1px solid rgba(46, 74, 105, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.project-create-field input:focus {
  border-color: rgba(253, 34, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(253, 34, 38, 0.08);
}

.project-create-field input.input-invalid {
  border-color: rgba(253, 34, 38, 0.7);
}

.project-create-field small,
.project-create-error {
  color: #ec0a46;
  font-size: 12px;
  font-weight: 800;
}

.project-create-error {
  padding: 12px 14px;
  border: 1px solid rgba(253, 34, 38, 0.16);
  border-radius: 14px;
  background: rgba(253, 34, 38, 0.07);
}

.project-create-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.project-create-actions .add-project-button {
  min-width: 156px;
  min-height: 48px;
  justify-content: center;
}

@media (max-width: 1180px) {
  .merchant-project-detail-page.orders-page {
    overflow-x: auto;
  }
}

.project-moderation-overlay .moderation-panel,
.project-moderation-overlay .moderation-panel * {
  box-sizing: border-box;
}

.project-moderation-overlay .moderation-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-family: var(--font-ui);
}

.project-moderation-overlay .panel-outer {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 512px;
  height: calc(100% - 16px);
  max-height: 918px;
  border-radius: 32px;
  background: #f0f4f8;
}

.project-moderation-overlay .panel-inner {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 496px;
  height: calc(100% - 32px);
  max-height: 902px;
  border-radius: 24px;
  background: #fff;
}

.project-moderation-overlay .close-button {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.017px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.23);
  cursor: pointer;
}

.project-moderation-overlay .close-button img {
  width: 14px;
  height: 14px;
}

.project-moderation-overlay .moderation-visual {
  position: absolute;
  right: 176px;
  top: 40px;
  width: 168px;
  height: 164px;
}

.project-moderation-overlay .visual-plate {
  position: absolute;
  inset: 0;
  border-radius: 1024px;
  background: #fff;
}

.project-moderation-overlay .visual-ring {
  position: absolute;
  left: 38px;
  top: 36px;
  width: 90px;
  height: 90px;
  z-index: 1;
  overflow: hidden;
  border-radius: 100%;
}

.project-moderation-overlay .visual-clock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: cover;
}

.project-moderation-overlay .moderation-panel h1 {
  position: absolute;
  right: 78px;
  top: 204px;
  width: 371px;
  margin: 0;
  color: #000;
  text-align: center;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 21.6px;
  letter-spacing: 0;
  font-weight: 500;
}

.project-moderation-overlay .moderation-copy {
  position: absolute;
  right: 78px;
  top: 250px;
  width: 371px;
  margin: 0;
  color: #67768c;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  font-weight: 500;
}

.project-moderation-overlay .manager-info {
  position: absolute;
  right: 32px;
  top: 340px;
  width: 448px;
  height: 71px;
  overflow: hidden;
  border-radius: 24px;
}

.project-moderation-overlay .info-bg-base,
.project-moderation-overlay .info-bg-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 448px;
  height: 71px;
  border-radius: 24px;
}

.project-moderation-overlay .info-bg-base {
  z-index: 0;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.project-moderation-overlay .info-bg-overlay {
  z-index: 1;
  border: 1px solid rgba(46, 74, 105, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
}

.project-moderation-overlay .info-line,
.project-moderation-overlay .info-glow {
  position: absolute;
  left: 0;
  top: 24px;
  width: 2px;
  height: 24px;
  z-index: 2;
  background: #2276fd;
}

.project-moderation-overlay .info-glow {
  width: 10px;
  filter: blur(16px);
}

.project-moderation-overlay .info-icon {
  position: absolute;
  left: 24px;
  top: 25px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  z-index: 3;
}

.project-moderation-overlay .info-icon img {
  width: 20px;
  height: 20px;
}

.project-moderation-overlay .manager-info p {
  position: absolute;
  left: 54px;
  top: 14px;
  width: 356px;
  z-index: 3;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 15.6px;
  font-weight: 500;
}

.project-moderation-overlay .manager-button {
  position: absolute;
  right: 32px;
  top: 443px;
  width: 448px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #1d1d1d;
  text-align: center;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Project detail/create corrections */
.merchant-project-detail-page .flow-step.active .flow-icon {
  border-color: #fff;
}

.merchant-project-detail-page .settings-page-content {
  height: 1480px;
}

.merchant-project-detail-page .settings-sandbox-card {
  top: 1094px;
}

.merchant-project-detail-page .settings-reference-actions {
  top: 1432px;
}

/* Merchant verification is intentionally more spacious than the static donor
   canvas. Keep the existing controls, but lay them out in reading order and
   reserve enough canvas room for the cards and their action rows. */
@media (min-width: 768px) {
  .merchant-project-detail-page.project-detail-merchant .approve-page-content {
    height: 3090px;
  }

  .merchant-project-detail-page.project-detail-merchant .approval-card {
    height: 790px;
  }

  .merchant-project-detail-page.project-detail-merchant .approval-card .card-inner {
    height: 713px;
  }

  .merchant-project-detail-page.project-detail-merchant .notice-code {
    top: 327px;
  }

  .merchant-project-detail-page.project-detail-merchant .reference-select {
    top: 355px;
  }

  .merchant-project-detail-page.project-detail-merchant .approval-inline-actions {
    top: 355px;
  }

  .merchant-project-detail-page.project-detail-merchant .step-code {
    top: 545px;
  }

  .merchant-project-detail-page.project-detail-merchant .verification-code {
    top: 580px;
  }

  .merchant-project-detail-page.project-detail-merchant .step-file {
    top: 667px;
  }

  .merchant-project-detail-page.project-detail-merchant .verification-url {
    top: 702px;
  }

  .merchant-project-detail-page.project-detail-merchant .profile-card {
    top: 888px;
  }

  .merchant-project-detail-page.project-detail-merchant .integration-card {
    top: 1781px;
  }

  .merchant-project-detail-page.project-detail-merchant .sandbox-card {
    top: 2650px;
  }

  .merchant-project-detail-page.project-detail-merchant .submit-moderation {
    top: 2958px;
  }

  .merchant-project-detail-page.project-detail-merchant .approval-reference-actions {
    top: 3030px;
  }

  .merchant-project-detail-page.project-detail-merchant .settings-page-content {
    height: 1538px;
  }

  .merchant-project-detail-page.project-detail-merchant .settings-reference-actions {
    top: 1468px;
  }
}

.merchant-project-detail-page .settings-summary {
  width: 724px;
}

.merchant-project-detail-page .summary-return {
  left: 0;
  width: 180px;
}

.merchant-project-detail-page .summary-source {
  left: 230px;
  width: 260px;
}

.merchant-project-detail-page .summary-sandbox {
  left: 548px;
  width: 160px;
}

.merchant-project-detail-page .summary-item h3 {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .summary-source h3 {
  max-width: 260px;
}

.merchant-project-detail-page .summary-item > span,
.merchant-project-detail-page .summary-item > strong {
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .green-pill,
.merchant-project-detail-page .red-pill {
  width: auto;
  min-width: 120px;
}

.merchant-project-detail-page .flag-icon img {
  display: none;
}

.merchant-project-detail-page .method-crypto .chip-icon img {
  max-width: 24px;
  max-height: 24px;
}

.merchant-project-detail-page .approve-hero h1,
.merchant-project-detail-page .settings-hero h1 {
  max-width: 520px;
  overflow: hidden;
  line-height: 32px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .verification-code {
  overflow: hidden;
}

.merchant-project-detail-page .verification-code strong {
  max-width: 360px;
  line-height: 18px;
  letter-spacing: 0;
}

.merchant-project-detail-page .verification-url {
  max-width: calc(100% - 56px);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}

.merchant-project-detail-page input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.merchant-project-detail-page input[type="number"]::-webkit-outer-spin-button,
.merchant-project-detail-page input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.merchant-project-detail-page .integration-card .readonly-field,
.merchant-project-detail-page .profile-card .readonly-field {
  box-shadow: inset 0 0 0 1px rgba(240, 244, 248, 0.42);
}

.merchant-project-detail-page .integration-card .readonly-field:focus-within,
.merchant-project-detail-page .profile-card .readonly-field:focus-within {
  border-color: rgba(34, 118, 253, 0.32);
  box-shadow: 0 0 0 4px rgba(34, 118, 253, 0.08);
}

.merchant-project-detail-page .integration-card .readonly-field input,
.merchant-project-detail-page .profile-card .readonly-field input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.merchant-project-detail-page .project-admin-panel {
  border-radius: 24px;
}

.merchant-project-detail-page .project-admin-panel .scenario-switch {
  position: relative;
  width: 360px;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 16px;
  background: #f0f4f8;
}

.merchant-project-detail-page .project-admin-panel .scenario-switch-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(50% - 4px);
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(46, 74, 105, 0.12);
  transition: transform 180ms ease;
}

.merchant-project-detail-page .project-admin-panel .scenario-switch.is-page .scenario-switch-thumb {
  transform: translateX(100%);
}

.merchant-project-detail-page .project-admin-panel .scenario-switch-option {
  position: relative;
  z-index: 1;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
}

.merchant-project-detail-page .project-admin-panel .scenario-switch-option.active {
  color: #1d1d1d;
}

.figma-frame.operations-shell .page-footer,
.figma-frame.operations-shell .mobile-cabinet-footer {
  display: none;
}

/* Payment links reference transfer */
.payment-links-runtime-page,
.payment-links-runtime-page * {
  box-sizing: border-box;
}

.payment-links-runtime-page {
  --payment-links-left: 392px;
  --payment-links-right: 74px;
  --payment-links-card-width: 319px;
  width: min(973px, calc(100% - var(--payment-links-left) - var(--payment-links-right)));
  margin-left: var(--payment-links-left);
  padding-top: 109px;
  padding-bottom: 96px;
  min-width: 0;
  max-width: 100%;
  min-height: 900px;
  min-height: max(calc(100vh - 398px), 900px);
  min-height: max(calc(100svh - 398px), 900px);
  min-height: max(calc(100dvh - 398px), 900px);
  font-family: var(--font-ui);
}

.payment-links-runtime-page .payment-links-content {
  position: relative;
  inset: auto;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

/* Orders reference transfer */
.figma-frame:has(.orders-runtime-page) {
  --orders-content-left: 392px;
  --orders-content-right: 72px;
  --orders-content-width: calc(100% - var(--orders-content-left) - var(--orders-content-right));
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: none;
}

body:has(.orders-runtime-page) {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.figma-frame:has(.orders-runtime-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flow-root;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.orders-runtime-page) .topbar {
  width: 100%;
  max-width: 100%;
}

.figma-frame:has(.orders-runtime-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: calc(100% - 16px);
  max-width: 1424px;
  min-width: 0;
  height: 221px;
  margin: 72px 8px 0;
}

.orders-runtime-page,
.orders-runtime-page * {
  box-sizing: border-box;
}

.orders-runtime-page {
  position: relative;
  z-index: 3;
  width: min(974px, var(--orders-content-width));
  min-width: 0;
  max-width: 100%;
  min-height: calc(100vh - 398px);
  min-height: calc(100svh - 398px);
  min-height: calc(100dvh - 398px);
  margin: 109px var(--orders-content-right) 0 var(--orders-content-left);
  padding: 0 0 48px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.orders-runtime-page .orders-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title filter"
    "search search"
    "table table";
  gap: 26px 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.orders-runtime-page .orders-title {
  grid-area: title;
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.orders-runtime-page .orders-title img {
  width: 24px;
  height: 24px;
  margin-top: 3px;
}

.orders-runtime-page .orders-title h1 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.orders-runtime-page .orders-title p {
  grid-column: 1 / -1;
  margin: 9px 0 0;
  color: #67768c;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.orders-runtime-page .orders-filter {
  grid-area: filter;
  min-width: 130px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1d;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.orders-runtime-page .orders-filter img {
  width: 18px;
  height: 18px;
}

.orders-runtime-page .orders-filter b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ff183f;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.orders-runtime-page .orders-search {
  grid-area: search;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(103, 118, 140, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04);
}

.orders-runtime-page .orders-search.active {
  border-color: rgba(255, 24, 63, 0.34);
  box-shadow: 0 16px 36px rgba(255, 24, 63, 0.1);
}

.orders-runtime-page .orders-search img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.orders-runtime-page .orders-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}

.orders-runtime-page .orders-search input::placeholder {
  color: #67768c;
  opacity: 0.72;
}

.orders-runtime-page .orders-table-card,
.orders-runtime-page .orders-empty {
  grid-area: table;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
}

.orders-runtime-page .orders-table-card {
  overflow: hidden;
}

.orders-runtime-page .orders-table-header,
.orders-runtime-page .order-row {
  display: grid;
  grid-template-columns: 0.72fr 0.78fr 0.9fr 1.28fr 1fr 1.18fr 1.28fr 0.68fr 1.2fr;
  align-items: center;
  gap: 12px;
  min-width: 940px;
}

.orders-runtime-page .orders-table-header {
  min-height: 56px;
  padding: 0 24px;
  color: #67768c;
  background: #f0f4f8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.orders-runtime-page .orders-rows {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orders-runtime-page .order-row {
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 0 24px;
  border: 0;
  border-top: 1px solid rgba(103, 118, 140, 0.12);
  background: #fff;
  color: #1d1d1d;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.16s ease, transform 0.16s ease;
}

.orders-runtime-page .order-row:hover {
  background: #f8fafc;
}

.orders-runtime-page .order-row:focus-visible {
  outline: 2px solid rgba(255, 24, 63, 0.45);
  outline-offset: -2px;
}

.orders-runtime-page .order-row .muted {
  color: #67768c;
  font-weight: 700;
}

.orders-runtime-page .order-row strong,
.orders-runtime-page .order-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-runtime-page .method,
.orders-runtime-page .risk,
.orders-runtime-page .status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.orders-runtime-page .status {
  max-width: 100%;
}

.orders-runtime-page .method img,
.orders-runtime-page .status img,
.orders-runtime-page .risk img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.orders-runtime-page .method.crypto {
  background: #eef3f8;
  color: #1d1d1d;
}

.orders-runtime-page .method.fiat-method {
  background: #eef3f8;
  color: #1d1d1d;
}

.orders-runtime-page .risk {
  justify-content: flex-start;
  color: #67768c;
  background: #f1f5f9;
}

.orders-runtime-page .risk i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #19c84c;
  box-shadow: 0 0 0 5px rgba(25, 200, 76, 0.12);
}

.orders-runtime-page .risk-chip-medium i {
  background: #ffb020;
}

.orders-runtime-page .risk-chip-high i,
.orders-runtime-page .risk-chip-critical i,
.orders-runtime-page .risk-chip-unknown i {
  background: #ff183f;
}

.orders-runtime-page .risk-chip-medium {
  color: #a76700;
}

.orders-runtime-page .risk-chip-high,
.orders-runtime-page .risk-chip-critical,
.orders-runtime-page .risk-chip-unknown {
  color: #c20a2e;
}

.orders-runtime-page .status.paid {
  background: #00c921;
  color: #fff;
}

.orders-runtime-page .order-row > .status {
  width: fit-content;
  min-width: 108px;
  max-width: 128px;
  justify-self: start;
  padding-inline: 12px;
}

.orders-runtime-page .status.process,
.orders-runtime-page .status.waiting {
  background: rgba(251, 220, 45, 0.2);
  color: #8a6b00;
}

.orders-runtime-page .status.expired,
.orders-runtime-page .status.rejected {
  background: rgba(255, 24, 63, 0.12);
  color: #d30e35;
}

.orders-runtime-page .date {
  color: #67768c;
  font-size: 12px;
  font-weight: 700;
}

.orders-runtime-page .orders-admin-extra {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
}

.orders-runtime-page .orders-admin-extra em {
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #67768c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.orders-runtime-page .orders-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 56px 24px;
  text-align: center;
}

.orders-runtime-page .orders-empty .state-document {
  width: min(220px, 60vw);
  max-width: 100%;
}

.orders-runtime-page .orders-empty p {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
}

.orders-runtime-page .orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 24px 20px 10px;
}

.orders-runtime-page .orders-pagination button,
.orders-runtime-page .orders-pagination span {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 17.6px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.orders-runtime-page .orders-pagination button {
  cursor: pointer;
}

.orders-runtime-page .orders-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.orders-runtime-page .orders-pagination button.active {
  border-color: transparent;
  background: #1d1d1d;
  color: #fff;
}

.orders-runtime-page .orders-pagination img {
  width: 24px;
  height: 24px;
}

.orders-runtime-page .orders-pagination button:first-child img {
  transform: rotate(180deg);
}

.orders-runtime-page .orders-admin-state {
  width: min(1180px, calc(100vw - var(--orders-content-left) - 48px));
  max-width: calc(100vw - var(--orders-content-left) - 48px);
}

.orders-runtime-page .orders-admin-state .orders-table-header,
.orders-runtime-page .orders-admin-state .order-row {
  grid-template-columns: 72px 86px 100px 160px 126px 150px 146px 86px 160px;
  min-width: 1086px;
}

.orders-runtime-page .orders-admin-state .orders-table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orders-runtime-page .orders-admin-state .order-row {
  min-height: 118px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.orders-runtime-page .orders-admin-state .admin-row-details {
  grid-template-columns: 1.25fr 1fr 1.25fr 1.25fr;
  padding: 6px 0 2px;
}

.orders-runtime-page .risk-chip-unknown i,
.orders-runtime-page .risk-chip-critical i {
  border-color: #ff183f;
  background: transparent;
}

.orders-runtime-page .risk-chip-unknown {
  color: #c20a2e;
}

.orders-runtime-page .status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-runtime-page .orders-pagination button:last-child img {
  transform: none;
}

.orders-runtime-page .orders-count {
  margin: 0;
  padding: 0 0 24px;
  color: #67768c;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.orders-toast-region {
  position: fixed;
  top: 84px;
  right: 32px;
  z-index: 10030;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.orders-toast {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(29, 29, 29, 0.86);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 8, 33, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
}

.orders-toast.success {
  background: rgba(15, 126, 45, 0.88);
}

.orders-toast.warning {
  background: rgba(117, 84, 0, 0.88);
}

.orders-toast.danger {
  background: rgba(194, 10, 46, 0.9);
}

.orders-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 18, 30, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.orders-filter-legacy-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10010;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 90px rgba(0, 8, 33, 0.22);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.orders-filter-legacy-panel .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.orders-filter-legacy-panel .field,
.orders-filter-legacy-panel .filter-actions {
  min-width: 0;
}

.orders-filter-legacy-panel .filter-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.order-detail-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10010;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 90px rgba(0, 8, 33, 0.24);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.order-detail-panel .drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 24px;
  border-bottom: 1px solid rgba(103, 118, 140, 0.12);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.order-detail-panel .drawer-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-detail-panel .detail-grid,
.order-detail-panel .drawer-section {
  margin: 18px 24px;
}

.order-detail-panel .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-panel .detail-item,
.order-detail-panel .drawer-file-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(103, 118, 140, 0.12);
  border-radius: 16px;
  background: #f8fafc;
}

.order-detail-panel .drawer-section {
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(240, 244, 248, 0.72);
}

.order-detail-panel .drawer-section-title {
  margin-bottom: 12px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
}

.order-detail-panel .code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.order-detail-success {
  border-left: 4px solid #00c921;
}

.order-detail-failure {
  border-left: 4px solid #ff183f;
}

.order-detail-pending {
  border-left: 4px solid #ffb020;
}

@media (max-width: 1180px) {
  .figma-frame:has(.orders-runtime-page) {
    --orders-content-left: 328px;
    --orders-content-right: 24px;
  }

  .orders-runtime-page {
    width: var(--orders-content-width);
  }
}

@media (max-width: 860px) {
  .figma-frame:has(.orders-runtime-page) {
    --orders-content-left: 24px;
    --orders-content-right: 24px;
  }

  .orders-runtime-page .orders-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "filter"
      "search"
      "table";
  }

  .orders-runtime-page .orders-filter {
    justify-self: start;
  }

  .orders-filter-legacy-panel .filter-grid,
  .order-detail-panel .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Orders reference-first refinement */
.orders-runtime-page {
  width: min(974px, var(--orders-content-width));
  min-height: auto;
}

.orders-runtime-page:has(.orders-admin-state) {
  width: min(1120px, var(--orders-content-width));
}

.figma-frame:has(.orders-runtime-page .orders-admin-state) {
  --orders-content-right: 24px;
}

.orders-runtime-page .orders-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-areas:
    "title filter"
    "search search"
    "filters filters"
    "table table";
  gap: 16px 16px;
  align-items: start;
}

.orders-runtime-page .orders-title {
  height: 58px;
}

.orders-runtime-page .orders-title h1 {
  font-size: 32px;
  line-height: 28.8px;
  letter-spacing: 0;
}

.orders-runtime-page .orders-title p {
  margin-top: 7px;
  font-size: 14px;
}

.orders-runtime-page .orders-filter {
  justify-self: end;
  width: 120px;
  min-width: 120px;
  height: 40px;
  padding: 0;
  gap: 10px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.orders-runtime-page .orders-search {
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  gap: 12px;
  border: 1px solid #d2d7dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04);
}

.orders-runtime-page .orders-search input {
  height: 38px;
  font-size: 13px;
}

.orders-runtime-page .orders-filter-panel {
  grid-area: filters;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(103, 118, 140, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(0, 8, 33, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.orders-runtime-page .orders-filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.orders-runtime-page .orders-filter-panel h2,
.orders-runtime-page .orders-filter-panel p {
  margin: 0;
}

.orders-runtime-page .orders-filter-panel h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.orders-runtime-page .orders-filter-panel p {
  margin-top: 6px;
  color: #67768c;
  font-size: 13px;
  font-weight: 600;
}

.orders-runtime-page .orders-filter-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.orders-runtime-page .orders-filter-panel .filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.orders-runtime-page .orders-filter-panel .field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #67768c;
  font-size: 12px;
  font-weight: 800;
}

.orders-runtime-page .orders-filter-panel input:not(.payhot-datetime-local__time-chip),
.orders-runtime-page .orders-filter-panel select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background-color: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-ui);
}

.orders-runtime-page .orders-filter-panel input:not(.payhot-datetime-local__time-chip) {
  padding-right: 12px;
}

.orders-runtime-page .orders-filter-panel select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2367768c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.orders-runtime-page .orders-filter-panel select option {
  background: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-ui);
}

.orders-runtime-page .orders-filter-panel input[type="number"] {
  -moz-appearance: textfield;
}

.orders-runtime-page .orders-filter-panel input[type="number"]::-webkit-outer-spin-button,
.orders-runtime-page .orders-filter-panel input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.orders-runtime-page .orders-filter-panel .filter-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-runtime-page .orders-filter-panel .primary-btn,
.orders-runtime-page .orders-filter-panel .ghost-btn {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.orders-runtime-page .orders-filter-panel .primary-btn {
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(1, 10, 70, 0.24);
}

.orders-runtime-page .orders-filter-panel .ghost-btn {
  border: 1px solid rgba(103, 118, 140, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1d;
  box-shadow: 0 10px 24px rgba(0, 8, 33, 0.05);
}

.orders-runtime-page .orders-filter-panel .primary-btn:hover,
.orders-runtime-page .orders-filter-panel .ghost-btn:hover {
  transform: translateY(-1px);
}

.orders-runtime-page .orders-filter-panel .primary-btn:disabled,
.orders-runtime-page .orders-filter-panel .ghost-btn:disabled {
  cursor: default;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.orders-runtime-page .orders-table-card {
  border: 1px solid rgba(103, 118, 140, 0.13);
  border-radius: 24px;
  background: linear-gradient(#fff 0 50%, #f8fbff 50% 100%);
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
  overflow: hidden;
}

.orders-runtime-page .orders-admin-state .orders-table-card {
  overflow-x: auto;
  overflow-y: hidden;
}

.orders-runtime-page .orders-admin-state .orders-table-card::-webkit-scrollbar {
  height: 8px;
}

.orders-runtime-page .orders-admin-state .orders-table-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 118, 140, 0.24);
}

.orders-runtime-page .orders-table-header,
.orders-runtime-page .order-row {
  grid-template-columns: 34px 54px 74px 134px 82px 124px 132px 42px minmax(132px, 1fr);
  gap: 14px;
  min-width: 974px;
  padding: 0 20px;
}

.orders-runtime-page .orders-admin-state .orders-table-header,
.orders-runtime-page .orders-admin-state .order-row {
  grid-template-columns: 48px 62px 86px 148px 104px 136px 144px 64px minmax(220px, 1fr);
  min-width: 1220px;
}

.orders-runtime-page .orders-table-header {
  height: 56px;
  min-height: 56px;
  background: #f0f4f8;
  color: #67768c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.orders-runtime-page .orders-table-header > span {
  justify-self: center;
  text-align: center;
}

.orders-runtime-page .orders-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.orders-runtime-page .order-row {
  min-height: 50px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  word-wrap: break-word;
}

.orders-runtime-page .order-row > span:not(.status):not(.admin-row-details),
.orders-runtime-page .order-row > strong {
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  justify-self: center;
  text-align: center;
}

.orders-runtime-page .orders-admin-state .order-row {
  min-height: 104px;
  grid-template-rows: 48px auto;
  align-items: center;
}

.orders-runtime-page .method {
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: #1d1d1d;
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-runtime-page .method.fiat-method {
  color: #1d1d1d;
}

.orders-runtime-page .method img {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.orders-runtime-page .risk {
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 600;
}

.orders-runtime-page .risk i {
  width: 14px;
  height: 14px;
  border: 2px solid #00d512;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.orders-runtime-page .risk-chip-medium i {
  border-color: #fbdc2d;
  background: transparent;
}

.orders-runtime-page .risk-chip-high i,
.orders-runtime-page .risk-chip-critical i {
  border-color: #ff183f;
  background: transparent;
}

.orders-runtime-page .status {
  height: 24px;
  min-height: 24px;
  max-width: 100%;
  padding: 1px 8px 2px;
  border-radius: 128px;
  font-size: 13px;
  font-weight: 600;
}

.orders-runtime-page .order-row > .status {
  min-width: 108px;
  max-width: 128px;
  justify-self: center;
  padding-inline: 12px;
}

.orders-runtime-page .status img {
  width: 12px;
  height: 12px;
}

.orders-runtime-page .status.process,
.orders-runtime-page .status.waiting {
  background: #fddd2d;
  color: #7f3e00;
}

.orders-runtime-page .status.expired,
.orders-runtime-page .status.rejected {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
}

.orders-runtime-page .admin-row-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0 0 12px;
}

.orders-runtime-page .admin-row-details em {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(103, 118, 140, 0.1);
  border-radius: 12px;
  background: #f0f4f8;
  color: #42526a;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-runtime-page .admin-row-details b {
  color: #67768c;
  font-weight: 800;
  text-transform: uppercase;
}

.orders-runtime-page .admin-row-details span {
  min-width: 0;
  overflow: hidden;
  color: #1d1d1d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.orders-runtime-page .orders-empty {
  min-height: 510px;
  border-radius: 24px;
  background: #fff;
  gap: 0;
}

.orders-runtime-page .orders-pagination {
  gap: 4px;
  padding: 24px 20px 10px;
}

.orders-runtime-page .orders-pagination button,
.orders-runtime-page .orders-pagination span {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 17.6px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.orders-runtime-page .orders-pagination button:first-child,
.orders-runtime-page .orders-pagination button:last-child {
  border: 0.88px solid rgba(46, 74, 105, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.orders-runtime-page .orders-pagination button.active {
  border-color: transparent;
  background: #1d1d1d;
  color: #fff;
}

.orders-runtime-page .orders-pagination img {
  width: 24px;
  height: 24px;
}

.orders-runtime-page .orders-pagination button:first-child img {
  transform: rotate(180deg);
}

.orders-runtime-page .orders-pagination button:last-child img {
  transform: none;
}

.orders-runtime-page .orders-empty .state-document {
  width: 98px;
  height: 116px;
}

.orders-runtime-page .orders-empty p {
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.orders-detail-backdrop {
  background: rgba(11, 18, 30, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.order-detail-panel {
  top: 8px;
  right: 8px;
  width: min(512px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - 16px);
  max-height: calc(100dvh - 16px);
  border: 0;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 26px 90px rgba(0, 8, 33, 0.24);
  overflow: auto;
}

.order-autohtml-modal,
.order-autohtml-modal * {
  box-sizing: border-box;
}

.order-autohtml-modal {
  position: relative;
  width: 512px;
  height: 1072px;
  max-width: 100%;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.order-autohtml-modal .rectangle-1430153694 {
  width: 512px;
  height: 1072px;
  position: absolute;
  left: 0;
  top: 0;
}

.order-autohtml-modal .close {
  width: 44px;
  height: 44px;
  position: absolute;
  left: 456px;
  top: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.order-autohtml-modal .rectangle-40014 {
  position: absolute;
  inset: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.02px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.23);
}

.order-autohtml-modal .close2 {
  position: absolute;
  inset: 34.09%;
  width: 31.82%;
  height: 31.82%;
}

.order-autohtml-modal ._89 {
  position: absolute;
  left: 32px;
  top: 30px;
  max-width: 380px;
  color: #000;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 90%;
  font-weight: 600;
}

.order-autohtml-modal ._838-cdi-0-sd-09-u-092-jdmnd {
  position: absolute;
  left: 32px;
  top: 64px;
  max-width: 420px;
  overflow: hidden;
  color: #67768c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.order-autohtml-modal .status,
.order-autohtml-modal .status2,
.order-autohtml-modal .status3 {
  position: absolute;
  top: 93px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 8px 2px;
  border-radius: 128px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.order-autohtml-modal .status {
  left: 137px;
  min-width: 72px;
  border: 1px solid #1d1d1d;
  background: #f0f4f8;
}

.order-autohtml-modal .status2 {
  left: 215px;
  min-width: 127px;
  border: 1px solid #1d1d1d;
  background: #f0f4f8;
}

.order-detail-failure .order-autohtml-modal .status {
  left: 209px;
}

.order-detail-failure .order-autohtml-modal .status2 {
  left: 287px;
  width: 198px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-autohtml-modal .status3 {
  left: 31px;
  min-width: 100px;
  background: #00d512;
  color: #fff;
}

.order-detail-failure .order-autohtml-modal .status3 {
  left: 32px;
  width: 171px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.order-detail-pending .order-autohtml-modal .status3 {
  background: #fddd2d;
  color: #7f3e00;
}

.order-autohtml-modal .status3 img {
  width: 12px;
  height: 12px;
}

.order-autohtml-modal .rectangle-1430153695 {
  position: absolute;
  left: 8px;
  top: 141px;
  width: 496px;
  height: 923px;
}

.order-autohtml-modal .info {
  position: absolute;
  left: 32px;
  top: 165px;
  width: 448px;
  height: 68px;
}

.order-autohtml-modal .order-detail-status-card {
  position: absolute;
  left: 32px;
  top: 165px;
  width: 448px;
  height: 68px;
  overflow: hidden;
  border-radius: 24px;
}

.order-autohtml-modal .order-detail-status-card-bg,
.order-autohtml-modal .order-detail-status-card-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.order-autohtml-modal .order-detail-status-card-bg {
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.order-autohtml-modal .order-detail-status-card-border {
  border: 1px solid rgba(46, 74, 105, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
}

.order-autohtml-modal .order-detail-status-card-line {
  position: absolute;
  left: 0;
  top: 25px;
  width: 2px;
  height: 24px;
}

.order-autohtml-modal .order-detail-status-card-glow {
  position: absolute;
  left: 0;
  top: 25px;
  width: 10px;
  height: 24px;
  filter: blur(16px);
  opacity: 0.92;
}

.order-autohtml-modal .order-detail-status-card-label,
.order-autohtml-modal .order-detail-status-card-value {
  position: absolute;
  left: 54px;
  width: 384px;
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font-ui);
}

.order-autohtml-modal .order-detail-status-card-label {
  top: 15px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 500;
}

.order-autohtml-modal .order-detail-status-card-value {
  top: 35px;
  font-size: 15px;
  font-weight: 600;
}

.order-autohtml-modal .order-detail-status-card-icon {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.order-autohtml-modal .order-detail-status-card-icon span {
  position: absolute;
  display: block;
}

.order-autohtml-modal .order-detail-status-card.is-success .order-detail-status-card-line,
.order-autohtml-modal .order-detail-status-card.is-success .order-detail-status-card-glow,
.order-autohtml-modal .order-detail-status-card.is-success .order-detail-status-card-icon {
  background: #00d512;
}

.order-autohtml-modal .order-detail-status-card.is-success .order-detail-status-card-value {
  color: #00d512;
}

.order-autohtml-modal .order-detail-status-card.is-success .order-detail-status-card-icon span {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: none;
}

.order-autohtml-modal .order-detail-status-card.is-success .order-detail-status-card-icon span::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 1px;
  transform: rotate(-45deg);
}

.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-line,
.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-glow,
.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-icon {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-value {
  color: #fd2226;
}

.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-icon span::before,
.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-icon span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-icon span::before {
  transform: rotate(45deg);
}

.order-autohtml-modal .order-detail-status-card.is-failure .order-detail-status-card-icon span::after {
  transform: rotate(-45deg);
}

.order-autohtml-modal .order-detail-status-card.is-pending .order-detail-status-card-line,
.order-autohtml-modal .order-detail-status-card.is-pending .order-detail-status-card-glow,
.order-autohtml-modal .order-detail-status-card.is-pending .order-detail-status-card-icon {
  background: #fddd2d;
}

.order-autohtml-modal .order-detail-status-card.is-pending .order-detail-status-card-value {
  color: #7f3e00;
}

.order-autohtml-modal .order-detail-status-card.is-pending .order-detail-status-card-icon span {
  left: 11px;
  top: 6px;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
}

.order-autohtml-modal .div3,
.order-autohtml-modal .div5,
.order-autohtml-modal .div6,
.order-autohtml-modal .div8,
.order-autohtml-modal .div10,
.order-autohtml-modal .div12,
.order-autohtml-modal .div13,
.order-autohtml-modal .div14,
.order-autohtml-modal .div15,
.order-autohtml-modal .chargeback,
.order-autohtml-modal .id,
.order-autohtml-modal .id2,
.order-autohtml-modal .ip,
.order-autohtml-modal .email {
  position: absolute;
  color: #67768c;
  font-size: 14px;
  font-weight: 700;
}

.order-autohtml-modal ._19-06-2026-18-00-20-06-2026,
.order-autohtml-modal .div4,
.order-autohtml-modal .usdt,
.order-autohtml-modal .div7,
.order-autohtml-modal .div9,
.order-autohtml-modal .div11,
.order-autohtml-modal .n-a,
.order-autohtml-modal .customer-001,
.order-autohtml-modal .customer-0012,
.order-autohtml-modal ._127-0-0-1,
.order-autohtml-modal .crypto,
.order-autohtml-modal .low,
.order-autohtml-modal .test-example-com {
  position: absolute;
  max-width: 190px;
  overflow: hidden;
  color: #1d1d1d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
}

.order-autohtml-modal ._19-06-2026-18-00-20-06-2026 { left: 32px; top: 294px; max-width: 360px; }
.order-autohtml-modal .div3 { left: 32px; top: 265px; }
.order-autohtml-modal .div4 { left: 32px; top: 374px; }
.order-autohtml-modal .div5 { left: 32px; top: 345px; }
.order-autohtml-modal .usdt { left: 162px; top: 374px; }
.order-autohtml-modal .div6 { left: 162px; top: 345px; }
.order-autohtml-modal .div7 { left: 162px; top: 454px; color: #00d512; }
.order-autohtml-modal .div8 { left: 162px; top: 425px; }
.order-autohtml-modal .div9 { left: 32px; top: 454px; color: #00d512; }
.order-autohtml-modal .div10 { left: 32px; top: 425px; }
.order-autohtml-modal .div11 { left: 277px; top: 374px; color: #00d512; }
.order-autohtml-modal .div12 { left: 277px; top: 345px; }
.order-detail-failure .order-autohtml-modal .div7,
.order-detail-failure .order-autohtml-modal .div9,
.order-detail-failure .order-autohtml-modal .div11 { color: #ec0a46; }

.order-autohtml-modal .rectangle-4 {
  position: absolute;
  left: 32px;
  top: 505px;
  width: 448px;
  height: 308px;
  border-radius: 20px;
  background: #f0f4f8;
}

.order-autohtml-modal .vector-8 {
  position: absolute;
  left: 50px;
  top: 653px;
  width: 412px;
}

.order-autohtml-modal ._529-32-usdt {
  position: absolute;
  left: 50px;
  top: 558px;
  color: #1d1d1d;
}

.order-autohtml-modal ._529-32-usdt-span {
  font-size: 24px;
  font-weight: 800;
}

.order-autohtml-modal ._529-32-usdt-span2 {
  font-size: 20px;
  font-weight: 800;
}

.order-autohtml-modal .div13 { left: 50px; top: 529px; }
.order-autohtml-modal ._5-45-usdt { position: absolute; left: 50px; top: 612px; font-size: 14px; font-weight: 700; }
.order-autohtml-modal ._5-45-usdt-span { color: #67768c; }
.order-autohtml-modal ._5-45-usdt-span2 { color: #1d1d1d; }
.order-autohtml-modal .crypto { left: 50px; top: 698px; }
.order-autohtml-modal .div14 { left: 50px; top: 677px; }
.order-autohtml-modal .low { left: 297px; top: 698px; }
.order-autohtml-modal .div15 { left: 277px; top: 677px; }

.order-autohtml-modal .item2 {
  --order-detail-risk-color: #00d512;
}

.order-autohtml-modal .item2.risk-chip-medium {
  --order-detail-risk-color: #ffb020;
}

.order-autohtml-modal .item2.risk-chip-high,
.order-autohtml-modal .item2.risk-chip-critical,
.order-autohtml-modal .item2.risk-chip-unknown {
  --order-detail-risk-color: #ff183f;
}

.order-autohtml-modal .status4 {
  position: absolute;
  left: 348px;
  top: 697px;
  height: 22px;
  min-width: 50px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 128px;
  background: var(--order-detail-risk-color);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.order-autohtml-modal .ellipse-48008 {
  position: absolute;
  left: 277px;
  top: 701px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--order-detail-risk-color);
  border-radius: 50%;
}
.order-autohtml-modal .test-example-com { left: 50px; top: 770px; max-width: 390px; }
.order-autohtml-modal .email { left: 50px; top: 749px; }
.order-autohtml-modal .n-a { left: 32px; top: 874px; }
.order-autohtml-modal .chargeback { left: 32px; top: 845px; }
.order-autohtml-modal .customer-001 { left: 277px; top: 874px; max-width: 190px; }
.order-autohtml-modal .id { left: 277px; top: 845px; }
.order-autohtml-modal .customer-0012 { left: 32px; top: 954px; max-width: 190px; }
.order-autohtml-modal .id2 { left: 32px; top: 925px; }
.order-autohtml-modal ._127-0-0-1 { left: 277px; top: 954px; max-width: 190px; }
.order-autohtml-modal .ip { left: 277px; top: 925px; }

.order-runtime-detail-sections {
  display: grid;
  gap: 14px;
  padding: 0 16px 20px;
}

.order-detail-panel .detail-grid,
.order-detail-panel .drawer-section {
  margin: 0;
}

.order-detail-panel .drawer-section {
  padding: 16px;
  border: 1px solid rgba(103, 118, 140, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.order-detail-panel .payer-data-section {
  padding: 18px;
  border: 1px solid rgba(103, 118, 140, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 34px rgba(0, 8, 33, 0.08);
}

.order-detail-panel .payer-data-section .drawer-section-title {
  margin: 0 0 14px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.order-detail-panel .payer-data-section .detail-grid {
  gap: 12px;
}

.order-detail-panel .payer-data-section .detail-item {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 118, 140, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.order-detail-panel .payer-data-section .detail-label {
  color: #67768c;
  font-size: 12px;
  font-weight: 800;
}

.order-detail-panel .payer-data-section .detail-value {
  min-width: 0;
  overflow: hidden;
  color: #1d1d1d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .figma-frame:has(.orders-runtime-page) {
    --orders-content-left: 392px;
    --orders-content-right: 24px;
  }
}

@media (max-width: 860px) {
  .figma-frame:has(.orders-runtime-page) {
    --orders-content-left: 24px;
    --orders-content-right: 24px;
  }

  .orders-runtime-page .orders-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "filter"
      "search"
      "filters"
      "table";
  }

  .orders-runtime-page .orders-filter {
    justify-self: start;
  }

  .orders-runtime-page .orders-filter-panel .filter-grid,
  .order-detail-panel .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.payment-links-runtime-page .payment-links-title {
  position: relative;
  left: auto;
  top: auto;
  width: min(354px, 100%);
  height: 58px;
  margin: 0;
}

.payment-links-runtime-page .payment-links-title img {
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
}

.payment-links-runtime-page .payment-links-title h1 {
  position: absolute;
  left: 36px;
  top: 0;
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 28.8px;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
}

.payment-links-runtime-page .payment-links-title p {
  position: absolute;
  left: 0;
  top: 41px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
}

.payment-links-runtime-page .payment-links-toolbar {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(560px, 100%);
}

.payment-links-runtime-page .payment-runtime-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1d;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.payment-links-runtime-page .payment-runtime-action-primary {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(1, 10, 70, 0.24);
}

.payment-links-runtime-page .payment-runtime-action:disabled {
  cursor: default;
  opacity: 0.55;
}

.payment-links-runtime-page .payment-status-filter {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  top: 50px;
  z-index: 5;
  width: 150px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.payment-links-runtime-page .payment-status-filter.is-open {
  z-index: 6;
}

.payment-links-runtime-page .payment-status-filter img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.payment-links-runtime-page .payment-status-filter select {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.payment-links-runtime-page .payment-status-filter select option {
  background: #fff;
  color: #1d1d1d;
  font: 700 12px var(--font-title);
}

.payment-links-runtime-page .payment-status-filter .payhot-dropdown-button {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: inherit;
  font: inherit;
}

.payment-links-runtime-page .payment-status-filter .payhot-dropdown-label {
  flex: 0 1 auto;
}

.payment-links-runtime-page .payment-links-admin-filters {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 46px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04);
}

.payment-links-runtime-page .payment-links-admin-filters label {
  display: grid;
  gap: 8px;
  color: #67768c;
  font-size: 12px;
  font-weight: 700;
}

.payment-links-runtime-page .payment-links-admin-filters input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font: 600 14px var(--font-ui);
}

.payment-links-runtime-page .payment-links-admin-filter-actions {
  display: flex;
  gap: 8px;
}

.payment-links-runtime-page .payment-links-admin-filter-actions button {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font: 700 12px var(--font-title);
  cursor: pointer;
}

.payment-links-runtime-page .payment-links-admin-filter-actions button:first-child {
  border-color: transparent;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
}

.payment-links-runtime-page .payment-links-grid {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, var(--payment-links-card-width)));
  justify-content: start;
  gap: 8px;
  margin-top: 54px;
}

.payment-links-runtime-page.is-admin .payment-links-grid {
  margin-top: 28px;
}

.payment-links-runtime-page .payment-link-card {
  position: relative;
  width: var(--payment-links-card-width);
  height: 700px;
  min-width: 0;
  max-width: 100%;
  /* Tooltips belong to the action controls and must be allowed to extend
     above the visual card boundary. The painted child panels keep their own
     rounded geometry. */
  overflow: visible;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
}

.payment-links-runtime-page.is-admin .payment-link-card {
  height: 748px;
}

.payment-links-runtime-page .card-main {
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(100% - 8px);
  height: 204px;
  border-radius: 20px;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: #f0f4f8;
}

.payment-link-created-overlay .payhot-overlay-panel.payment-link-created-panel,
.payment-link-details-overlay .payhot-overlay-panel.payment-link-details-panel {
  width: min(512px, calc(100dvw - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #f0f4f8;
}

.payment-link-statistics-runtime-overlay .payhot-overlay-panel.payment-link-statistics-runtime-panel {
  --payhot-overlay-edge: 8px;
  width: 512px;
  max-width: calc(100dvw - 16px);
  max-height: calc(100dvh - 16px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 32px;
  /* The statistics component has its own canvas, but the panel must never
     flash through as transparent while Blazor switches presentation modes. */
  background: #f0f4f8;
  box-shadow: 0 24px 80px rgba(2, 10, 70, 0.22);
}

.payment-link-statistics-static-overlay .payhot-overlay-panel.payment-link-statistics-static-panel {
  --payhot-overlay-edge: 8px;
  width: 512px;
  max-width: calc(100dvw - 16px);
  max-height: calc(100dvh - 16px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 32px;
  background: transparent;
}

.payment-links-runtime-page .card-paid .card-main {
  background: rgba(1, 213, 19, 0.1);
}

.payment-links-runtime-page .card-expired .card-main {
  background: #fff0f1;
}

.payment-links-runtime-page .card-link-icon {
  position: absolute;
  left: 14px;
  top: 20px;
  width: 24px;
  height: 24px;
}

.payment-links-runtime-page .card-type {
  position: absolute;
  left: 14px;
  top: 62px;
  max-width: 132px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .card-paid .card-type,
.payment-links-runtime-page .card-paid .amount,
.payment-links-runtime-page .card-paid .amount-label {
  color: #00d512;
}

.payment-links-runtime-page .card-expired .card-type,
.payment-links-runtime-page .card-expired .amount,
.payment-links-runtime-page .card-expired .amount-label {
  color: #fd2226;
}

.payment-links-runtime-page .card-badge-row {
  position: absolute;
  left: 48px;
  right: 8px;
  top: 12px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.payment-links-runtime-page .merchant-pill,
.payment-links-runtime-page .state-pill {
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 8px 2px;
  border-radius: 128px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}

.payment-links-runtime-page .merchant-pill {
  flex: 1 1 auto;
  width: auto;
  max-width: calc(100% - 94px);
  color: #1d1d1d;
  background: #d5dbe3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-links-runtime-page .card-paid .merchant-pill {
  color: #006008;
  background: rgba(0, 96, 8, 0.15);
}

.payment-links-runtime-page .card-expired .merchant-pill {
  color: #fd2226;
  background: #f8d4d6;
}

.payment-links-runtime-page .state-pill {
  flex: 0 0 auto;
  max-width: 171px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-links-runtime-page .state-pill img {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.payment-links-runtime-page .state-active {
  background: #1d1d1d;
}

.payment-links-runtime-page .state-paid {
  background: #00d512;
}

.payment-links-runtime-page .state-expired {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.payment-links-runtime-page .card-main h2 {
  position: absolute;
  left: 14px;
  top: 86px;
  width: calc(100% - 28px);
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .amount {
  position: absolute;
  left: 14px;
  top: 132px;
  max-width: calc(100% - 28px);
  color: #1d1d1d;
  font-family: var(--font-number);
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .amount span {
  font-size: 32px;
  line-height: 28.8px;
}

.payment-links-runtime-page .amount small {
  font-size: 16px;
  line-height: 14.4px;
}

.payment-links-runtime-page .amount-label {
  position: absolute;
  left: 14px;
  top: 169px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
}

.payment-links-runtime-page .card-details {
  position: absolute;
  left: 18px;
  top: 226px;
  width: calc(100% - 36px);
  height: 390px;
  margin: 0;
  display: block;
}

.payment-links-runtime-page .card-details div,
.payment-links-runtime-page .card-details dt,
.payment-links-runtime-page .card-details dd {
  margin: 0;
}

.payment-links-runtime-page .card-details div {
  position: absolute;
  min-width: 0;
}

.payment-links-runtime-page .card-details div:nth-child(1) { left: 0; top: 0; }
.payment-links-runtime-page .card-details div:nth-child(2) { left: 0; top: 78px; }
.payment-links-runtime-page .card-details div:nth-child(3) { left: 0; top: 144px; width: 100%; }
.payment-links-runtime-page .card-details div:nth-child(4) { left: 0; top: 210px; }
.payment-links-runtime-page .card-details div:nth-child(5) { left: 125px; top: 210px; }
.payment-links-runtime-page .card-details div:nth-child(6) { left: 0; top: 276px; }
.payment-links-runtime-page .card-details div:nth-child(7) { left: 125px; top: 276px; }
.payment-links-runtime-page .card-details div:nth-child(8) { left: 0; top: 342px; width: 100%; }

.payment-links-runtime-page .card-details dt {
  margin-bottom: 8px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
}

.payment-links-runtime-page .card-details dd {
  max-width: 100%;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .method-pill {
  width: auto;
  min-width: 0;
  max-width: min(100%, 220px);
  min-height: 26px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px 4px;
  border-radius: 128px;
  background: rgba(219, 224, 227, 0.7);
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .payment-link-admin-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 616px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.payment-links-runtime-page .payment-link-admin-meta span {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef3f8;
  color: #67768c;
  font: 700 10px var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .card-actions {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: calc(100% - 8px);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 20px;
  background: #f0f4f8;
}

.payment-links-runtime-page .card-actions .delete-action:disabled {
  display: none;
}

.payment-links-runtime-page .card-actions button,
.payment-links-runtime-page .card-action-link {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
  cursor: pointer;
}

.payment-links-runtime-page .card-actions button:disabled {
  cursor: default;
  opacity: 0.48;
}

.payment-links-runtime-page .card-actions .ghost-action {
  margin-left: auto;
  background: transparent;
  box-shadow: none;
}

.payment-links-runtime-page .card-actions img {
  width: 24px;
  height: 24px;
}

.payment-links-runtime-page .card-actions .card-action-copy > img {
    width: 18px;
    height: 18px;
}

/* Merchant action controls are intentionally in the global shell CSS. The
   cards render in the page component while overlays may be reparented by
   Blazor, so CSS isolation alone cannot be the visual contract here. */
.payment-links-runtime-page.is-merchant .card-actions {
  z-index: 3;
  overflow: visible;
}

.payment-links-runtime-page.is-merchant .card-actions:has(:is(button, .card-action-link):is(:hover, :focus-visible)) {
  z-index: 8;
}

.payment-links-runtime-page.is-merchant .card-actions :is(button, .card-action-link) {
  position: relative;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-links-runtime-page.is-merchant .card-actions :is(button, .card-action-link):is(:hover, :focus-visible):not(:disabled) {
  background: #1d1d1d;
  color: #fff;
  box-shadow: none;
}

.payment-links-runtime-page.is-merchant .card-actions :is(button, .card-action-link):is(:hover, :focus-visible):not(:disabled) img {
  filter: brightness(0) invert(1);
}

.payment-links-runtime-page.is-merchant .card-actions :is(.ghost-action, .delete-action):is(:hover, :focus-visible):not(:disabled) {
  background: #fd2226;
  color: #fff;
  box-shadow: none;
}

.payment-links-runtime-page.is-merchant .card-action-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 2;
  display: block;
  padding: 20px 25px;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1d;
  font: 700 12px/1 var(--font-title);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  filter: drop-shadow(0 6px 12px rgba(0, 8, 33, .14));
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.payment-links-runtime-page.is-merchant .card-action-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 6px);
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.payment-links-runtime-page.is-merchant .card-actions :is(button, .card-action-link):is(:hover, :focus-visible) > .card-action-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: .5s;
}

.payment-links-runtime-page.is-merchant .card-actions :is(button, .card-action-link):focus-visible {
  outline: 2px solid #fd2226;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .payment-links-runtime-page.is-merchant .card-actions :is(button, .card-action-link),
  .payment-links-runtime-page.is-merchant .card-action-tooltip {
    transition: none;
  }
}

.payment-links-runtime-page .expired-actions .delete-action {
  flex: 1 1 auto;
  width: auto;
  min-width: 138px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fd2226;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.payment-links-runtime-page .expired-actions .delete-action img {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.payment-links-runtime-page .expired-actions .delete-action span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.payment-links-runtime-page .payment-more-button {
  width: 266px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 39px auto 0;
  padding: 18px 24px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.payment-links-runtime-page .payment-links-empty {
  margin-top: 38px;
  min-height: 220px;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04);
  color: #67768c;
  font: 700 14px var(--font-ui);
  display: grid;
  align-items: center;
}

.payment-links-toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1500;
  pointer-events: none;
}

.payment-links-toast-region .toast {
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  margin-bottom: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
  color: #1d1d1d;
  font-size: 14px;
  font-weight: 700;
}

.payment-links-toast-region .toast-error {
  color: #fd2226;
}

.payment-links-toast-region .toast-success {
  color: #00a80e;
}

.payment-links-runtime-page .payment-link-qr-modal,
.payment-links-runtime-page .payment-link-qr-modal * {
  box-sizing: border-box;
}

.payment-links-runtime-page .payment-link-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1550;
  display: grid;
  place-items: center;
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-ui);
}

.payment-links-runtime-page .payment-link-qr-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.payment-links-runtime-page .payment-link-qr-panel {
  position: relative;
  width: min(420px, calc(100vw - 48px));
  min-width: 0;
  padding: 30px 28px 26px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  box-shadow: 0 22px 70px rgba(0, 8, 33, 0.16);
}

.payment-links-runtime-page .payment-link-qr-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.13);
  cursor: pointer;
}

.payment-links-runtime-page .payment-link-qr-close img {
  width: 14px;
  height: 14px;
}

.payment-links-runtime-page .payment-link-qr-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #f0f4f8;
}

.payment-links-runtime-page .payment-link-qr-icon img {
  width: 24px;
  height: 24px;
}

.payment-links-runtime-page .payment-link-qr-panel h2 {
  max-width: calc(100% - 56px);
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.payment-links-runtime-page .payment-link-qr-panel p {
  margin: 8px 0 22px;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.payment-links-runtime-page .payment-link-qr-image {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(46, 74, 105, 0.08);
}

.payment-links-runtime-page .payment-link-qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-links-runtime-page .payment-link-qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-links-runtime-page .payment-link-qr-actions button,
.payment-links-runtime-page .payment-link-qr-actions a {
  min-width: 0;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(29, 29, 29, 0.14);
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-title);
  text-decoration: none;
  cursor: pointer;
}

.payment-links-runtime-page .payment-link-qr-actions a {
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(236, 10, 70, 0.22);
}

@media (max-width: 1280px) {
  .payment-links-runtime-page {
    --payment-links-left: 360px;
    --payment-links-right: 40px;
    width: calc(100% - var(--payment-links-left) - var(--payment-links-right));
  }

  .payment-links-runtime-page .payment-links-grid {
    grid-template-columns: repeat(2, minmax(0, var(--payment-links-card-width)));
  }
}

@media (max-width: 980px) {
  .payment-links-runtime-page {
    --payment-links-left: 24px;
    --payment-links-right: 24px;
    width: calc(100% - 48px);
    margin-left: 24px;
    padding-top: 128px;
  }

  .payment-links-runtime-page .payment-links-toolbar,
  .payment-links-runtime-page .payment-status-filter {
    position: relative;
    inset: auto;
    margin-top: 18px;
  }

  .payment-links-runtime-page .payment-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, var(--payment-links-card-width)));
  }

  .payment-links-runtime-page .payment-links-admin-filters {
    grid-template-columns: 1fr;
  }
}

/* Payment link create reference overlays */
.payment-links-runtime-page .create-link-modal,
.payment-links-runtime-page .created-link-modal,
.payment-links-runtime-page .create-link-modal *,
.payment-links-runtime-page .created-link-modal * {
  box-sizing: border-box;
}

.payment-links-runtime-page .create-link-modal,
.payment-links-runtime-page .created-link-modal {
  --plink-panel-left: max(24px, calc(100vw - 520px));
  --plink-panel-width: 512px;
  position: fixed;
  inset: 0;
  z-index: var(--payhot-modal-backdrop-z);
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
  overscroll-behavior: contain;
  font-family: var(--font-ui);
}

.payment-links-runtime-page .create-link-modal {
  height: 100vh;
  height: 100dvh;
  padding-bottom: 24px;
}

.payment-links-runtime-page .create-link-modal::after {
  content: "";
  display: block;
  width: 1px;
  height: 2140px;
}

.payment-links-runtime-page .create-link-one::after {
  height: 1815px;
}

.payment-links-runtime-page .created-link-modal::after {
  content: "";
  display: block;
  width: 1px;
  height: 943px;
}

.payment-links-runtime-page .create-link-scrim,
.payment-links-runtime-page .created-link-scrim {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.payment-links-create-overlay .payment-links-create-panel .payhot-dropdown {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.payment-links-create-overlay .payment-links-create-panel .field-box.payhot-dropdown {
  --payhot-dropdown-control-height: 64px;
  border: 0;
  background: #f0f4f8;
}

.payment-links-create-overlay .payment-links-create-panel .field-box.payhot-dropdown > .payhot-dropdown-button {
  height: 64px;
  min-height: 64px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  padding: 0 24px;
}

.payment-links-create-overlay .payment-links-create-panel .payhot-dropdown-menu.is-portal {
  z-index: var(--payhot-dropdown-layer, calc(var(--payhot-modal-panel-z, 2147483010) + 10));
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(24, 42, 64, 0.18);
}

.payment-links-create-overlay .payment-links-create-panel .payhot-dropdown-dismiss.is-portal {
  z-index: var(--payhot-dropdown-dismiss-layer, calc(var(--payhot-modal-panel-z, 2147483010) + 9));
}

.payment-links-create-overlay .payment-links-create-panel .payhot-dropdown-menu.is-portal button {
  width: 100%;
  min-width: 0;
}

.payment-links-create-overlay .payment-links-create-panel .project-field:has(.payhot-dropdown.is-open) {
  z-index: 4;
}

.payment-links-create-overlay .payment-links-create-panel .type-field:has(.payhot-dropdown.is-open) {
  z-index: 4;
}

.payment-links-create-overlay .payment-links-create-panel .currency-field:has(.payhot-dropdown.is-open) {
  z-index: 4;
}

.payment-links-create-overlay .payment-links-create-panel .method-field:has(.payhot-dropdown.is-open) {
  z-index: 4;
}

.payment-links-create-overlay .payment-links-create-panel .amount-mode-field:has(.payhot-dropdown.is-open),
.payment-links-create-overlay .payment-links-create-panel .email-field:has(.payhot-dropdown.is-open),
.payment-links-create-overlay .payment-links-create-panel .phone-field:has(.payhot-dropdown.is-open),
.payment-links-create-overlay .payment-links-create-panel .fio-field:has(.payhot-dropdown.is-open),
.payment-links-create-overlay .payment-links-create-panel .telegram-field:has(.payhot-dropdown.is-open) {
  z-index: 4;
}

.payment-links-runtime-page .create-link-shell,
.payment-links-runtime-page .created-link-shell {
  position: absolute;
  left: var(--plink-panel-left);
  top: 8px;
  width: var(--plink-panel-width);
  max-width: calc(100vw - 16px);
  pointer-events: none;
}

.payment-links-runtime-page .create-link-shell {
  height: 2140px;
}

.payment-links-runtime-page .create-link-one .create-link-shell {
  height: 1799px;
}

.payment-links-runtime-page .created-link-shell {
  height: 918px;
}

.payment-links-runtime-page .create-link-panel-bg,
.payment-links-runtime-page .created-link-panel-bg {
  position: absolute;
  left: calc(var(--plink-panel-left) + 8px);
  width: calc(var(--plink-panel-width) - 16px);
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.payment-links-runtime-page .create-link-panel-bg {
  top: 126px;
  height: 1990px;
}

.payment-links-runtime-page .create-link-one .create-link-panel-bg {
  height: 1673px;
}

.payment-links-runtime-page .created-link-panel-bg {
  top: 16px;
  height: 902px;
}

.payment-links-runtime-page .create-link-close,
.payment-links-runtime-page .created-link-close {
  position: absolute;
  left: calc(var(--plink-panel-left) + 456px);
  top: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.02px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.23);
  cursor: pointer;
}

.payment-links-runtime-page .create-link-close img,
.payment-links-runtime-page .created-link-close img {
  width: 14px;
  height: 14px;
}

.payment-links-runtime-page .create-link-title,
.payment-links-runtime-page .create-link-subtitle,
.payment-links-runtime-page .create-link-section-title,
.payment-links-runtime-page .created-link-title,
.payment-links-runtime-page .created-link-subtitle {
  position: absolute;
  margin: 0;
  letter-spacing: 0;
}

.payment-links-runtime-page .create-link-title {
  left: calc(var(--plink-panel-left) + 32px);
  top: 38px;
  color: #000;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 22px;
  font-weight: 500;
}

.payment-links-runtime-page .create-link-subtitle {
  left: calc(var(--plink-panel-left) + 32px);
  top: 72px;
  color: #67768c;
  font-size: 14px;
  font-weight: 500;
}

.payment-links-runtime-page .create-link-section-title {
  left: calc(var(--plink-panel-left) + 32px);
  top: 158px;
  color: #1d1d1d;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-links-runtime-page .create-field,
.payment-links-runtime-page .lifetime-field,
.payment-links-runtime-page .extra-fields {
  position: absolute;
  display: block;
  left: calc(var(--plink-panel-left) + 32px);
  width: 448px;
  max-width: calc(100vw - 64px);
}

.payment-links-runtime-page .create-field > span:first-child,
.payment-links-runtime-page .extra-fields > span,
.payment-links-runtime-page .lifetime-label > span {
  display: block;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.payment-links-runtime-page .field-box {
  position: absolute;
  left: 0;
  top: 35px;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 20px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.payment-links-runtime-page input.field-box,
.payment-links-runtime-page .field-box input,
.payment-links-runtime-page .field-box select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1d1d;
  font: 700 14px var(--font-title);
}

.payment-links-runtime-page .field-box select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2367768c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.payment-links-runtime-page .field-box select option {
  background: #fff;
  color: #1d1d1d;
  font: 700 14px var(--font-title);
}

.payment-links-runtime-page .field-box input[type="number"]::-webkit-outer-spin-button,
.payment-links-runtime-page .field-box input[type="number"]::-webkit-inner-spin-button,
.payment-links-runtime-page input.field-box[type="number"]::-webkit-outer-spin-button,
.payment-links-runtime-page input.field-box[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.payment-links-runtime-page .field-box input[type="number"],
.payment-links-runtime-page input.field-box[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.payment-links-runtime-page .select-box {
  cursor: pointer;
}

.payment-links-runtime-page .field-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex: 0 0 auto;
}

.payment-links-runtime-page .field-arrow {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.payment-links-runtime-page .project-field { top: 207px; height: 99px; }
.payment-links-runtime-page .type-field { top: 338px; height: 99px; }
.payment-links-runtime-page .name-field { top: 469px; height: 99px; }

.payment-links-runtime-page .lifetime-field {
  top: 600px;
  height: 83px;
}

.payment-links-runtime-page .lifetime-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18px;
}

.payment-links-runtime-page .lifetime-label strong {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1d1d1d;
  font: 700 14px/17px var(--font-title);
}

.payment-links-runtime-page .lifetime-label img {
  width: 12px;
  height: 12px;
}

.payment-links-runtime-page .lifetime-track {
  position: absolute;
  left: 0;
  top: 33px;
  z-index: 4;
  width: 100%;
  height: 24px;
  border-radius: 999px;
  background: #dbe2e9;
  --lifetime-progress: 0.35;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.payment-links-runtime-page .lifetime-track span {
  position: absolute;
  left: 12px;
  top: 6px;
  width: calc(100% - 24px);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  pointer-events: none;
  transform: scaleX(var(--lifetime-progress));
  transform-origin: left center;
  will-change: transform;
}

.payment-links-runtime-page .lifetime-track input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  touch-action: none;
}

.payment-links-runtime-page .lifetime-track::after {
  content: "";
  position: absolute;
  left: calc((100% - 24px) * var(--lifetime-progress));
  top: 0;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3.66px rgba(0, 0, 0, 0.02), 0 0 9.27px rgba(0, 0, 0, 0.03), 0 0 18.9px rgba(0, 0, 0, 0.04), 0 0 38.94px rgba(0, 0, 0, 0.05), 0 0 106.67px rgba(0, 0, 0, 0.07);
  pointer-events: none;
}

.payment-links-runtime-page .lifetime-track-disabled span {
  background: #dbe2e9;
  transform: scaleX(1);
}

.payment-links-runtime-page .lifetime-track-disabled::after {
  left: calc(100% - 24px);
}

.payment-links-runtime-page .currency-field {
  top: 715px;
  width: 136px;
}

.payment-links-runtime-page .amount-mode-field {
  left: calc(var(--plink-panel-left) + 180px);
  top: 715px;
  width: 300px;
}

.payment-links-runtime-page .amount-field {
  top: 846px;
  height: 99px;
}

.payment-links-runtime-page .amount-box {
  justify-content: space-between;
}

.payment-links-runtime-page .amount-box em {
  margin-left: 10px;
  color: #67768c;
  font-style: normal;
}

.payment-links-runtime-page .amount-min-field {
  width: 220px;
}

.payment-links-runtime-page .amount-max-field {
  left: calc(var(--plink-panel-left) + 260px);
  width: 220px;
}

.payment-links-runtime-page .method-field {
  top: 977px;
  height: 99px;
}

.payment-links-runtime-page .method-field small {
  position: absolute;
  left: 0;
  top: 104px;
  color: #fd2226;
  font: 600 12px var(--font-ui);
}

.payment-links-runtime-page .method-logo {
  width: 36px;
  height: 36px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13.5px;
  background: #fff;
  flex: 0 0 auto;
}

.payment-links-runtime-page .method-logo img {
  width: 15px;
  height: 18px;
}

.payment-links-runtime-page .extra-fields {
  top: 1100px;
  height: 69px;
}

.payment-links-runtime-page .lifetime-mode-field {
  top: 1100px;
}

.payment-links-runtime-page .limit-payments-field {
  top: 1201px;
  width: 220px;
}

.payment-links-runtime-page .limit-amount-field {
  top: 1201px;
  left: calc(var(--plink-panel-left) + 260px);
  width: 220px;
}

.payment-links-runtime-page .create-link-multi .extra-fields:not(.lifetime-mode-field) {
  top: 1332px;
}

.payment-links-runtime-page .extra-checkbox {
  position: absolute;
  left: 0;
  top: 41px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.payment-links-runtime-page .extra-checkbox span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 9px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.payment-links-runtime-page .extra-checkbox[aria-pressed="False"] span,
.payment-links-runtime-page .extra-checkbox[aria-pressed="false"] span {
  background: #dbe2e9;
}

.payment-links-runtime-page .extra-checkbox span img {
  width: 14px;
  height: 14px;
}

.payment-links-runtime-page .email-field { top: 1201px; }
.payment-links-runtime-page .phone-field { top: 1332px; }
.payment-links-runtime-page .fio-field { top: 1463px; }
.payment-links-runtime-page .telegram-field { top: 1594px; }

.payment-links-runtime-page .create-link-multi .email-field { top: 1433px; }
.payment-links-runtime-page .create-link-multi .phone-field { top: 1564px; }
.payment-links-runtime-page .create-link-multi .fio-field { top: 1695px; }
.payment-links-runtime-page .create-link-multi .telegram-field { top: 1826px; }

.payment-links-runtime-page .checked-box {
  justify-content: flex-start;
}

.payment-links-runtime-page .checked-box .payhot-dropdown-button {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  padding: 0 24px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
}

.payment-links-runtime-page .create-link-submit {
  position: absolute;
  left: calc(var(--plink-panel-left) + 32px);
  top: 1725px;
  width: 448px;
  max-width: calc(100vw - 64px);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(236, 10, 70, 0.24);
}

.payment-links-runtime-page .create-link-multi .create-link-submit {
  top: 1957px;
}

.payment-links-runtime-page .create-link-submit:disabled {
  cursor: default;
  opacity: 0.6;
}

.payment-links-runtime-page .create-link-submit img {
  width: 16px;
  height: 16px;
}

.payment-links-runtime-page .created-link-title {
  left: calc(var(--plink-panel-left) + 111px);
  top: 204px;
  color: #000;
  text-align: center;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 22px;
  font-weight: 500;
}

.payment-links-runtime-page .created-link-subtitle {
  left: calc(var(--plink-panel-left) + 72px);
  top: 250px;
  width: 368px;
  color: #67768c;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.payment-links-runtime-page .created-success-visual {
  position: absolute;
  left: calc(var(--plink-panel-left) + 177px);
  top: 40px;
  width: 168px;
  height: 164px;
}

.payment-links-runtime-page .created-success-bg {
  position: absolute;
  inset: 0;
  width: 168px;
  height: 164px;
}

.payment-links-runtime-page .created-success-ring {
  position: absolute;
  left: 38px;
  top: 36px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #dbe2e9;
}

.payment-links-runtime-page .created-success-ring.active {
  background: #00d512;
}

.payment-links-runtime-page .created-success-core {
  position: absolute;
  left: 45px;
  top: 43px;
  width: 77px;
  height: 77px;
  border-radius: 50%;
  background: #f0f4f8;
}

.payment-links-runtime-page .created-success-gif {
  position: absolute;
  left: 48px;
  top: 46px;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.payment-links-runtime-page .created-copy-field {
  position: absolute;
  left: calc(var(--plink-panel-left) + 32px);
  top: 340px;
  width: 448px;
  max-width: calc(100vw - 64px);
  height: 90px;
}

.payment-links-runtime-page .created-step {
  position: absolute;
  left: 6px;
  top: 2px;
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.payment-links-runtime-page .created-copy-field p {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
}

.payment-links-runtime-page .created-copy-box {
  position: absolute;
  left: 0;
  top: 35px;
  width: 100%;
  height: 55px;
  border-radius: 24px;
  background: #f0f4f8;
}

.payment-links-runtime-page .created-copy-box strong {
  position: absolute;
  left: 24px;
  right: 62px;
  top: 19px;
  color: #1d1d1d;
  font: 700 14px var(--font-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .created-copy-box button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
}

.payment-links-runtime-page .created-copy-box img {
  width: 18px;
  height: 18px;
}

.payment-links-runtime-page .created-actions {
  position: absolute;
  left: calc(var(--plink-panel-left) + 32px);
  top: 448px;
  display: flex;
  gap: 18px;
}

.payment-links-runtime-page .created-action-button {
  width: 215px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #1d1d1d;
  text-decoration: none;
  font: 700 13px var(--font-title);
  cursor: pointer;
}

.payment-links-runtime-page .created-action-button img {
  width: 18px;
  height: 18px;
}

.payment-links-runtime-page .created-status-info {
  position: absolute;
  left: calc(var(--plink-panel-left) + 32px);
  top: 518px;
  width: 448px;
  max-width: calc(100vw - 64px);
  height: 68px;
  margin: 0;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
}

.payment-links-runtime-page .created-info-line {
  position: absolute;
  left: -1px;
  top: 24px;
  width: 2px;
  height: 24px;
  background: #00d512;
}

.payment-links-runtime-page .created-info-glow {
  position: absolute;
  left: -1px;
  top: 24px;
  width: 10px;
  height: 24px;
  background: #00d512;
  filter: blur(16px);
}

.payment-links-runtime-page .created-info-icon {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #00d512;
}

.payment-links-runtime-page .created-info-icon img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.payment-links-runtime-page .created-status-info p,
.payment-links-runtime-page .created-status-info strong {
  position: absolute;
  left: 54px;
  margin: 0;
  font-family: var(--font-ui);
}

.payment-links-runtime-page .created-status-info p {
  top: 14px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 500;
}

.payment-links-runtime-page .created-status-info strong {
  top: 34px;
  color: #00d512;
  font-size: 15px;
  font-weight: 600;
}

.payment-links-runtime-page .created-link-details {
  position: absolute;
  left: calc(var(--plink-panel-left) + 32px);
  top: 618px;
  width: 413px;
  max-width: calc(100vw - 64px);
  height: 256px;
  margin: 0;
}

.payment-links-runtime-page .created-link-details div {
  position: absolute;
  min-width: 0;
}

.payment-links-runtime-page .created-link-details div:nth-child(1) { left: 0; top: 0; }
.payment-links-runtime-page .created-link-details div:nth-child(2) { left: 233px; top: 0; }
.payment-links-runtime-page .created-link-details div:nth-child(3) { left: 0; top: 72px; }
.payment-links-runtime-page .created-link-details div:nth-child(4) { left: 233px; top: 72px; }
.payment-links-runtime-page .created-link-details div:nth-child(5) { left: 0; top: 144px; }
.payment-links-runtime-page .created-link-details div:nth-child(6) { left: 233px; top: 144px; }
.payment-links-runtime-page .created-link-details div:nth-child(7) { left: 0; top: 216px; }

.payment-links-runtime-page .created-link-details dt,
.payment-links-runtime-page .created-link-details dd {
  max-width: 180px;
  margin: 0;
  font-family: var(--font-ui);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-links-runtime-page .created-link-details dt {
  margin-bottom: 5px;
  color: #67768c;
  font-size: 14px;
  font-weight: 600;
}

.payment-links-runtime-page .created-link-details dd {
  color: #1d1d1d;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 620px) {
  .payment-links-runtime-page .create-link-modal,
  .payment-links-runtime-page .created-link-modal {
    --plink-panel-left: 8px;
    --plink-panel-width: calc(100vw - 16px);
  }

  .payment-links-runtime-page .amount-mode-field,
  .payment-links-runtime-page .amount-max-field,
  .payment-links-runtime-page .limit-amount-field {
    left: calc(var(--plink-panel-left) + 32px);
    width: min(448px, calc(100vw - 64px));
  }

  .payment-links-runtime-page .currency-field,
  .payment-links-runtime-page .amount-min-field,
  .payment-links-runtime-page .limit-payments-field {
    width: min(448px, calc(100vw - 64px));
  }

  .payment-links-runtime-page .amount-mode-field { top: 846px; }
  .payment-links-runtime-page .amount-field { top: 977px; }
  .payment-links-runtime-page .amount-max-field { top: 1108px; }
  .payment-links-runtime-page .method-field { top: 1239px; }
  .payment-links-runtime-page .extra-fields { top: 1362px; }
  .payment-links-runtime-page .email-field { top: 1463px; }
  .payment-links-runtime-page .phone-field { top: 1594px; }
  .payment-links-runtime-page .fio-field { top: 1725px; }
  .payment-links-runtime-page .telegram-field { top: 1856px; }
  .payment-links-runtime-page .create-link-submit { top: 1987px; }

  .payment-links-runtime-page .created-actions {
    width: calc(100vw - 64px);
    flex-direction: column;
  }

  .payment-links-runtime-page .created-action-button {
    width: 100%;
  }

  .payment-links-runtime-page .created-status-info {
    top: 580px;
  }

  .payment-links-runtime-page .created-link-details {
    top: 690px;
  }
}

/* Shared backoffice surface for routes that have no merchant presentation.
   Legacy pages still use the old orders-page markup, but operations roles
   must never inherit the fixed reference rail. */
#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page,
#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .payment-links-runtime-page.is-admin {
  box-sizing: border-box;
  position: relative;
  inset: auto;
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: clamp(16px, 2.6vw, 32px);
  background: #f0f4f8;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page > .page-card {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page :is(.table-wrap, .code-block, pre) {
  max-width: 100%;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .table-wrap,
#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .code-block {
  overscroll-behavior-inline: contain;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .filter-grid,
#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .detail-grid,
#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .module-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page :is(input, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .drawer-section {
  min-width: 0;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page :is(.drawer-action-row, .row-actions, .toolbar-row, .pager-bar) {
  gap: 10px;
}

#figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .payment-links-runtime-page.is-admin {
  padding: 0;
  font-family: var(--font-ui);
}

@media (max-width: 767px) {
  #figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page {
    padding: 18px 16px calc(104px + env(safe-area-inset-bottom));
  }

  #figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page > .page-card {
    border-radius: 14px;
  }

  #figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page :is(.section-head, .drawer-action-row, .row-actions, .toolbar-row, .pager-bar) {
    min-width: 0;
    flex-wrap: wrap;
  }

  #figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page :is(.page-stats, .filter-grid, .detail-grid, .module-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  #figmaFrame.figma-frame.operations-shell .cabinet-content-rail > .admin-payhot-page .table-wrap {
    border-radius: 12px;
  }
}

/* Keep privileged cards in normal detail flow despite legacy reference coordinates. */
.cashout-overlay .shared-admin-section,
.cashouts-runtime-page .shared-admin-section,
.settlements-runtime-page .shared-admin-section,
.orders-detail-overlay .shared-admin-section,
.disputes-detail-panel .shared-admin-section,
.exports-detail-panel .shared-admin-section,
.payment-links-runtime-page .shared-admin-section {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
}

@media (max-width: 767px) {
  .cashout-overlay .shared-admin-section,
  .cashouts-runtime-page .shared-admin-section,
  .settlements-runtime-page .shared-admin-section,
  .orders-detail-overlay .shared-admin-section,
  .disputes-detail-panel .shared-admin-section,
  .exports-detail-panel .shared-admin-section,
  .payment-links-runtime-page .shared-admin-section {
    padding: 16px;
    border-radius: 18px;
  }
}

/* Payment link create modals: keep the exported reference geometry intact. */
.payment-links-runtime-page .create-link-modal,
.payment-links-runtime-page .created-link-modal {
  --plink-panel-right: 8px;
  --plink-inner-right: 40px;
  --plink-half-right: 268px;
  --plink-panel-width: 512px;
  --plink-card-width: 496px;
  overflow-x: hidden;
  overflow-y: auto;
}

.payment-links-runtime-page .create-link-scrim,
.payment-links-runtime-page .created-link-scrim {
  z-index: 0;
}

.payment-links-runtime-page .create-link-modal::after {
  height: 1815px;
}

.payment-links-runtime-page .create-link-modal::before {
  content: "";
  position: absolute;
  right: var(--plink-panel-right);
  top: 8px;
  width: 512px;
  height: 1799px;
  border-radius: 32px;
  background: #f0f4f8;
  pointer-events: none;
  z-index: 1;
}

.payment-links-runtime-page .create-link-multi::after {
  height: 2047px;
}

.payment-links-runtime-page .create-link-multi::before {
  height: 2031px;
}

.payment-links-runtime-page .created-link-modal::after {
  height: 943px;
}

.payment-links-runtime-page .create-link-shell,
.payment-links-runtime-page .created-link-shell {
  left: auto;
  right: var(--plink-panel-right);
  width: var(--plink-panel-width);
  max-width: none;
  z-index: 2;
}

.payment-links-runtime-page .create-link-shell {
  height: 1799px;
}

.payment-links-runtime-page .create-link-multi .create-link-shell {
  height: 2031px;
}

.payment-links-runtime-page .create-link-panel-bg,
.payment-links-runtime-page .created-link-panel-bg {
  left: auto;
  right: 16px;
  width: var(--plink-card-width);
  max-width: none;
  z-index: 2;
}

.payment-links-runtime-page .create-link-panel-bg {
  height: 1673px;
  border-radius: 24px;
  background: #fff;
}

.payment-links-runtime-page .create-link-multi .create-link-panel-bg {
  height: 1905px;
}

.payment-links-runtime-page .create-link-close,
.payment-links-runtime-page .created-link-close {
  left: auto;
  right: 20px;
  z-index: 5;
}

.payment-links-runtime-page .create-link-title,
.payment-links-runtime-page .create-link-subtitle,
.payment-links-runtime-page .create-link-section-title,
.payment-links-runtime-page .created-link-title,
.payment-links-runtime-page .created-link-subtitle {
  left: auto;
  z-index: 3;
}

.payment-links-runtime-page .create-link-title,
.payment-links-runtime-page .create-link-subtitle,
.payment-links-runtime-page .create-link-section-title {
  right: var(--plink-inner-right);
  width: 448px;
}

.payment-links-runtime-page .create-link-title {
  font-size: 24px;
  line-height: 21.6px;
  letter-spacing: -1px;
}

.payment-links-runtime-page .create-link-subtitle {
  letter-spacing: -0.3px;
}

.payment-links-runtime-page .create-field,
.payment-links-runtime-page .lifetime-field,
.payment-links-runtime-page .extra-fields,
.payment-links-runtime-page .create-link-submit {
  left: auto;
  right: var(--plink-inner-right);
  width: 448px;
  max-width: none;
  z-index: 3;
}

.payment-links-runtime-page .field-box {
  width: 448px;
  max-width: none;
  letter-spacing: -0.3px;
}

.payment-links-runtime-page input.field-box,
.payment-links-runtime-page .field-box input,
.payment-links-runtime-page .field-box select {
  letter-spacing: -0.3px;
}

.payment-links-runtime-page .currency-field,
.payment-links-runtime-page .amount-field,
.payment-links-runtime-page .amount-min-field,
.payment-links-runtime-page .amount-max-field,
.payment-links-runtime-page .limit-payments-field,
.payment-links-runtime-page .limit-amount-field {
  width: 220px;
}

.payment-links-runtime-page .currency-field,
.payment-links-runtime-page .amount-min-field,
.payment-links-runtime-page .limit-payments-field {
  right: var(--plink-half-right);
}

.payment-links-runtime-page .amount-field,
.payment-links-runtime-page .amount-max-field,
.payment-links-runtime-page .limit-amount-field {
  right: var(--plink-inner-right);
}

.payment-links-runtime-page .currency-field .field-box,
.payment-links-runtime-page .amount-field .field-box,
.payment-links-runtime-page .amount-min-field .field-box,
.payment-links-runtime-page .amount-max-field .field-box,
.payment-links-runtime-page .limit-payments-field .field-box,
.payment-links-runtime-page .limit-amount-field .field-box {
  width: 220px;
}

.payment-links-runtime-page .currency-field {
  top: 715px;
}

.payment-links-runtime-page .amount-field,
.payment-links-runtime-page .amount-min-field,
.payment-links-runtime-page .amount-max-field {
  top: 715px;
}

.payment-links-runtime-page .method-field {
  top: 846px;
}

.payment-links-runtime-page .amount-mode-field {
  top: 977px;
  width: 448px;
  right: var(--plink-inner-right);
}

.payment-links-runtime-page .extra-fields {
  top: 1100px;
  right: calc(var(--plink-inner-right) + 215px);
  width: 233px;
}

.payment-links-runtime-page .email-field { top: 1201px; }
.payment-links-runtime-page .phone-field { top: 1332px; }
.payment-links-runtime-page .fio-field { top: 1463px; }
.payment-links-runtime-page .telegram-field { top: 1594px; }

.payment-links-runtime-page .lifetime-mode-field {
  top: 1100px;
}

.payment-links-runtime-page .limit-payments-field,
.payment-links-runtime-page .limit-amount-field {
  top: 1201px;
}

.payment-links-runtime-page .create-link-multi .extra-fields:not(.lifetime-mode-field) {
  top: 1332px;
}

.payment-links-runtime-page .create-link-multi .email-field { top: 1433px; }
.payment-links-runtime-page .create-link-multi .phone-field { top: 1564px; }
.payment-links-runtime-page .create-link-multi .fio-field { top: 1695px; }
.payment-links-runtime-page .create-link-multi .telegram-field { top: 1826px; }

.payment-links-runtime-page .create-link-submit {
  top: 1725px;
}

.payment-links-runtime-page .create-link-multi .create-link-submit {
  top: 1957px;
}

.payment-links-runtime-page .created-link-title {
  right: 175px;
  width: 226px;
  font-size: 24px;
  line-height: 21.6px;
  letter-spacing: -1px;
}

.payment-links-runtime-page .created-link-subtitle {
  right: 65px;
  width: 368px;
  letter-spacing: -0.3px;
}

.payment-links-runtime-page .created-success-visual {
  left: auto;
  right: 175px;
}

.payment-links-runtime-page .created-copy-field,
.payment-links-runtime-page .created-actions,
.payment-links-runtime-page .created-status-info,
.payment-links-runtime-page .created-link-details {
  left: auto;
  right: var(--plink-inner-right);
  max-width: none;
}

.payment-links-runtime-page .created-copy-field,
.payment-links-runtime-page .created-status-info {
  width: 448px;
}

.payment-links-runtime-page .created-link-details {
  width: 413px;
}

.payment-links-runtime-page .created-copy-box {
  width: 448px;
}

.payment-links-runtime-page .created-link-details dt,
.payment-links-runtime-page .created-link-details dd {
  letter-spacing: -0.3px;
}

@media (max-width: 620px) {
  .payment-links-runtime-page .create-link-modal,
  .payment-links-runtime-page .created-link-modal {
    --plink-panel-right: 8px;
    --plink-inner-right: 32px;
    --plink-half-right: 32px;
    --plink-panel-width: calc(100vw - 16px);
    --plink-card-width: calc(100vw - 32px);
  }

  .payment-links-runtime-page .create-field,
  .payment-links-runtime-page .lifetime-field,
  .payment-links-runtime-page .extra-fields,
  .payment-links-runtime-page .create-link-submit,
  .payment-links-runtime-page .created-copy-field,
  .payment-links-runtime-page .created-actions,
  .payment-links-runtime-page .created-status-info,
  .payment-links-runtime-page .created-link-details,
  .payment-links-runtime-page .create-link-title,
  .payment-links-runtime-page .create-link-subtitle,
  .payment-links-runtime-page .create-link-section-title {
    width: calc(100vw - 64px);
    max-width: none;
  }

  .payment-links-runtime-page .field-box,
  .payment-links-runtime-page .created-copy-box {
    width: 100%;
  }

  .payment-links-runtime-page .extra-fields {
    right: var(--plink-inner-right);
  }

  .payment-links-runtime-page .currency-field,
  .payment-links-runtime-page .amount-field,
  .payment-links-runtime-page .amount-min-field,
  .payment-links-runtime-page .amount-max-field,
  .payment-links-runtime-page .limit-payments-field,
  .payment-links-runtime-page .limit-amount-field {
    width: calc(100vw - 64px);
    right: var(--plink-inner-right);
  }

  .payment-links-runtime-page .currency-field .field-box,
  .payment-links-runtime-page .amount-field .field-box,
  .payment-links-runtime-page .amount-min-field .field-box,
  .payment-links-runtime-page .amount-max-field .field-box,
  .payment-links-runtime-page .limit-payments-field .field-box,
  .payment-links-runtime-page .limit-amount-field .field-box {
    width: 100%;
  }
}
/* Cashbox reference runtime */
.figma-frame:has(.cashbox-runtime-page) {
    --cashbox-content-left: 392px;
    --cashbox-content-right: 72px;
    --cashbox-content-width: calc(100% - var(--cashbox-content-left) - var(--cashbox-content-right));
}

.cashbox-runtime-page {
    position: relative;
    width: min(974px, var(--cashbox-content-width));
    max-width: 100%;
    min-width: 0;
    margin-left: var(--cashbox-content-left, 392px);
    padding: 92px 0 64px;
    color: #1d1d1d;
    font-family: var(--font-ui);
}

.cashbox-admin-page {
    width: min(1180px, var(--cashbox-content-width));
}

.cashbox-content,
.cashbox-project-grid {
    display: grid;
    gap: 24px;
    min-width: 0;
    max-width: 100%;
}

.cashbox-title {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cashbox-title img {
    width: 28px;
    height: 28px;
}

.cashbox-title h1 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 40px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: 0;
}

.cashbox-title p,
.cashbox-project-heading p,
.cashbox-section-note,
.cashbox-section-empty {
    margin: 6px 0 0;
    color: #6b7c94;
    font-size: 16px;
    line-height: 1.35;
}

.cashbox-refresh-button,
.cashbox-ghost-action {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(103, 118, 140, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    color: #1d1d1d;
    font: 700 14px/1 var(--font-ui);
    box-shadow: 0 10px 24px rgba(46, 74, 105, .08);
}

.cashbox-primary-action {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
    color: #fff;
    font: 800 14px/1 var(--font-ui);
    box-shadow: 0 18px 34px rgba(236, 10, 70, .24);
}

.cashbox-refresh-button:disabled,
.cashbox-primary-action:disabled,
.cashbox-ghost-action:disabled,
.method-action:disabled,
.method-arrow:disabled {
    cursor: default;
    opacity: .48;
    box-shadow: none;
}

.cashbox-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 247, 255, .72));
    box-shadow: 0 30px 70px rgba(46, 74, 105, .14);
}

.cashbox-card-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cashbox-project-icon {
    width: 40px;
    height: 40px;
}

.cashbox-project-heading {
    min-width: 0;
}

.cashbox-project-heading h2 {
    margin: 0;
    overflow: hidden;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-methods-count,
.section-count {
    display: inline-grid;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    place-items: center;
    border-radius: 999px;
    background: #eef3f9;
    color: #67768c;
    font-weight: 800;
}

.section-count-active {
    background: #d9f8df;
    color: #00b912;
}

.cashbox-method-section {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .84);
}

.cashbox-method-section .section-icon {
    width: 30px;
    height: 30px;
}

.cashbox-method-section h3 {
    align-self: center;
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
}

.cashbox-section-empty,
.cashbox-section-note,
.method-pill,
.cashbox-fields-grid,
.cashbox-fields-save {
    grid-column: 1 / -1;
}

.method-pill {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto 40px;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(46, 74, 105, .08);
    border-radius: 22px;
    background: #f0f4f8;
    color: #1d1d1d;
    text-decoration: none;
}

.method-pill.is-inactive {
    grid-template-columns: 42px minmax(0, 1fr) auto 40px;
}

.method-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 18px;
    background: #fff;
}

.method-icon.muted {
    opacity: .72;
}

.method-icon img {
    max-width: 28px;
    max-height: 28px;
}

.method-name {
    min-width: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.method-rate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 56px;
    color: #1d1d1d;
    font-size: 14px;
    font-weight: 800;
}

.method-rate img {
    width: 16px;
    height: 16px;
}

.method-action {
    border: 0;
    background: transparent;
    color: #fd2226;
    font: 800 15px/1 var(--font-ui);
}

.method-action.status-moderation,
.method-action.status-setup {
    color: #2276fd;
}

.method-action.status-disabled,
.method-action.status-rejected {
    color: #fd2226;
}

.method-arrow {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.method-arrow img {
    width: 18px;
    height: 18px;
}

.cashbox-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.cashbox-runtime-page .field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cashbox-runtime-page .field span {
    color: #6b7c94;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cashbox-runtime-page .field select,
.cashbox-runtime-page .field input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(103, 118, 140, .22);
    border-radius: 15px;
    background: rgba(255, 255, 255, .86);
    color: #1d1d1d;
    font: 700 14px/1 var(--font-ui);
}

.cashbox-method-editor-overlay,
.cashbox-request-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: auto;
}

.cashbox-method-editor-backdrop,
.cashbox-request-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 31, 43, .38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cashbox-method-editor-panel,
.cashbox-admin-drawer {
    position: absolute;
    top: 22px;
    right: 24px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(512px, calc(100vw - 48px));
    max-height: calc(100dvh - 44px);
    min-height: 0;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 32px;
    background: #f0f4f8;
    box-shadow: 0 42px 90px rgba(29, 39, 54, .28);
}

.cashbox-admin-drawer {
    width: min(720px, calc(100vw - 48px));
}

.cashbox-method-editor-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding-bottom: 18px;
}

.cashbox-method-editor-head span {
    color: #6b7c94;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cashbox-method-editor-head h2 {
    margin: 6px 0 4px;
    overflow: hidden;
    font-family: var(--font-title);
    font-size: 30px;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-head p {
    margin: 0;
    color: #6b7c94;
    font-size: 15px;
}

.cashbox-close-button,
.cashbox-request-close {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #1d1d1d;
    font-size: 36px;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(46, 74, 105, .12);
}

.cashbox-method-editor-list {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.cashbox-method-editor-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 26px;
    background: rgba(255, 255, 255, .9);
}

.cashbox-method-editor-card.is-focused {
    border-color: rgba(253, 34, 38, .34);
    box-shadow: 0 22px 46px rgba(236, 10, 70, .16);
}

.cashbox-method-editor-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cashbox-method-editor-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 17px;
    background: #eef3f9;
}

.cashbox-method-editor-icon img {
    max-width: 30px;
    max-height: 30px;
}

.cashbox-method-editor-top h3 {
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-top p,
.cashbox-method-note {
    margin: 4px 0 0;
    color: #6b7c94;
    font-size: 13px;
    line-height: 1.35;
}

.cashbox-method-editor-body {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.cashbox-commission-slider {
    position: relative;
    display: grid;
    width: 144px;
    height: 144px;
    place-items: center;
}

.cashbox-commission-ring {
    position: relative;
    width: 144px;
    height: 144px;
    border: 1px dashed rgba(103, 118, 140, .42);
    border-radius: 999px;
    background: conic-gradient(#fd2226 0 var(--commission-angle), #4972ce var(--commission-angle) 360deg);
    box-shadow: 0 0 42px rgba(253, 34, 38, .08);
}

.cashbox-commission-ring::before {
    position: absolute;
    inset: 16px;
    content: "";
    border-radius: inherit;
    background: #fff;
    box-shadow: inset 0 0 0 12px #f0f4f8;
}

.cashbox-commission-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(29, 39, 54, .2);
    transform: translateX(-50%) rotate(var(--commission-angle)) translateY(58px);
    transform-origin: 50% 66px;
}

.cashbox-commission-slider input {
    position: absolute;
    inset: 0;
    width: 144px;
    height: 144px;
    cursor: pointer;
    opacity: .001;
}

.cashbox-commission-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.cashbox-commission-values div {
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
    background: #f0f4f8;
}

.cashbox-commission-values span {
    display: block;
    color: #6b7c94;
    font-size: 12px;
    font-weight: 800;
}

.cashbox-commission-values strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 900;
}

.cashbox-method-editor-actions,
.cashbox-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cashbox-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    overflow: auto;
}

.cashbox-admin-form .field-span-2,
.cashbox-admin-hint {
    grid-column: 1 / -1;
}

.cashbox-admin-hint {
    padding: 14px 16px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    color: #6b7c94;
    font-size: 14px;
}

.cashbox-request-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100vw - 40px));
    transform: translate(-50%, -50%);
}

.cashbox-request-close {
    position: absolute;
    z-index: 2;
    top: -22px;
    right: -22px;
    width: 58px;
    height: 58px;
}

.cashbox-request-close img {
    width: 18px;
    height: 18px;
}

.cashbox-request-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 34px;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 32px;
    background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
    text-align: center;
    box-shadow: 0 42px 90px rgba(29, 39, 54, .28);
}

.cashbox-request-media {
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    border-radius: 32px;
    background: #f0f4f8;
}

.cashbox-request-media img {
    width: 96px;
    height: 96px;
}

.cashbox-request-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.cashbox-request-card p {
    margin: 0;
    color: #6b7c94;
    font-size: 15px;
    line-height: 1.45;
}

.cashbox-request-manager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    width: 100%;
    border-radius: 17px;
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 20px 38px rgba(236, 10, 70, .24);
}

.cashbox-request-manager img {
    width: 22px;
    height: 22px;
}

.cashbox-toast-region {
    position: fixed;
    z-index: 90;
    top: 90px;
    right: 64px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.cashbox-toast {
    padding: 14px 18px;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 20px 45px rgba(29, 39, 54, .2);
}

.cashbox-toast-success {
    background: #239348;
}

.cashbox-toast-error {
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.cashbox-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 28px;
    background: rgba(255, 255, 255, .76);
    color: #6b7c94;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .figma-frame:has(.cashbox-runtime-page) {
        --cashbox-content-left: 336px;
        --cashbox-content-right: 32px;
    }

    .cashbox-fields-grid,
    .cashbox-commission-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .cashbox-runtime-page {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 92px;
    }

    .cashbox-title,
    .cashbox-card-head,
    .method-pill,
    .method-pill.is-inactive,
    .cashbox-method-editor-body,
    .cashbox-admin-form {
        grid-template-columns: 1fr;
    }

    .cashbox-fields-grid,
    .cashbox-commission-values {
        grid-template-columns: 1fr;
    }
}

/* Payment links and cashbox use content-driven shell flow so long cards never sit under the footer. */
.figma-frame:has(.payment-links-runtime-page),
.figma-frame:has(.cashbox-runtime-page) {
    width: min(1440px, 100%);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    transform: none;
}

body:has(.payment-links-runtime-page),
body:has(.cashbox-runtime-page) {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.figma-frame:has(.payment-links-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.cashbox-runtime-page) .cabinet-shell-underlay {
    position: relative;
    inset: auto;
    display: flow-root;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: visible;
}

.figma-frame:has(.payment-links-runtime-page) .topbar,
.figma-frame:has(.cashbox-runtime-page) .topbar {
    width: 100%;
    max-width: 100%;
}

.figma-frame:has(.payment-links-runtime-page) .page-footer,
.figma-frame:has(.cashbox-runtime-page) .page-footer {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    width: calc(100% - 16px);
    max-width: 1424px;
    min-width: 0;
    height: 221px;
    margin: 72px 8px 0;
}

.figma-frame:has(.cashbox-runtime-page) {
    --cashbox-content-left: 392px;
    --cashbox-content-right: 72px;
    --cashbox-content-width: calc(100% - var(--cashbox-content-left) - var(--cashbox-content-right));
}

.cashbox-runtime-page {
    font-family: var(--font-ui);
    letter-spacing: 0;
}

.cashbox-runtime-page h1,
.cashbox-runtime-page h2,
.cashbox-runtime-page h3,
.cashbox-runtime-page button,
.cashbox-runtime-page input,
.cashbox-runtime-page select {
    font-family: var(--font-ui);
    letter-spacing: 0;
}

.cashbox-method-section {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    padding: 22px 24px;
}

.cashbox-method-section .section-icon {
    width: 36px;
    height: 36px;
}

.cashbox-active-section h3,
.cashbox-inactive-section h3 {
    display: none;
}

.cashbox-payer-fields-section h3 {
    display: block;
    align-self: center;
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.cashbox-section-toggle {
    display: grid;
    grid-template-columns: minmax(0, max-content) 54px 54px;
    align-items: center;
    justify-content: start;
    gap: 18px;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #1d1d1d;
    text-align: left;
    font: 700 28px/1.1 var(--font-ui);
}

.cashbox-section-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-section-toggle .section-count {
    width: 54px;
    height: 54px;
    min-width: 54px;
    padding: 0;
    border-radius: 999px;
    font-size: 24px;
    font-weight: 800;
}

.cashbox-section-toggle .section-arrow {
    width: 54px;
    height: 54px;
    padding: 17px;
    border-radius: 999px;
    background: #eef3f9;
    transition: transform .18s ease;
}

.cashbox-method-section.is-expanded .section-arrow {
    transform: rotate(180deg);
}

.cashbox-section-empty,
.method-pill {
    margin-top: 4px;
}

.cashbox-method-editor-panel {
    top: 36px;
    right: 34px;
    width: min(512px, calc(100vw - 68px));
    max-height: calc(100dvh - 72px);
    padding: 34px 24px 40px;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 36px;
    background: #f0f4f8;
    box-shadow: 0 44px 92px rgba(29, 39, 54, .34);
}

.cashbox-method-editor-head {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 18px;
    padding: 12px 0 24px;
}

.cashbox-method-editor-head span {
    color: #67768c;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .2em;
}

.cashbox-method-editor-head h2 {
    margin: 20px 0 6px;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
}

.cashbox-method-editor-head p {
    color: #67768c;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 500;
}

.cashbox-close-button {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    font-size: 54px;
    font-weight: 300;
}

.cashbox-method-editor-list {
    gap: 20px;
    padding-right: 0;
}

.cashbox-method-editor-card {
    min-height: 306px;
    padding: 24px 22px 26px;
    gap: 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(46, 74, 105, .08);
}

.cashbox-method-editor-card.is-focused {
    border-color: rgba(46, 74, 105, .12);
    box-shadow: 0 24px 52px rgba(46, 74, 105, .12);
}

.cashbox-method-editor-top {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 16px;
}

.cashbox-method-editor-icon {
    width: 56px;
    height: 56px;
    border-radius: 22px;
    background: #f0f4f8;
}

.cashbox-method-editor-icon img {
    max-width: 36px;
    max-height: 36px;
}

.cashbox-method-editor-top h3 {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 800;
}

.cashbox-method-editor-top p {
    margin-top: 6px;
    color: #67768c;
    font-size: 16px;
    font-weight: 500;
}

.cashbox-method-status-label {
    align-self: start;
    color: #1d1d1d;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 500;
    white-space: nowrap;
}

.cashbox-method-status-label.status-active {
    color: #00c812;
}

.cashbox-method-status-label.status-moderation,
.cashbox-method-status-label.status-setup {
    color: #2276fd;
}

.cashbox-method-status-label.status-rejected,
.cashbox-method-status-label.status-disabled {
    color: #fd2226;
}

.cashbox-method-editor-body {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 22px;
}

.cashbox-commission-slider {
    width: 144px;
    height: 144px;
}

.cashbox-commission-ring {
    border: 1px dashed rgba(103, 118, 140, .38);
    background:
        radial-gradient(circle at center, #fff 0 28px, transparent 29px),
        conic-gradient(#fd2226 0 var(--commission-angle), #4972ce var(--commission-angle) 360deg);
    box-shadow: 0 0 0 16px rgba(253, 34, 38, .12);
}

.cashbox-commission-ring::before {
    inset: 22px;
    background: #f0f4f8;
    box-shadow: inset 0 0 0 16px #fff;
}

.cashbox-commission-dot {
    top: 0;
    width: 28px;
    height: 28px;
    transform: translateX(-50%) rotate(var(--commission-angle)) translateY(58px);
}

.cashbox-commission-values {
    align-self: center;
    gap: 10px;
}

.cashbox-commission-values div {
    min-height: 76px;
    padding: 14px 12px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashbox-commission-values span {
    color: #67768c;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
}

.cashbox-commission-values strong {
    margin-top: 8px;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.cashbox-method-note {
    color: #67768c;
    font-size: 16px;
}

.cashbox-method-editor-actions {
    align-items: center;
    min-height: 52px;
}

.cashbox-method-editor-actions .cashbox-primary-action {
    min-width: 160px;
    min-height: 54px;
    border-radius: 18px;
    font-size: 18px;
}

.cashbox-method-editor-actions .cashbox-ghost-action {
    min-height: 54px;
    border-radius: 18px;
    font-size: 15px;
}

@media (max-width: 1180px) {
    .figma-frame:has(.cashbox-runtime-page) {
        --cashbox-content-left: 392px;
        --cashbox-content-right: 32px;
    }

    .cashbox-section-toggle {
        grid-template-columns: minmax(0, 1fr) 46px 46px;
        font-size: 22px;
    }

    .cashbox-section-toggle .section-count,
    .cashbox-section-toggle .section-arrow {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
}

/* Cashbox typography aligned with payment-links reference transfer. */
.cashbox-runtime-page {
    font-family: var(--font-ui);
}

.cashbox-title h1 {
    color: #000;
    font-family: var(--font-title);
    font-size: 32px;
    line-height: 28.8px;
    font-weight: 500;
    letter-spacing: 0;
}

.cashbox-title p,
.cashbox-project-heading p,
.cashbox-section-note,
.cashbox-section-empty {
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0;
}

.cashbox-refresh-button,
.cashbox-primary-action,
.cashbox-ghost-action,
.method-action {
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.cashbox-project-heading h2,
.cashbox-section-toggle,
.cashbox-payer-fields-section h3,
.method-name,
.cashbox-method-editor-top h3,
.cashbox-request-card h2 {
    font-family: var(--font-title);
    letter-spacing: 0;
}

.cashbox-project-heading h2 {
    font-size: 24px;
    line-height: 24px;
    font-weight: 600;
}

.cashbox-section-toggle {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 500;
}

.cashbox-section-toggle .section-count,
.cashbox-methods-count,
.section-count {
    font-family: var(--font-number);
    font-weight: 600;
    letter-spacing: 0;
}

.method-name {
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;
}

.method-rate,
.cashbox-commission-values strong {
    font-family: var(--font-number);
    font-weight: 600;
    letter-spacing: 0;
}

.cashbox-runtime-page .field span,
.cashbox-commission-values span,
.cashbox-method-editor-head span {
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: .08em;
}

.cashbox-runtime-page .field select,
.cashbox-runtime-page .field input {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.cashbox-method-editor-head h2 {
    font-family: var(--font-title);
    font-size: 38px;
    line-height: 1;
    font-weight: 500;
}

.cashbox-method-editor-head p,
.cashbox-method-editor-top p,
.cashbox-method-status-label,
.cashbox-method-note,
.cashbox-request-card p {
    font-family: var(--font-ui);
    letter-spacing: 0;
}

/* Cashbox final reference pass: keep runtime flow, restore reference metrics. */
.cashbox-runtime-page {
    width: min(974px, var(--cashbox-content-width));
    min-height: 900px;
    min-height: max(calc(100vh - 398px), 900px);
    min-height: max(calc(100svh - 398px), 900px);
    min-height: max(calc(100dvh - 398px), 900px);
    padding-top: 109px;
    font-family: var(--font-ui);
}

.cashbox-admin-page {
    width: min(1180px, var(--cashbox-content-width));
}

.cashbox-content,
.cashbox-project-grid {
    gap: 8px;
}

.cashbox-content > .cashbox-empty {
    min-height: 360px;
}

.cashbox-title {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-height: 58px;
}

.cashbox-title img {
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.cashbox-title h1 {
    margin: 0;
    color: #000;
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 500;
    line-height: 28.8px;
    letter-spacing: 0;
}

.cashbox-title p {
    grid-column: 1 / 3;
    margin: 10px 0 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0;
}

.cashbox-refresh-button {
    min-height: 42px;
    padding: 0 22px;
    border-radius: 14px;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
}

.cashbox-card {
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 24px 4px 4px;
    overflow: hidden;
    border: 1px solid rgba(46, 74, 105, 0.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
    box-shadow: none;
}

.cashbox-card-head {
    grid-template-columns: 30px minmax(0, max-content) auto;
    gap: 12px;
    align-items: center;
    min-height: 36px;
    padding: 0 20px 14px;
}

.cashbox-project-icon {
    width: 30px;
    height: 30px;
}

.cashbox-project-heading h2 {
    margin: 0;
    color: #000;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
}

.cashbox-methods-count {
    justify-self: start;
    min-width: 90px;
    height: 36px;
    padding: 1px 12px 2px;
    border-radius: 128px;
    background: #e6e9eb;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.cashbox-method-section {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 16px;
    align-items: start;
    width: calc(100% - 8px);
    min-height: 84px;
    margin: 0 4px;
    padding: 24px;
    border: 1px solid rgba(46, 74, 105, 0.1);
    border-radius: 24px;
    background: #fff;
}

.cashbox-method-section.is-expanded {
    min-height: 163px;
}

.cashbox-method-section .section-icon {
    width: 24px;
    height: 24px;
    margin-top: 6px;
}

.cashbox-section-toggle {
    display: grid;
    grid-template-columns: max-content 36px 36px;
    gap: 10px;
    align-items: center;
    justify-content: start;
    width: max-content;
    max-width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
}

.cashbox-section-toggle span {
    overflow: visible;
    text-overflow: clip;
}

.cashbox-section-toggle .section-count,
.section-count {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 18px;
    background: #f0f4f8;
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.cashbox-section-toggle .section-count-active {
    background: #00d512;
    color: #fff;
}

.cashbox-section-toggle .section-arrow {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 18px;
    background: #f0f4f8;
}

.cashbox-section-toggle .section-arrow,
.cashbox-method-section.is-expanded .section-arrow {
    transform: none;
}

.cashbox-method-section.is-collapsed .section-arrow {
    transform: rotate(-90deg);
}

.cashbox-section-empty,
.cashbox-section-note,
.method-pill,
.cashbox-fields-grid,
.cashbox-fields-save {
    grid-column: 1 / -1;
}

.cashbox-section-empty,
.cashbox-section-note {
    margin: 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.method-pill,
.method-pill.is-inactive {
    grid-template-columns: 39px minmax(0, 1fr) auto auto 39px;
    gap: 10px;
    min-height: 55px;
    padding: 8px;
    border-radius: 24px;
    background: #f0f4f8;
}

.method-pill.is-inactive {
    grid-template-columns: 39px minmax(0, 1fr) auto 39px;
}

.method-icon,
.method-arrow {
    width: 39px;
    height: 39px;
    border-radius: 16px;
    background: #fff;
}

.method-icon img {
    max-width: 24px;
    max-height: 24px;
}

.method-sbp .method-icon img {
    width: 15px;
    height: 18px;
}

.method-name {
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0;
}

.method-rate {
    min-width: auto;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.method-rate img {
    width: 18px;
    height: 18px;
}

.method-action {
    color: #fd2226;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}

.method-action.status-moderation,
.method-action.status-setup {
    color: #006aff;
}

.method-arrow {
    display: grid;
    place-items: center;
    padding: 0;
}

.method-arrow img {
    width: 24px;
    height: 24px;
}

.cashbox-payer-fields-section {
    min-height: 84px;
}

.cashbox-fields-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cashbox-fields-save {
    width: 100%;
    min-height: 44px;
    border-radius: 16px;
}

/* Reference-style cashbox methods drawer. */
.cashbox-method-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: auto;
}

.cashbox-method-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 31, 43, .38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.method-editor-panel {
    position: absolute;
    top: 22px;
    right: 24px;
    width: min(512px, calc(100vw - 48px));
    max-height: calc(100dvh - 44px);
    overflow: hidden;
    border-radius: 36px;
    background: #f0f4f8;
    box-shadow: 0 44px 92px rgba(29, 39, 54, .34);
}

.cashbox-method-editor-reference .method-editor-panel {
    width: min(512px, calc(100vw - 48px));
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 28px;
    background: #f0f4f8;
    box-shadow: 0 44px 92px rgba(29, 39, 54, .34);
}

.cashbox-method-editor-reference .modal,
.cashbox-method-editor-reference .modal * {
    box-sizing: border-box;
}

.cashbox-method-editor-reference .modal {
    position: relative;
    width: 512px;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 76px 8px 16px;
    background: #f0f4f8;
}

.cashbox-method-editor-reference .rectangle-1430153694 {
    position: absolute;
    left: 0;
    top: 0;
    width: 512px;
    max-width: 100%;
    height: 1146px;
    pointer-events: none;
}

.cashbox-method-editor-reference .close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cashbox-method-editor-reference .rectangle-40014 {
    position: absolute;
    inset: 0;
    border-radius: 1024px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .12), 0 0 80px rgba(0, 0, 0, .23);
}

.cashbox-method-editor-reference .close2 {
    position: absolute;
    left: 34.09%;
    top: 34.09%;
    width: 31.82%;
    height: 31.82%;
}

.cashbox-method-editor-reference .method-editor-title-kicker {
    position: relative;
    z-index: 1;
    margin: 0 18px 12px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.cashbox-method-editor-reference .method-editor-title-project {
    position: relative;
    z-index: 1;
    margin: 0 18px;
    overflow: hidden;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 500;
    line-height: .9;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-reference .method-editor-title-count {
    position: relative;
    z-index: 1;
    margin: 8px 18px 18px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
}

.cashbox-method-editor-reference .method-editor-reference-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    height: auto;
    min-height: initial;
    overflow: visible;
    padding: 0;
}

.cashbox-method-editor-reference .method-editor-reference-card {
    position: relative;
    width: 496px;
    max-width: 100%;
    min-height: 339px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 28px;
    background: #fff;
}

.cashbox-method-editor-reference .method-editor-reference-card.is-focused {
    outline: 2px solid rgba(253, 34, 38, .16);
}

.cashbox-method-editor-reference .rectangle-1430153695 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cashbox-method-editor-reference .method-editor-reference-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-height: 44px;
}

.cashbox-method-editor-reference .method-editor-reference-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: #f0f4f8;
}

.cashbox-method-editor-reference .method-editor-reference-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cashbox-method-editor-reference .method-editor-reference-name h3 {
    margin: 0;
    overflow: hidden;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 500;
    line-height: 90%;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-reference .method-editor-reference-name p {
    margin: 6px 0 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
}

.cashbox-method-editor-reference .method-editor-reference-status {
    align-self: start;
    max-width: 154px;
    overflow: hidden;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-reference .method-editor-reference-status.status-active {
    padding: 1px 8px 2px;
    border-radius: 128px;
    background: rgba(0, 213, 18, .2);
    color: #00d512;
    font-size: 12px;
    font-weight: 600;
}

.cashbox-method-editor-reference .method-editor-reference-status.status-disabled,
.cashbox-method-editor-reference .method-editor-reference-status.status-rejected {
    color: #fd2226;
}

.cashbox-method-editor-reference .method-editor-reference-status.status-moderation,
.cashbox-method-editor-reference .method-editor-reference-status.status-setup {
    color: #006aff;
}

.cashbox-method-editor-reference .method-editor-reference-commission {
    position: relative;
    z-index: 1;
    min-height: 226px;
    margin-top: 20px;
}

.cashbox-method-editor-reference .method-editor-reference-value {
    position: absolute;
    width: 137px;
    min-height: 64px;
    padding: 12px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashbox-method-editor-reference .method-editor-reference-base {
    left: 158px;
    top: 154px;
}

.cashbox-method-editor-reference .method-editor-reference-merchant {
    left: 0;
    top: 154px;
}

.cashbox-method-editor-reference .method-editor-reference-payer {
    right: 0;
    top: 154px;
}

.cashbox-method-editor-reference .method-editor-reference-value span {
    display: block;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.cashbox-method-editor-reference .method-editor-reference-value strong {
    display: block;
    margin-top: 5px;
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.cashbox-method-editor-reference .method-editor-reference-note {
    position: relative;
    z-index: 1;
    margin: 4px 0 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.25;
}

.cashbox-method-editor-reference .method-editor-reference-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cashbox-method-editor-reference .method-editor-reference-actions .cashbox-primary-action,
.cashbox-method-editor-reference .method-editor-reference-actions .cashbox-ghost-action {
    min-height: 40px;
    border-radius: 14px;
}

@media (max-width: 700px) {
    .method-editor-panel {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .cashbox-method-editor-reference .method-editor-reference-head {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .cashbox-method-editor-reference .method-editor-reference-status {
        grid-column: 2;
        max-width: 100%;
    }

    .cashbox-method-editor-reference .method-editor-reference-commission {
        display: grid;
        min-height: 0;
        gap: 10px;
    }

    .cashbox-method-editor-reference .method-editor-reference-value {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        justify-self: center;
    }

    .cashbox-method-editor-reference .method-editor-reference-value {
        width: 100%;
    }
}

.cashbox-method-editor-reference .method-editor-panel {
    overflow-x: hidden;
    overflow-y: auto;
}

.cashbox-method-editor-reference .cashbox-reference-canvas {
    width: 512px;
    min-height: 1146px;
    padding: 0 8px 8px;
    background: #f0f4f8;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .rectangle-1430153694 {
    width: 512px;
    height: 1146px;
    object-fit: fill;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .div26 {
    position: absolute;
    z-index: 1;
    left: 32px;
    top: 30px;
    color: #000;
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 500;
    line-height: 90%;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .ru-merhant-store {
    position: absolute;
    z-index: 1;
    left: 32px;
    top: 64px;
    max-width: 390px;
    overflow: hidden;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .method-editor-reference-list {
    display: grid;
    gap: 8px;
    padding-top: 105px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .method-editor-reference-card {
    width: 496px;
    min-width: 496px;
    height: 339px;
    min-height: 339px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .method-editor-reference-card.is-focused {
    outline: 0;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .method-editor-reference-card.is-focused .rectangle-1430153695 {
    filter: drop-shadow(0 0 12px rgba(253, 34, 38, .16));
}

.cashbox-method-editor-reference .cashbox-reference-canvas .rectangle-1430153695 {
    inset: 0;
    width: 496px;
    height: 339px;
    object-fit: fill;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .name .logo {
    position: absolute;
    left: 26px;
    top: 18px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .name .div3 {
    position: absolute;
    left: 58px;
    top: 24px;
    max-width: 285px;
    overflow: hidden;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 500;
    line-height: 90%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .status,
.cashbox-method-editor-reference .cashbox-reference-canvas .group-2087330940 {
    position: absolute;
    z-index: 5;
    right: 18px;
    top: 18px;
    min-height: 24px;
    border: 0;
    font-family: var(--font-ui);
}

.cashbox-method-editor-reference .cashbox-reference-canvas .status {
    display: grid;
    place-items: center;
    padding: 1px 8px 2px;
    border-radius: 128px;
    background: rgba(0, 213, 18, .2);
    color: #00d512;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .status .div2 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .status.status-disabled,
.cashbox-method-editor-reference .cashbox-reference-canvas .status.status-rejected {
    background: transparent;
    color: #fd2226;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .status.status-moderation,
.cashbox-method-editor-reference .cashbox-reference-canvas .status.status-setup {
    background: transparent;
    color: #006aff;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .group-2087330940 {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    color: #ec0a46;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .group-2087330940 .angle-right-small {
    width: 18px;
    height: 18px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .group-2087330940.is-disabled {
    max-width: 150px;
    color: #67768c;
    cursor: default;
    text-align: right;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .store,
.cashbox-method-editor-reference .cashbox-reference-canvas .client .user {
    position: absolute;
    top: 106px;
    width: 32px;
    height: 32px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .store {
    left: 26px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .client .user {
    right: 10px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .div4,
.cashbox-method-editor-reference .cashbox-reference-canvas .client .div8 {
    position: absolute;
    top: 155px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .div4 {
    left: 26px;
    color: #ec0a46;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .client .div8 {
    right: 26px;
    color: #4972ce;
    text-align: right;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .rectangle-4,
.cashbox-method-editor-reference .cashbox-reference-canvas .client .rectangle-42 {
    position: absolute;
    top: 204px;
    width: 173px;
    height: 64px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .rectangle-4 {
    left: 26px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .client .rectangle-42 {
    right: 26px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant ._70,
.cashbox-method-editor-reference .cashbox-reference-canvas .client ._30,
.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .div5,
.cashbox-method-editor-reference .cashbox-reference-canvas .client .div7 {
    position: absolute;
    top: 226px;
    font-family: var(--font-number);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant ._70 {
    left: 50px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .merchant .div5 {
    left: 161px;
    color: #67768c;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .client ._30 {
    right: 137px;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .client .div7 {
    right: 50px;
    color: #67768c;
}

.cashbox-method-editor-reference .cashbox-reference-canvas .reference-admin-action {
    position: absolute;
    z-index: 5;
    right: 18px;
    bottom: 18px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 10px;
    color: #1d1d1d;
    background: rgba(255, 255, 255, .72);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .cashbox-method-editor-reference .cashbox-reference-canvas {
        width: 496px;
        min-height: 0;
    }

    .cashbox-method-editor-reference .cashbox-reference-canvas .method-editor-reference-list {
        padding-top: 105px;
    }
}

.terminal-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 150px;
}

.terminal-row-actions .ghost-btn {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
}

.terminal-row-actions .danger-action {
    color: #ec0a46;
}

/* Cashouts reference transfer */
.figma-frame:has(.cashouts-runtime-page) {
    --cashouts-content-left: 392px;
    --cashouts-content-right: 72px;
    --cashouts-content-width: calc(100% - var(--cashouts-content-left) - var(--cashouts-content-right));
    min-height: 100dvh;
    height: auto !important;
    overflow: visible;
    background: #eef4fa;
}

body:has(.cashouts-runtime-page) {
    background: #eef4fa;
}

.figma-frame:has(.cashouts-runtime-page) .page-footer {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    width: calc(100% - 16px);
    max-width: 1424px;
    min-width: 0;
    height: 221px;
    margin: 96px 8px 8px;
}

.cashouts-runtime-page,
.cashouts-runtime-page * {
    box-sizing: border-box;
}

.cashouts-runtime-page {
    position: relative;
    z-index: 2;
    width: min(974px, var(--cashouts-content-width));
    max-width: var(--cashouts-content-width);
    min-height: max(calc(100dvh - 398px), 900px);
    margin-left: var(--cashouts-content-left);
    padding: 109px 0 80px;
    color: #1d1d1d;
    font-family: var(--font-ui);
}

.cashouts-content {
    position: relative;
    width: 974px;
    max-width: 100%;
    min-height: 720px;
}

.cashouts-title {
    position: relative;
    width: min(423px, 100%);
    height: 58px;
}

.cashouts-title img {
    position: absolute;
    left: 0;
    top: 3px;
    width: 24px;
    height: 24px;
}

.cashouts-title h1 {
    position: absolute;
    left: 36px;
    top: 0;
    overflow: hidden;
    max-width: calc(100vw - 520px);
    margin: 0;
    color: #000;
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 500;
    line-height: 28.8px;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashouts-title p {
    position: absolute;
    left: 0;
    top: 41px;
    margin: 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.cashouts-filter-wrap {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
}

.cashouts-runtime-page .status-filter {
    display: inline-flex;
    width: 160px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #1d1d1d;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 18px 50px rgba(38, 56, 84, .08);
    white-space: nowrap;
}

.cashouts-runtime-page .status-filter img {
    width: 18px;
    height: 18px;
}

.cashouts-runtime-page .status-filter-arrow {
    transition: transform .18s ease;
}

.cashouts-runtime-page .status-filter.is-open .status-filter-arrow,
.cashouts-runtime-page .status-filter[aria-expanded="true"] .status-filter-arrow {
    transform: rotate(180deg);
}

.cashouts-status-menu {
    position: absolute;
    top: 48px;
    right: 0;
    display: grid;
    width: 190px;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(38, 56, 84, .16);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.cashouts-status-menu button {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1d1d1d;
    cursor: pointer;
    font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cashouts-status-menu button.active,
.cashouts-status-menu button:hover {
    background: #f0f4f8;
    color: #fd2226;
}

.cashouts-stats {
    position: absolute;
    left: 0;
    top: 90px;
    width: 162px;
    height: 401px;
}

.cashouts-stats::before,
.cashouts-stats::after,
.cashouts-stats .stats-item::before,
.cashouts-stats .stats-item::after {
    display: none;
    content: none;
}

.cashouts-stats .stats-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 151px;
    height: 99px;
    border: 0;
}

.cashouts-stats .stats-total {
    top: 155px;
}

.cashouts-stats .stats-new {
    top: 302px;
}

.cashouts-stats .stats-item h2 {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 500;
    line-height: 14.4px;
    letter-spacing: 0;
}

.cashouts-stats .stats-item strong {
    position: absolute;
    left: 0;
    top: 38px;
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 36px;
    font-weight: 600;
    line-height: 32.4px;
    letter-spacing: 0;
}

.cashouts-stats .stats-item p {
    position: absolute;
    left: 0;
    top: 82px;
    margin: 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.cashouts-stats .stats-separator {
    position: absolute;
    left: 0;
    top: 122px;
    width: 162px;
    height: 1px;
    background: #d4dce5;
}

.cashouts-stats .stats-separator.second {
    top: 277px;
}

.fiat-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 264px);
    grid-auto-rows: 450px;
    gap: 8px;
    width: 808px;
    max-width: calc(100% - 168px);
    margin: 32px 0 0 168px;
}

.fiat-card {
    position: relative;
    width: 264px;
    height: 450px;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 5.32px rgba(0, 8, 33, .03), 0 0 17.87px rgba(0, 8, 33, .04), 0 0 80px rgba(0, 8, 33, .07);
    cursor: pointer;
}

.fiat-card:focus-visible {
    outline: 2px solid rgba(253, 34, 38, .45);
    outline-offset: 3px;
}

.fiat-card-top {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 256px;
    height: 151px;
    border-radius: 20px;
    background: #f0f4f8;
}

.fiat-card.status-new .fiat-card-top {
    background: rgba(251, 220, 45, .15);
}

.fiat-card.status-success .fiat-card-top {
    background: rgba(0, 213, 18, .12);
}

.fiat-card.status-declined .fiat-card-top {
    background: rgba(253, 34, 38, .1);
}

.fiat-card .card-icon {
    position: absolute;
    left: 14px;
    top: 20px;
    width: 24px;
    height: 24px;
}

.fiat-card-top em {
    position: absolute;
    left: 14px;
    top: 62px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
}

.fiat-card .status-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    height: 24px;
    max-width: 126px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 1px 8px 2px;
    border-radius: 128px;
    overflow: hidden;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fiat-card .status-pill img {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.fiat-card.status-new .status-pill {
    background: #fddd2d;
    color: #7f3e00;
}

.fiat-card.status-success .status-pill {
    background: #00d512;
    color: #fff;
}

.fiat-card.status-declined .status-pill {
    background: #fd2226;
    color: #fff;
}

.fiat-card .amounts {
    position: absolute;
    left: 14px;
    top: 88px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 228px;
    gap: 12px;
}

.fiat-card .amounts p {
    margin: 0;
}

.fiat-card .amounts strong {
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.fiat-card .amounts small {
    margin-left: 4px;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
}

.fiat-card .amounts span {
    display: block;
    margin-top: 8px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
}

.fiat-card dl {
    position: absolute;
    left: 14px;
    top: 183px;
    display: grid;
    width: 228px;
    gap: 18px;
    margin: 0;
}

.fiat-card dl div {
    min-width: 0;
}

.fiat-card dt {
    margin: 0 0 5px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
}

.fiat-card dd {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin: 0;
    overflow: hidden;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fiat-card .cashout-method-pill {
    display: inline-flex;
    max-width: 100%;
    min-height: 28px;
    align-items: center;
    padding: 0 12px;
    border-radius: 128px;
    overflow: hidden;
    background: #e8edf2;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fiat-card .merchant dd {
    width: 210px;
    max-width: 210px;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.fiat-card dd img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.cashouts-empty {
    display: grid;
    width: 808px;
    max-width: calc(100% - 168px);
    min-height: 450px;
    place-items: center;
    margin: 32px 0 0 168px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 80px rgba(0, 8, 33, .06);
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 500;
}

.cashouts-runtime-page .more-button {
    display: block;
    width: 221px;
    height: 48px;
    margin: 38px 0 0 462px;
    border: 1px solid rgba(103, 118, 140, .3);
    border-radius: 12px;
    background: transparent;
    color: #1d1d1d;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
}

.cashouts-toast-region {
    position: fixed;
    z-index: 80;
    top: 90px;
    right: 72px;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.cashouts-toast {
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 18px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 18px 50px rgba(29, 29, 29, .22);
}

.cashouts-toast-error {
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.cashouts-toast-success {
    background: #178f3f;
}

.cashout-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    isolation: isolate;
}

.cashout-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: auto;
    height: auto;
    background: rgba(11, 18, 30, .34);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.cashout-drawer {
    position: fixed;
    z-index: 1;
    inset: 24px 24px 24px auto;
    display: grid;
    width: min(512px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100dvh - 48px);
    max-height: calc(100svh - 48px);
    padding: 30px 8px 24px;
    align-content: start;
    gap: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 32px;
    background: #f0f4f8;
    color: #1d1d1d;
    box-shadow: 0 24px 90px rgba(0, 8, 33, .22);
    pointer-events: auto;
}

.cashout-close {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cashout-close .rectangle-40014 {
    position: absolute;
    inset: 0;
    border-radius: 1024px;
    background: #fff;
    box-shadow: 0 0 10.02px rgba(0, 0, 0, .12), 0 0 80px rgba(0, 0, 0, .23);
}

.cashout-close .close2 {
    position: absolute;
    inset: 34.09%;
    width: 31.82%;
    height: 31.82%;
}

.cashout-heading {
    position: absolute;
    left: 32px;
    top: 30px;
    width: 300px;
    height: 63px;
    margin: 0;
}

.cashout-heading h1 {
    margin: 0;
    color: #000;
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: -.6px;
}

.cashout-heading p {
    position: absolute;
    left: 0;
    top: 34px;
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.3px;
}

.cashout-heading span {
    color: #67768c;
}

.cashout-status-row {
    position: absolute;
    left: 32px;
    top: 93px;
    width: 186px;
    height: 24px;
}

.cashout-status {
    position: absolute;
    top: 0;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1px 2px 2px;
    border-radius: 128px;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.3px;
    white-space: nowrap;
}

.cashout-status img {
    width: 12px;
    height: 12px;
    display: block;
    filter: brightness(0) invert(1);
}

.cashout-status.paid {
    left: 0;
    width: 100px;
    background: #00d512;
    color: #fff;
}

.cashout-status.new {
    left: 0;
    width: 112px;
    background: #fddd2d;
    color: #7f3e00;
}

.cashout-status.declined {
    left: 0;
    width: 112px;
    background: #fd2226;
    color: #fff;
}

.cashout-status.merchant {
    left: 106px;
    width: 80px;
    border: 1px solid #1d1d1d;
    background: #f0f4f8;
    color: #1d1d1d;
}

.cashout-main-card {
    position: absolute;
    left: 8px;
    top: 141px;
    width: 496px;
    height: 900px;
    padding: 0;
    border-radius: 24px;
    background: #fff;
}

.merchant-summary {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 448px;
    height: 126px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #f0f4f8;
}

.merchant-summary-icon {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 24px;
    height: 24px;
    display: block;
    opacity: .75;
}

.merchant-summary p,
.cashout-fields dt,
.cashout-amount-card p,
.comment-block dt,
.history-item p span,
.cashout-admin-block .field span {
    margin: 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.merchant-user-pill img,
.comment-block img {
    width: 14px;
    height: 14px;
}

.merchant-summary h2 {
    position: absolute;
    left: 24px;
    top: 83px;
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.3px;
    max-width: 236px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-summary p {
    position: absolute;
    left: 24px;
    top: 60px;
}

.merchant-user-pill {
    position: absolute;
    left: 148px;
    top: 81px;
    width: 100px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    border-radius: 128px;
    background: rgba(185, 194, 205, .5);
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
}

.cashout-fields {
    margin: 0;
}

.cashout-fields div {
    position: absolute;
}

.cashout-fields dd,
.cashout-amount-card dd,
.comment-block dd,
.history-item p,
.cashout-admin-block input,
.cashout-admin-block select {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.cashout-fields dd span {
    color: #67768c;
    font-size: 14px;
}

.field-created {
    left: 24px;
    top: 168px;
}

.field-created dd,
.field-currency dd,
.field-reference dd {
    margin-top: 12px;
}

.field-currency {
    left: 24px;
    top: 248px;
}

.field-reference {
    left: 24px;
    top: 636px;
}

.field-reference dd {
    color: #67768c;
}

.cashout-amount-card {
    position: absolute;
    left: 24px;
    top: 320px;
    width: 448px;
    height: 308px;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashout-amount-card .amount-label {
    position: absolute;
    left: 18px;
    top: 23px;
}

.cashout-amount-card strong {
    position: absolute;
    left: 18px;
    top: 53px;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 600;
    line-height: 21.6px;
    letter-spacing: -.3px;
}

.cashout-amount-card strong span {
    margin-left: 3px;
    font-family: var(--font-ui);
    font-size: 20px;
    line-height: 18px;
}

.cashout-amount-card .commission {
    position: absolute;
    left: 18px;
    top: 107px;
}

.cashout-amount-card .commission span {
    color: #67768c;
}

.payout-method,
.payout-requisites,
.payout-recipient {
    position: absolute;
    min-width: 0;
}

.payout-method {
    left: 18px;
    top: 169px;
}

.payout-card-icon {
    position: absolute;
    left: 217px;
    top: 174px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 13.5px;
    background: #fff;
}

.payout-card-icon img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.payout-requisites {
    left: 269px;
    top: 169px;
}

.payout-recipient {
    left: 18px;
    top: 241px;
    width: 404px;
}

.payout-method dd,
.payout-requisites dd,
.payout-recipient dd {
    margin-top: 11px;
}

.comment-block {
    position: absolute;
    left: 24px;
    width: 448px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.comment-block dt {
    position: absolute;
    left: 0;
    top: 0;
}

.comment-block dd {
    position: absolute;
    left: 0;
    top: 29px;
}

.merchant-comment {
    top: 732px;
}

.admin-comment {
    top: 804px;
}

.cashout-history {
    position: absolute;
    left: 32px;
    top: 1073px;
    width: 448px;
    height: 290px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.cashout-history h2 {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-item {
    position: absolute;
    left: 0;
    width: 448px;
    padding: 0;
}

.history-item.first {
    top: 49px;
    height: 107px;
}

.history-item.second {
    top: 175px;
    height: 130px;
}

.history-icon {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 18px;
    background: #fff;
}

.history-icon img {
    width: 14px;
    height: 14px;
    display: block;
}

.history-line {
    position: absolute;
    left: 23px;
    top: 48px;
    width: 2px;
    height: 78px;
    background: #00d512;
}

.history-item h3 {
    position: absolute;
    left: 64px;
    top: 0;
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.3px;
}

.history-item p {
    position: absolute;
    left: 64px;
    margin: 0;
}

.history-item p:nth-of-type(1) {
    top: 31px;
}

.history-item p:nth-of-type(2) {
    top: 55px;
}

.history-item p:nth-of-type(3) {
    top: 79px;
}

.cashout-admin-block {
    position: absolute;
    left: 8px;
    top: 1402px;
    width: 496px;
    margin: 0 0 24px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
}

.cashout-admin-block h2 {
    margin: 0 0 18px;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 500;
}

.cashout-admin-block .filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cashout-admin-block .field {
    display: grid;
    gap: 7px;
}

.cashout-admin-block .field-span-2 {
    grid-column: 1 / -1;
}

.cashout-admin-block input,
.cashout-admin-block select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(46, 74, 105, .13);
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

.cashout-admin-block .filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cashout-admin-block .primary-btn,
.cashout-admin-block .ghost-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
}

.cashout-admin-block .primary-btn {
    border: 0;
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(236, 10, 70, .25);
}

.cashout-admin-block .ghost-btn {
    border: 1px solid rgba(46, 74, 105, .14);
    background: #fff;
    color: #1d1d1d;
}

/* Settlement detail follows the same viewport and scroll contract as cashout detail. */
.settlements-runtime-page .settlement-detail-panel {
    position: fixed;
    inset: 24px 24px 24px auto;
    z-index: 1;
    display: block;
    width: min(512px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100dvh - 48px);
    max-height: calc(100svh - 48px);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 32px;
    background: #f0f4f8;
    box-shadow: 0 24px 90px rgba(0, 8, 33, .22);
}

.settlements-runtime-page .settlement-detail-flow {
    position: relative;
    min-height: 1150px;
}

.settlements-runtime-page .settlement-detail-flow.is-admin {
    min-height: 1900px;
}

.settlements-runtime-page .settlement-detail-panel .detail-outer {
    inset: 0;
    width: auto;
    height: auto;
    min-height: 100%;
}

.settlements-runtime-page .settlement-detail-panel .detail-inner {
    left: 8px;
    right: 8px;
    width: auto;
    height: calc(100% - 140px);
    min-height: 1010px;
}

.settlements-runtime-page .settlement-detail-panel .detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    margin-left: 0;
}

@media (max-width: 560px) {
    .settlements-runtime-page .settlement-detail-panel {
        inset: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        max-height: calc(100svh - 24px);
        padding: 72px 16px 20px;
    }

    .settlements-runtime-page .settlement-detail-flow,
    .settlements-runtime-page .settlement-detail-flow.is-admin {
        display: grid;
        min-height: 0;
        gap: 18px;
    }

    .settlements-runtime-page .settlement-detail-panel .detail-outer,
    .settlements-runtime-page .settlement-detail-panel .detail-inner {
        display: none;
    }

    .settlements-runtime-page .settlement-detail-panel h2,
    .settlements-runtime-page .settlement-detail-panel .detail-status,
    .settlements-runtime-page .settlement-detail-panel .confirm-status,
    .settlements-runtime-page .settlement-detail-panel .merchant-card,
    .settlements-runtime-page .settlement-detail-panel .detail-fields,
    .settlements-runtime-page .settlement-detail-panel .detail-field,
    .settlements-runtime-page .settlement-detail-panel .sum-box,
    .settlements-runtime-page .settlement-detail-panel .detail-comment,
    .settlements-runtime-page .settlement-detail-panel .confirm-line,
    .settlements-runtime-page .settlement-admin-panel {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        min-height: 0;
        margin: 0;
    }

    .settlements-runtime-page .settlement-detail-panel h2 {
        padding-right: 48px;
        font-size: 22px;
        line-height: 1.1;
    }

    .settlements-runtime-page .settlement-detail-panel .detail-status,
    .settlements-runtime-page .settlement-detail-panel .confirm-status {
        justify-self: start;
    }

    .settlements-runtime-page .settlement-detail-panel .merchant-card,
    .settlements-runtime-page .settlement-detail-panel .sum-box,
    .settlements-runtime-page .settlement-admin-panel {
        padding: 20px;
        border-radius: 20px;
        background: #fff;
    }

    .settlements-runtime-page .settlement-detail-panel .merchant-card {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 12px;
    }

    .settlements-runtime-page .settlement-detail-panel .merchant-icon,
    .settlements-runtime-page .settlement-detail-panel .merchant-label,
    .settlements-runtime-page .settlement-detail-panel .merchant-name {
        position: static;
        margin: 0;
    }

    .settlements-runtime-page .settlement-detail-panel .merchant-icon { grid-row: 1 / span 2; }
    .settlements-runtime-page .settlement-detail-panel .merchant-name { white-space: normal; }

    .settlements-runtime-page .settlement-detail-panel .detail-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .settlements-runtime-page .settlement-detail-panel .detail-field.created,
    .settlements-runtime-page .settlement-detail-panel .sum-box,
    .settlements-runtime-page .settlement-detail-panel .detail-comment,
    .settlements-runtime-page .settlement-detail-panel .confirm-line,
    .settlements-runtime-page .settlement-admin-panel {
        grid-column: 1 / -1;
    }

    .settlements-runtime-page .settlement-detail-panel .sum-box {
        display: grid;
        gap: 18px;
    }

    .settlements-runtime-page .settlement-detail-panel .sum-row,
    .settlements-runtime-page .settlement-detail-panel .token-icon,
    .settlements-runtime-page .settlement-detail-panel .sum-copy,
    .settlements-runtime-page .settlement-detail-panel .network-copy,
    .settlements-runtime-page .settlement-detail-panel .copy-row,
    .settlements-runtime-page .settlement-detail-panel .copy-row-bg,
    .settlements-runtime-page .settlement-detail-panel .copy-label,
    .settlements-runtime-page .settlement-detail-panel .copy-address-bg,
    .settlements-runtime-page .settlement-detail-panel .commission-field {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
    }

    .settlements-runtime-page .settlement-detail-panel .sum-row,
    .settlements-runtime-page .settlement-detail-panel .copy-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .settlements-runtime-page .settlement-detail-panel .sum-copy,
    .settlements-runtime-page .settlement-detail-panel .network-copy,
    .settlements-runtime-page .settlement-detail-panel .commission-field {
        display: grid;
        gap: 4px;
    }

    .settlements-runtime-page .settlement-detail-panel .copy-row code {
        position: static;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .settlements-runtime-page .settlement-detail-panel .copy-row button {
        position: static;
        width: 36px;
        height: 36px;
    }

    .settlements-runtime-page .settlement-detail-panel .detail-comment img,
    .settlements-runtime-page .settlement-detail-panel .detail-comment span,
    .settlements-runtime-page .settlement-detail-panel .detail-comment strong {
        position: static;
        margin: 0;
    }

    .settlements-runtime-page .settlement-detail-panel .detail-comment {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px 12px;
    }

    .settlements-runtime-page .settlement-detail-panel .detail-comment img { grid-row: 1 / span 2; }
    .settlements-runtime-page .settlement-detail-panel .settlement-admin-grid { grid-template-columns: minmax(0, 1fr); }
    .settlements-runtime-page .settlement-detail-panel .settlement-admin-grid label.wide { grid-column: auto; }
}

/* Cashout detail: reference drawer geometry with viewport-safe overlay. */
.cashouts-runtime-page .cashout-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    isolation: isolate;
}

.cashouts-runtime-page .cashout-backdrop {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    z-index: 10000;
    background: rgba(11, 18, 30, .28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.cashouts-runtime-page .cashout-drawer {
    position: fixed;
    inset: 24px 24px 24px auto;
    z-index: 10010;
    display: grid;
    width: min(512px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100dvh - 48px);
    max-height: calc(100svh - 48px);
    padding: 30px 8px 24px;
    align-content: start;
    gap: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 32px;
    background: #f0f4f8;
    color: #1d1d1d;
    box-shadow: 0 24px 90px rgba(0, 8, 33, .22);
    pointer-events: auto;
}

.cashouts-runtime-page .cashout-close {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 4;
    width: 44px;
    height: 44px;
}

.cashouts-runtime-page .cashout-heading,
.cashouts-runtime-page .cashout-status-row,
.cashouts-runtime-page .cashout-main-card,
.cashouts-runtime-page .cashout-history,
.cashouts-runtime-page .cashout-admin-block {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
}

.cashouts-runtime-page .cashout-heading {
    width: min(300px, calc(100% - 80px));
    min-height: 63px;
    margin: 0 0 0 24px;
}

.cashouts-runtime-page .cashout-heading p {
    position: static;
    margin-top: 13px;
}

.cashouts-runtime-page .cashout-status-row {
    display: flex;
    width: auto;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    margin-left: 24px;
}

.cashouts-runtime-page .cashout-status {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    min-width: 80px;
    padding: 2px 10px 3px;
}

.cashouts-runtime-page .cashout-status.paid {
    width: auto;
    min-width: 100px;
}

.cashouts-runtime-page .cashout-status.new,
.cashouts-runtime-page .cashout-status.declined {
    width: auto;
    min-width: 112px;
}

.cashouts-runtime-page .cashout-status.merchant {
    width: auto;
    min-width: 80px;
}

.cashouts-runtime-page .cashout-main-card {
    display: grid;
    width: 496px;
    max-width: 100%;
    min-height: 900px;
    margin: 0 auto;
    padding: 24px;
    gap: 18px;
    border-radius: 24px;
    background: #fff;
}

.cashouts-runtime-page .merchant-summary {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: 126px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashouts-runtime-page .merchant-summary h2 {
    max-width: calc(100% - 48px);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
}

.cashouts-runtime-page .cashout-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px 32px;
    margin: 0;
}

.cashouts-runtime-page .cashout-fields div,
.cashouts-runtime-page .field-created,
.cashouts-runtime-page .field-currency,
.cashouts-runtime-page .field-reference {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    min-width: 0;
}

.cashouts-runtime-page .field-created {
    grid-column: 1 / -1;
}

.cashouts-runtime-page .field-created dd,
.cashouts-runtime-page .field-currency dd,
.cashouts-runtime-page .field-reference dd {
    margin-top: 12px;
}

.cashouts-runtime-page .cashout-amount-card {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-height: 308px;
    height: auto;
    margin: 0;
    padding: 23px 18px 26px;
    column-gap: 28px;
    row-gap: 22px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashouts-runtime-page .cashout-amount-card .amount-label,
.cashouts-runtime-page .cashout-amount-card strong,
.cashouts-runtime-page .cashout-amount-card .commission,
.cashouts-runtime-page .payout-method,
.cashouts-runtime-page .payout-requisites,
.cashouts-runtime-page .payout-recipient {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    min-width: 0;
}

.cashouts-runtime-page .cashout-amount-card .amount-label,
.cashouts-runtime-page .cashout-amount-card strong,
.cashouts-runtime-page .cashout-amount-card .commission {
    grid-column: 1 / -1;
}

.cashouts-runtime-page .cashout-amount-card strong {
    margin: 0;
    line-height: 1;
}

.cashouts-runtime-page .cashout-amount-card .commission {
    margin: 0;
}

.cashouts-runtime-page .payout-card-icon {
    display: none;
}

.cashouts-runtime-page .payout-method dd,
.cashouts-runtime-page .payout-requisites dd,
.cashouts-runtime-page .payout-recipient dd {
    margin-top: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cashouts-runtime-page .payout-recipient {
    grid-column: 1 / -1;
}

.cashouts-runtime-page .comment-block {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    display: grid;
    width: 100%;
    min-height: 78px;
    padding: 18px 20px;
    gap: 10px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 20px;
    background: #fff;
}

.cashouts-runtime-page .comment-block dt,
.cashouts-runtime-page .comment-block dd {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
}

.cashouts-runtime-page .comment-block dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.cashouts-runtime-page .cashout-history {
    width: 448px;
    max-width: calc(100% - 48px);
    margin: 8px auto 0;
}

.cashouts-runtime-page .cashout-history h2,
.cashouts-runtime-page .history-item,
.cashouts-runtime-page .history-item h3,
.cashouts-runtime-page .history-item p {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
}

.cashouts-runtime-page .cashout-history h2 {
    margin: 0 0 26px;
}

.cashouts-runtime-page .history-item {
    display: grid;
    min-height: 116px;
    width: 100%;
    padding-left: 64px;
}

.cashouts-runtime-page .history-item + .history-item {
    margin-top: 20px;
}

.cashouts-runtime-page .history-icon {
    left: 0;
    top: 0;
}

.cashouts-runtime-page .history-line {
    left: 23px;
    top: 48px;
}

.cashouts-runtime-page .history-item h3 {
    margin: 0 0 12px;
}

.cashouts-runtime-page .history-item p {
    margin: 0 0 7px;
}

.cashouts-runtime-page .cashout-admin-block {
    width: 496px;
    max-width: 100%;
    margin: 0 auto;
}

.cashout-overlay .cashout-heading,
.cashout-overlay .cashout-status-row,
.cashout-overlay .cashout-main-card,
.cashout-overlay .cashout-history,
.cashout-overlay .cashout-admin-block {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
}

.cashout-overlay .cashout-heading {
    width: min(300px, calc(100% - 80px));
    min-height: 63px;
    margin: 0 0 0 24px;
}

.cashout-overlay .cashout-heading p {
    position: static;
    margin-top: 13px;
}

.cashout-overlay .cashout-status-row {
    display: flex;
    width: auto;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    margin-left: 24px;
}

.cashout-overlay .cashout-status {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    min-width: 80px;
    padding: 2px 10px 3px;
}

.cashout-overlay .cashout-status.paid {
    width: auto;
    min-width: 100px;
}

.cashout-overlay .cashout-status.new,
.cashout-overlay .cashout-status.declined {
    width: auto;
    min-width: 112px;
}

.cashout-overlay .cashout-status.merchant {
    width: auto;
    min-width: 80px;
}

.cashout-overlay .cashout-main-card {
    display: grid;
    width: 496px;
    max-width: 100%;
    min-height: 900px;
    margin: 0 auto;
    padding: 24px;
    gap: 18px;
    border-radius: 24px;
    background: #fff;
}

.cashout-overlay .merchant-summary {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: 126px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashout-overlay .merchant-summary h2 {
    max-width: calc(100% - 48px);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
}

.cashout-overlay .cashout-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px 32px;
    margin: 0;
}

.cashout-overlay .cashout-fields div,
.cashout-overlay .field-created,
.cashout-overlay .field-currency,
.cashout-overlay .field-reference {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    min-width: 0;
}

.cashout-overlay .field-created {
    grid-column: 1 / -1;
}

.cashout-overlay .field-created dd,
.cashout-overlay .field-currency dd,
.cashout-overlay .field-reference dd {
    margin-top: 12px;
}

.cashout-overlay .cashout-amount-card {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-height: 308px;
    height: auto;
    margin: 0;
    padding: 23px 18px 26px;
    column-gap: 28px;
    row-gap: 22px;
    border-radius: 20px;
    background: #f0f4f8;
}

.cashout-overlay .cashout-amount-card .amount-label,
.cashout-overlay .cashout-amount-card strong,
.cashout-overlay .cashout-amount-card .commission,
.cashout-overlay .payout-method,
.cashout-overlay .payout-requisites,
.cashout-overlay .payout-recipient {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    min-width: 0;
}

.cashout-overlay .cashout-amount-card .amount-label,
.cashout-overlay .cashout-amount-card strong,
.cashout-overlay .cashout-amount-card .commission {
    grid-column: 1 / -1;
}

.cashout-overlay .cashout-amount-card strong {
    margin: 0;
    line-height: 1;
}

.cashout-overlay .cashout-amount-card .commission {
    margin: 0;
}

.cashout-overlay .payout-card-icon {
    display: none;
}

.cashout-overlay .payout-method dd,
.cashout-overlay .payout-requisites dd,
.cashout-overlay .payout-recipient dd {
    margin-top: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cashout-overlay .payout-recipient {
    grid-column: 1 / -1;
}

.cashout-overlay .comment-block {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    display: grid;
    width: 100%;
    min-height: 78px;
    padding: 18px 20px;
    gap: 10px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 20px;
    background: #fff;
}

.cashout-overlay .comment-block dt,
.cashout-overlay .comment-block dd {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
}

.cashout-overlay .comment-block dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.cashout-overlay .cashout-history {
    width: 448px;
    max-width: calc(100% - 48px);
    margin: 8px auto 0;
}

.cashout-overlay .cashout-history h2,
.cashout-overlay .history-item,
.cashout-overlay .history-item h3,
.cashout-overlay .history-item p {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
}

.cashout-overlay .cashout-history h2 {
    margin: 0 0 26px;
}

.cashout-overlay .history-item {
    display: grid;
    min-height: 116px;
    width: 100%;
    padding-left: 64px;
}

.cashout-overlay .history-item + .history-item {
    margin-top: 20px;
}

.cashout-overlay .history-icon {
    left: 0;
    top: 0;
}

.cashout-overlay .history-line {
    left: 23px;
    top: 48px;
}

.cashout-overlay .history-item h3 {
    margin: 0 0 12px;
}

.cashout-overlay .history-item p {
    margin: 0 0 7px;
}

.cashout-overlay .cashout-admin-block {
    position: relative;
    width: 496px;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 1180px) {
    .figma-frame:has(.cashouts-runtime-page) {
        --cashouts-content-left: 320px;
        --cashouts-content-right: 24px;
    }

    .fiat-card-grid {
        grid-template-columns: repeat(2, 264px);
        width: 536px;
    }

    .cashouts-empty {
        width: 536px;
    }
}

/* Recurring / subscriptions PayHot runtime */
.figma-frame:has(.recurring-runtime-page) {
    --admin-content-left: 392px;
    --admin-content-right: 72px;
    --admin-content-width: calc(100% - var(--admin-content-left) - var(--admin-content-right));
    width: min(1440px, 100%);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    transform: none;
    background: #f0f4f8;
}

body:has(.recurring-runtime-page) {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background: #f0f4f8;
}

.figma-frame:has(.recurring-runtime-page) .cabinet-shell-underlay {
    position: relative;
    inset: auto;
    display: flow-root;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: visible;
    background: #f0f4f8;
}

.figma-frame:has(.recurring-runtime-page) .topbar {
    width: 100%;
    max-width: 100%;
}

.figma-frame:has(.recurring-runtime-page) .page-footer {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    width: calc(100% - 16px);
    max-width: 1424px;
    min-width: 0;
    height: 221px;
    margin: 72px 8px 0;
    background: transparent;
}

.recurring-runtime-page,
.recurring-runtime-page * {
    box-sizing: border-box;
}

.recurring-runtime-page {
    position: relative;
    z-index: 2;
    width: min(1080px, var(--admin-content-width));
    min-height: max(calc(100vh - 398px), 0px);
    min-height: max(calc(100svh - 398px), 0px);
    min-height: max(calc(100dvh - 398px), 0px);
    margin-left: var(--admin-content-left);
    margin-right: var(--admin-content-right);
    padding: 118px 0 48px;
    color: #1d1d1d;
    font-family: var(--font-ui);
}

.recurring-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.recurring-title-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.recurring-title-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 11px;
    background: rgba(103, 118, 140, .13);
    color: #67768c;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
}

.recurring-title h1 {
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 500;
    line-height: 1.05;
}

.recurring-title p {
    margin: 10px 0 0;
    color: #67768c;
    font-size: 16px;
    font-weight: 500;
}

.recurring-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.recurring-action,
.recurring-primary,
.recurring-ghost,
.recurring-danger {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 0 18px;
    border: 1px solid rgba(46, 74, 105, .12);
    background: #fff;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(46, 74, 105, .08);
}

.recurring-primary {
    border: 0;
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
    color: #fff;
    box-shadow: 0 20px 42px rgba(236, 10, 70, .28);
}

.recurring-danger {
    border-color: rgba(253, 34, 38, .16);
    color: #fd2226;
}

.recurring-action:disabled,
.recurring-primary:disabled,
.recurring-ghost:disabled,
.recurring-danger:disabled {
    cursor: default;
    opacity: .55;
    box-shadow: none;
}

.recurring-toast-region {
    position: fixed;
    z-index: 1400;
    top: 92px;
    right: 72px;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.recurring-toast {
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 15px 18px;
    border-radius: 18px;
    background: rgba(29, 29, 29, .88);
    color: #fff;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 22px 54px rgba(20, 28, 40, .22);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.recurring-toast.error {
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.recurring-stat {
    display: flex;
    min-width: 0;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 22px 58px rgba(46, 74, 105, .08);
}

.recurring-stat-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    background: #ffecef;
    color: #fd2226;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
}

.recurring-stat span {
    display: block;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.recurring-stat strong {
    display: block;
    margin-top: 3px;
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 26px;
    font-weight: 700;
}

.recurring-section {
    margin-top: 26px;
}

.recurring-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.recurring-section-head h2 {
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 500;
}

.recurring-section-head p {
    margin: 6px 0 0;
    color: #67768c;
    font-size: 15px;
    font-weight: 500;
}

.recurring-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.recurring-plan-card,
.recurring-subscription-card,
.recurring-empty,
.recurring-drawer-card,
.recurring-form-card,
.recurring-link-card {
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 24px 60px rgba(46, 74, 105, .09);
}

.recurring-plan-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 20px;
}

.recurring-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.recurring-plan-card h3,
.recurring-subscription-card h3 {
    min-width: 0;
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.recurring-card-icon,
.recurring-subscription-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    background: #f0f4f8;
    color: #67768c;
    font-family: var(--font-title);
    font-weight: 800;
}

.recurring-amount {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 34px;
    font-weight: 700;
}

.recurring-amount span {
    color: #67768c;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
}

.recurring-meta-grid,
.recurring-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.recurring-meta {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f0f4f8;
}

.recurring-meta span {
    display: block;
    margin-bottom: 4px;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.recurring-meta strong,
.recurring-meta code {
    display: block;
    min-width: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.recurring-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recurring-chip,
.recurring-status {
    display: inline-flex;
    max-width: 100%;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 0 11px;
    background: #eef3f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.recurring-status.is-green,
.recurring-chip.is-live {
    background: #d9f8df;
    color: #00a813;
}

.recurring-status.is-blue {
    background: #e8f1ff;
    color: #2276fd;
}

.recurring-status.is-yellow {
    background: #fff3d7;
    color: #bc7a00;
}

.recurring-status.is-red {
    background: #ffe4e8;
    color: #fd2226;
}

.recurring-status.is-gray,
.recurring-chip.is-sandbox {
    background: #eef3f8;
    color: #67768c;
}

.recurring-plan-warning {
    padding: 12px 14px;
    border: 1px solid rgba(253, 34, 38, .12);
    border-radius: 16px;
    background: #fff4f6;
    color: #fd2226;
    font-size: 13px;
    font-weight: 700;
}

.recurring-subscription-list {
    display: grid;
    gap: 14px;
}

.recurring-subscription-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.recurring-subscription-id {
    margin-top: 7px;
    color: #67768c;
    font-family: var(--font-number);
    font-size: 14px;
    font-weight: 700;
}

.recurring-subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.recurring-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.recurring-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    padding: 44px;
    text-align: center;
}

.recurring-empty-icon {
    display: inline-grid;
    width: 86px;
    height: 86px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 28px;
    background: #f0f4f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 34px;
    font-weight: 800;
}

.recurring-empty h3 {
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
}

.recurring-empty p {
    margin: 9px 0 0;
    color: #67768c;
    font-size: 15px;
    font-weight: 500;
}

.recurring-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(18, 28, 40, .38);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.recurring-drawer,
.recurring-form-drawer,
.recurring-created-modal {
    position: fixed;
    z-index: 1201;
    top: 24px;
    right: 24px;
    bottom: 24px;
    width: min(560px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 36px;
    background: #f0f4f8;
    box-shadow: 0 34px 90px rgba(20, 28, 40, .22);
}

.recurring-created-modal {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(520px, calc(100vw - 48px));
    transform: translate(-50%, -50%);
}

.recurring-drawer-scroll,
.recurring-form-scroll {
    min-height: 0;
    overflow: auto;
    padding: 32px;
}

.recurring-drawer-head,
.recurring-form-head,
.recurring-created-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.recurring-drawer-head h2,
.recurring-form-head h2,
.recurring-created-head h2 {
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.05;
}

.recurring-drawer-head p,
.recurring-form-head p,
.recurring-created-head p {
    margin: 8px 0 0;
    color: #67768c;
    font-size: 15px;
    font-weight: 600;
}

.recurring-close {
    display: inline-grid;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #1d1d1d;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(46, 74, 105, .12);
}

.recurring-drawer-card,
.recurring-form-card,
.recurring-link-card {
    padding: 22px;
    margin-bottom: 16px;
}

.recurring-drawer-card h3,
.recurring-form-card h3,
.recurring-link-card h3,
.recurring-attempts h3 {
    margin: 0 0 14px;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
}

.recurring-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.recurring-detail-item {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    background: #f0f4f8;
}

.recurring-detail-item span {
    display: block;
    margin-bottom: 6px;
    color: #67768c;
    font-size: 13px;
    font-weight: 700;
}

.recurring-detail-item strong,
.recurring-detail-item code {
    display: block;
    min-width: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.recurring-link-value {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 14px;
    border-radius: 16px;
    background: #f0f4f8;
    color: #1d1d1d;
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.recurring-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.recurring-attempts {
    display: grid;
    gap: 10px;
}

.recurring-attempt-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 18px;
    background: #fff;
}

.recurring-attempt-dot {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 999px;
    background: #a8b3c2;
    box-shadow: 0 0 0 6px #eef3f8;
}

.recurring-attempt-dot.is-green {
    background: #00d512;
}

.recurring-attempt-dot.is-red {
    background: #fd2226;
}

.recurring-attempt-dot.is-yellow {
    background: #ffb020;
}

.recurring-attempt-card strong {
    display: block;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
}

.recurring-attempt-card span {
    display: block;
    margin-top: 4px;
    color: #67768c;
    font-size: 13px;
    font-weight: 600;
}

.recurring-attempt-card code {
    color: #67768c;
    font-family: var(--font-code);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.recurring-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.recurring-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.recurring-field-full {
    grid-column: 1 / -1;
}

.recurring-field span {
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
}

.recurring-field input,
.recurring-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 16px;
    background: #fff;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.recurring-field input:focus,
.recurring-field select:focus {
    border-color: rgba(253, 34, 38, .42);
    box-shadow: 0 0 0 4px rgba(253, 34, 38, .08);
}

.recurring-field input[type="number"]::-webkit-outer-spin-button,
.recurring-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.recurring-field input[type="number"] {
    -moz-appearance: textfield;
}

/* Recurring creation drawers use viewport-positioned dropdown menus. */
.recurring-form-drawer .recurring-modal-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.recurring-form-drawer .recurring-modal-dropdown .payhot-dropdown-button {
    min-height: 50px;
    border-color: rgba(46, 74, 105, .12);
    border-radius: 16px;
    background: #fff;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
}

.recurring-form-drawer .recurring-field:has(.recurring-modal-dropdown.is-open) {
    position: relative;
    z-index: 4;
}

.recurring-form-drawer .recurring-modal-dropdown .payhot-dropdown-menu.is-portal {
    z-index: var(--payhot-dropdown-layer, calc(var(--payhot-modal-panel-z, 2147483010) + 10));
}

.recurring-form-drawer .recurring-modal-dropdown .payhot-dropdown-dismiss.is-portal {
    z-index: var(--payhot-dropdown-dismiss-layer, calc(var(--payhot-modal-panel-z, 2147483010) + 9));
}

.recurring-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.recurring-created-body {
    padding: 32px;
}

.recurring-created-icon {
    display: inline-grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 22px;
    background: #d9f8df;
    color: #00a813;
    font-size: 30px;
    font-weight: 900;
}

.recurring-generated-link {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 14px;
    border-radius: 18px;
    background: #f0f4f8;
    color: #1d1d1d;
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .figma-frame:has(.recurring-runtime-page) {
        --admin-content-left: 320px;
        --admin-content-right: 24px;
    }

    .recurring-runtime-page {
        width: min(1000px, var(--admin-content-width));
    }
}

@media (max-width: 980px) {
    .recurring-runtime-page {
        width: calc(100% - 32px);
        margin: 0 16px;
        padding-top: 104px;
    }

    .recurring-title,
    .recurring-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .recurring-toolbar {
        justify-content: flex-start;
    }

    .recurring-plan-grid,
    .recurring-subscription-card,
    .recurring-subscription-grid {
        grid-template-columns: 1fr;
    }

    .recurring-card-actions {
        justify-content: flex-start;
    }

    .recurring-drawer,
    .recurring-form-drawer {
        left: 16px;
        right: 16px;
        width: auto;
    }
}

/* Recurring actual Blazor markup bindings */
.recurring-title-copy {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-width: 0;
    align-items: start;
    gap: 12px;
    min-height: 58px;
}

.recurring-title-copy img {
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.recurring-title-copy h1 {
    margin: 0;
    color: #000;
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 500;
    line-height: 28.8px;
    letter-spacing: 0;
}

.recurring-title-copy p {
    margin: 10px 0 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0;
}

.recurring-action-primary {
    border: 0;
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
    color: #fff;
    box-shadow: 0 20px 42px rgba(2, 10, 70, .28);
}

.recurring-toast-error {
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.recurring-toast-success {
    background: rgba(29, 29, 29, .88);
}

.recurring-section-head > span {
    display: inline-grid;
    min-width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    background: #eef3f8;
    color: #67768c;
    font-family: var(--font-number);
    font-size: 18px;
    font-weight: 800;
}

.plan-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    background: #f0f4f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
}

.plan-amount {
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 11px;
    background: #eef3f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 800;
}

.plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(46, 74, 105, .08);
}

.plan-footer small,
.plan-footer b {
    min-width: 0;
    color: #67768c;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.plan-footer b {
    color: #1d1d1d;
}

.subscription-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.subscription-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 17px;
    background: #f0f4f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 900;
}

.status-active .subscription-icon {
    background: #d9f8df;
    color: #00a813;
}

.status-pending .subscription-icon {
    background: #e8f1ff;
    color: #2276fd;
}

.status-danger .subscription-icon {
    background: #ffe4e8;
    color: #fd2226;
}

.subscription-title-block {
    min-width: 0;
}

.subscription-title-block span {
    color: #67768c;
    font-family: var(--font-number);
    font-size: 13px;
    font-weight: 700;
}

.subscription-title-block p {
    margin: 5px 0 0;
    color: #67768c;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.subscription-status {
    display: grid;
    justify-items: start;
    gap: 7px;
    min-width: 0;
}

.subscription-status small {
    color: #67768c;
    font-size: 12px;
    font-weight: 700;
}

.subscription-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.subscription-data span {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f0f4f8;
}

.subscription-data small {
    display: block;
    margin-bottom: 4px;
    color: #67768c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.subscription-data b {
    display: block;
    min-width: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.recurring-icon-action,
.recurring-text-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(46, 74, 105, .12);
    border-radius: 15px;
    background: #fff;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(46, 74, 105, .08);
}

.recurring-icon-action {
    width: 42px;
    padding: 0;
    font-size: 18px;
}

.recurring-text-action {
    padding: 0 12px;
}

.recurring-danger-action {
    color: #fd2226;
}

.chip-success {
    background: #d9f8df;
    color: #00a813;
}

.chip-warning {
    background: #fff3d7;
    color: #bc7a00;
}

.chip-danger {
    background: #ffe4e8;
    color: #fd2226;
}

.chip-muted,
.chip-neutral {
    background: #eef3f8;
    color: #67768c;
}

.recurring-drawer {
    padding: 32px;
    overflow: auto;
}

.recurring-form-drawer,
.recurring-result-drawer {
    gap: 18px;
}

.recurring-drawer-head {
    flex: 0 0 auto;
}

.recurring-drawer-head > div > span {
    display: block;
    margin-bottom: 8px;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.recurring-drawer-status {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.recurring-drawer-status > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #eef3f8;
    color: #67768c;
    font-weight: 900;
}

.recurring-drawer-status.status-active > span {
    background: #00d512;
    color: #fff;
}

.recurring-drawer-status.status-danger > span {
    background: #fd2226;
    color: #fff;
}

.recurring-drawer-status.status-pending > span {
    background: #2276fd;
    color: #fff;
}

.recurring-drawer-status small {
    color: #1d1d1d;
    font-size: 13px;
    font-weight: 600;
}

.recurring-drawer-status strong {
    display: block;
    margin-top: 4px;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
}

.recurring-detail-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
}

.recurring-detail-card div {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: #f0f4f8;
}

.recurring-detail-card small,
.recurring-attempt-card small {
    display: block;
    margin-bottom: 5px;
    color: #67768c;
    font-size: 12px;
    font-weight: 800;
}

.recurring-detail-card strong,
.recurring-attempt-card b {
    display: block;
    min-width: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.recurring-link-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.recurring-link-head > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    background: #eef3f8;
    color: #67768c;
    font-weight: 800;
}

.recurring-link-head p,
.recurring-note {
    color: #67768c;
    font-size: 13px;
    font-weight: 600;
}

.recurring-note {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #eef3f8;
}

.recurring-copy-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.recurring-copy-line input {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 14px;
    background: #f0f4f8;
    color: #1d1d1d;
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 700;
}

.recurring-copy-line button,
.recurring-copy-line a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 0 12px;
    background: #1d1d1d;
    color: #fff;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.recurring-wide-action {
    width: 100%;
}

.recurring-attempt-card {
    grid-template-columns: 24px minmax(0, 1.2fr) repeat(3, minmax(0, .7fr));
}

.attempt-marker {
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 999px;
    background: #a8b3c2;
    box-shadow: 0 0 0 6px #eef3f8;
}

.attempt-success .attempt-marker {
    background: #00d512;
}

.attempt-warning .attempt-marker {
    background: #ffb020;
}

.attempt-danger .attempt-marker {
    background: #fd2226;
}

.recurring-attempt-card p {
    grid-column: 2 / -1;
    margin: 0;
    color: #fd2226;
    font-size: 13px;
    font-weight: 700;
}

.recurring-empty.compact {
    min-height: 92px;
    padding: 22px;
}

.recurring-drawer-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.recurring-result-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
}

.result-icon {
    display: inline-grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 22px;
    background: #d9f8df;
    color: #00a813;
    font-size: 30px;
    font-weight: 900;
}

.recurring-result-card h3 {
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
}

.recurring-result-card p {
    margin: 0;
    color: #67768c;
    font-size: 14px;
    font-weight: 600;
}

/* Recurring v2: payment-links inspired cards and plan-scoped subscriptions */
.recurring-runtime-page {
    width: min(1080px, var(--admin-content-width));
    min-height: max(calc(100vh - 398px), 0px);
    min-height: max(calc(100svh - 398px), 0px);
    min-height: max(calc(100dvh - 398px), 0px);
    padding-bottom: 48px;
}

.recurring-runtime-page.is-plan-list {
    --recurring-card-width: 328px;
}

.recurring-title-image {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    opacity: .72;
}

.recurring-plan-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, var(--recurring-card-width)));
    gap: 8px;
    align-items: start;
    justify-content: start;
    margin-top: 22px;
}

.recurring-more-button {
    width: 266px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto 0;
    padding: 17px 24px;
    border: 1px solid rgba(29, 29, 29, .18);
    border-radius: 12px;
    background: transparent;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.recurring-more-button:hover:not(:disabled) {
    border-color: rgba(253, 34, 38, .38);
    box-shadow: 0 18px 40px rgba(253, 34, 38, .12);
    transform: translateY(-1px);
}

.recurring-more-button:disabled {
    opacity: .45;
    cursor: default;
}

.recurring-plan-card.payment-link-card {
    position: relative;
    width: var(--recurring-card-width);
    height: 700px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 5.32px rgba(0, 8, 33, 0.03), 0 0 17.87px rgba(0, 8, 33, 0.04), 0 0 80px rgba(0, 8, 33, 0.07);
}

.recurring-plan-card .card-main {
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(100% - 8px);
    height: 204px;
    border-radius: 20px;
    background: #f0f4f8;
}

.recurring-plan-card.card-active .card-main {
    background: rgba(1, 213, 19, 0.1);
}

.recurring-plan-card.card-expired .card-main {
    background: #fff0f1;
}

.recurring-plan-card .card-link-icon,
.recurring-plan-card .recurring-card-symbol {
    position: absolute;
    left: 14px;
    top: 20px;
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
}

.recurring-plan-card .card-type {
    position: absolute;
    left: 14px;
    top: 62px;
    max-width: 132px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-plan-card.card-active .card-type,
.recurring-plan-card.card-active .amount,
.recurring-plan-card.card-active .amount-label {
    color: #00d512;
}

.recurring-plan-card.card-expired .card-type,
.recurring-plan-card.card-expired .amount,
.recurring-plan-card.card-expired .amount-label {
    color: #fd2226;
}

.recurring-plan-card .card-badge-row {
    position: absolute;
    left: 48px;
    right: 8px;
    top: 12px;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.recurring-plan-card .merchant-pill,
.recurring-plan-card .state-pill {
    height: 24px;
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 1px 8px 2px;
    border-radius: 128px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recurring-plan-card .merchant-pill {
    flex: 0 1 auto;
    max-width: calc(100% - 104px);
    color: #1d1d1d;
    background: #d5dbe3;
}

.recurring-plan-card.card-active .merchant-pill {
    color: #006008;
    background: rgba(0, 96, 8, .15);
}

.recurring-plan-card.card-expired .merchant-pill {
    color: #fd2226;
    background: #f8d4d6;
}

.recurring-plan-card .state-pill {
    flex: 0 0 auto;
    color: #fff;
}

.recurring-plan-card .state-paid {
    background: #00d512;
}

.recurring-plan-card .state-expired {
    background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.recurring-plan-card .card-main h2,
.recurring-plan-card .recurring-plan-main h2 {
    position: absolute;
    left: 14px;
    top: 86px;
    width: calc(100% - 28px);
    margin: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-plan-card .amount {
    position: absolute;
    left: 14px;
    top: 132px;
    max-width: calc(100% - 28px);
    font-family: var(--font-number);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-plan-card .amount span {
    font-size: 32px;
    line-height: 28.8px;
}

.recurring-plan-card .amount small {
    font-size: 16px;
    line-height: 14.4px;
}

.recurring-plan-card .amount-label {
    position: absolute;
    left: 14px;
    top: 169px;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
}

.recurring-card-details {
    position: absolute;
    left: 18px;
    top: 226px;
    width: calc(100% - 36px);
    height: 390px;
    margin: 0;
    display: block;
}

.recurring-card-details div,
.recurring-card-details dt,
.recurring-card-details dd {
    margin: 0;
}

.recurring-card-details div {
    position: absolute;
    min-width: 0;
}

.recurring-card-details div:nth-child(1) { left: 0; top: 0; }
.recurring-card-details div:nth-child(2) { left: 0; top: 78px; }
.recurring-card-details div:nth-child(3) { left: 0; top: 144px; width: 100%; }
.recurring-card-details div:nth-child(4) { left: 0; top: 210px; }
.recurring-card-details div:nth-child(5) { left: 125px; top: 210px; }
.recurring-card-details div:nth-child(6) { left: 0; top: 276px; }
.recurring-card-details div:nth-child(7) { left: 125px; top: 276px; }
.recurring-card-details div:nth-child(8) { left: 0; top: 342px; width: 100%; }

.recurring-card-details dt {
    margin-bottom: 8px;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
}

.recurring-card-details dd {
    max-width: 100%;
    color: #1d1d1d;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-card-details .method-pill {
    min-height: 38px;
    display: inline-flex;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 128px;
    padding: 0 16px;
    background: #e4e9ee;
    color: #1d1d1d;
    white-space: nowrap;
}

.recurring-plan-actions {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 20px;
    background: rgba(240, 244, 248, .92);
}

.recurring-plan-actions button {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(46, 74, 105, .08);
}

.recurring-plan-actions .delete-action {
    flex: 1 1 auto;
    width: auto;
    min-width: 136px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fd2226;
    font-size: 13px;
    font-weight: 700;
}

.recurring-plan-actions .delete-action img {
    width: 18px;
    height: 18px;
}

.recurring-plan-actions .delete-action:disabled {
    cursor: default;
    opacity: .48;
}

.recurring-plan-actions .ghost-action {
    margin-left: auto;
    color: #fd2226;
    background: #fff0f1;
}

.recurring-plan-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 28px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 22px 58px rgba(46, 74, 105, .08);
}

.recurring-summary-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.recurring-summary-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: #eef3f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 900;
}

.recurring-summary-main span {
    color: #67768c;
    font-family: var(--font-number);
    font-size: 13px;
    font-weight: 700;
}

.recurring-summary-main h2 {
    margin: 2px 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.recurring-summary-main p {
    margin: 0;
    color: #67768c;
    font-size: 14px;
    font-weight: 600;
}

.recurring-summary-amount {
    min-width: 180px;
    text-align: right;
}

.recurring-summary-amount strong {
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 34px;
    font-weight: 700;
}

.recurring-summary-amount span,
.recurring-summary-amount small {
    color: #67768c;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 800;
}

.recurring-subscription-groups {
    display: grid;
    gap: 16px;
}

.recurring-plan-subscriptions-card {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.recurring-plan-subscriptions-head {
    width: 100%;
}

.recurring-plan-heading {
    min-width: 0;
}

.recurring-plan-heading p {
    margin: 8px 0 0;
    color: #67768c;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-plan-head-pills {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.recurring-subscription-group {
    min-width: 0;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 22px 58px rgba(46, 74, 105, .08);
    overflow: hidden;
}

.recurring-group-toggle {
    width: 100%;
    min-height: 84px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px 54px;
    align-items: center;
    gap: 18px;
    border: 0;
    padding: 16px 20px;
    background: transparent;
    color: #1d1d1d;
    text-align: left;
    cursor: pointer;
}

.recurring-group-icon,
.recurring-group-toggle em,
.recurring-group-toggle b {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3f8;
    color: #67768c;
    font-family: var(--font-title);
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
}

.recurring-group-icon.is-green,
.recurring-group-toggle em {
    background: #00d512;
    color: #fff;
}

.recurring-group-icon.is-blue {
    background: #e8f1ff;
    color: #2276fd;
}

.recurring-group-icon.is-red {
    background: #ffe4e8;
    color: #fd2226;
}

.recurring-group-icon.is-gray {
    background: #eef3f8;
    color: #a8b3c2;
}

.recurring-group-toggle strong {
    min-width: 0;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.recurring-subscription-group .recurring-subscription-list {
    padding: 0 20px 20px;
}

.recurring-subscription-card {
    display: block;
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
}

.recurring-subscription-toggle {
    width: 100%;
    min-height: 92px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1.4fr) repeat(3, minmax(0, .9fr)) 42px;
    align-items: center;
    gap: 14px;
    border: 0;
    padding: 18px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.recurring-subscription-card.status-active .subscription-icon {
    background: #d9f8df;
    color: #00a813;
}

.recurring-subscription-card.status-pending .subscription-icon {
    background: #e8f1ff;
    color: #2276fd;
}

.recurring-subscription-card.status-danger .subscription-icon {
    background: #ffe4e8;
    color: #fd2226;
}

.recurring-subscription-toggle .subscription-title-block {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.recurring-subscription-toggle .subscription-title-block strong {
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-subscription-toggle .subscription-title-block small,
.recurring-subscription-toggle .subscription-title-block span,
.recurring-subscription-metrics small {
    color: #67768c;
    font-size: 12px;
    font-weight: 700;
}

.recurring-subscription-metrics {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.recurring-subscription-metrics b {
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-expand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    background: #eef3f8;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 900;
    transition: transform .18s ease;
}

.recurring-subscription-card:has(.recurring-subscription-toggle[aria-expanded="true"]) .recurring-expand-icon {
    transform: rotate(180deg);
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-card.status-cancelled .recurring-expand-icon.section-arrow {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 18px;
    background: #f0f4f8;
    color: #1d1d1d;
    transition: transform .18s ease;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-card.status-cancelled .recurring-subscription-toggle[aria-expanded="false"] .section-arrow {
    transform: rotate(-90deg);
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-card.status-cancelled .recurring-subscription-toggle[aria-expanded="true"] .section-arrow {
    transform: none;
}

.recurring-subscription-details {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    background: #fff;
}

.recurring-admin-block {
    padding: 18px;
    border: 1px solid rgba(46, 74, 105, .1);
    border-radius: 24px;
    background: #f7f9fb;
}

.recurring-admin-block h3 {
    margin: 0 0 14px;
    color: #1d1d1d;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
}

.recurring-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-plan-subscriptions-card {
    width: 100%;
    padding: 24px 4px 4px;
    overflow: hidden;
    border: 1px solid rgba(46, 74, 105, 0.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
    box-shadow: none;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-groups {
    gap: 4px;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-group {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 16px;
    align-items: start;
    width: calc(100% - 8px);
    min-height: 84px;
    margin: 0 4px;
    padding: 24px;
    border: 1px solid rgba(46, 74, 105, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: none;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-group.is-expanded {
    min-height: 163px;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-icon {
    width: 24px;
    height: 24px;
    margin-top: 6px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle {
    display: grid;
    grid-template-columns: max-content 36px 36px;
    gap: 10px;
    align-items: center;
    justify-content: start;
    width: max-content;
    max-width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle .section-count,
.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle .section-arrow {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: #f0f4f8;
    color: #1d1d1d;
    font-family: var(--font-number);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle .section-count-active {
    background: #00d512;
    color: #fff;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle .section-arrow {
    padding: 6px;
    transition: transform .18s ease;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-group-toggle .section-arrow,
.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-group.is-expanded .section-arrow {
    transform: none;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-group.is-collapsed .section-arrow {
    transform: rotate(-90deg);
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 0;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-card {
    border: 1px solid rgba(46, 74, 105, .08);
    border-radius: 20px;
    background: #f0f4f8;
}

.recurring-runtime-page.is-plan-subscriptions .recurring-subscription-toggle {
    min-height: 55px;
    padding: 8px;
    border-radius: 20px;
    background: transparent;
}

@media (max-width: 1480px) {
    .recurring-runtime-page.is-plan-list {
        --recurring-card-width: 300px;
    }

    .recurring-plan-cards {
        grid-template-columns: repeat(3, minmax(0, var(--recurring-card-width)));
    }
}

@media (max-width: 1280px) {
    .recurring-plan-cards {
        grid-template-columns: repeat(2, minmax(0, var(--recurring-card-width)));
    }

    .recurring-plan-summary,
    .recurring-subscription-toggle {
        grid-template-columns: 1fr;
    }

    .recurring-summary-amount {
        text-align: left;
    }
}

@media (max-width: 980px) {
    .recurring-plan-cards {
        grid-template-columns: 1fr;
    }

    .recurring-plan-card.payment-link-card {
        width: 100%;
    }

    .recurring-group-toggle {
        grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
    }

    .recurring-group-icon,
    .recurring-group-toggle em,
    .recurring-group-toggle b {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}
/* Disputes reference-style page */
.figma-frame:has(.disputes-runtime-page) {
  --disputes-content-left: 392px;
  --disputes-content-right: 72px;
  --disputes-content-width: calc(100% - var(--disputes-content-left) - var(--disputes-content-right));
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: none;
}

body:has(.disputes-runtime-page) {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.figma-frame:has(.disputes-runtime-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flow-root;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: visible;
}

.figma-frame:has(.disputes-runtime-page) .topbar {
  width: 100%;
  max-width: 100%;
}

.figma-frame:has(.disputes-runtime-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: calc(100% - 16px);
  max-width: 1424px;
  min-width: 0;
  height: 221px;
  margin: 72px 8px 0;
}

.disputes-runtime-page,
.disputes-runtime-page * {
  box-sizing: border-box;
}

.disputes-runtime-page {
  position: relative;
  z-index: 2;
  width: min(974px, var(--disputes-content-width));
  min-height: max(calc(100dvh - 398px), 900px);
  margin-left: var(--disputes-content-left);
  padding-top: 109px;
  padding-bottom: 96px;
  font-family: var(--font-ui);
}

.disputes-runtime-page .disputes-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title actions"
    "toast toast"
    "filters filters"
    "table table";
  column-gap: 12px;
  row-gap: 28px;
  min-width: 0;
}

.disputes-runtime-page .disputes-title {
  grid-area: title;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-height: 58px;
  min-width: 0;
}

.disputes-runtime-page .disputes-title img {
  width: 24px;
  height: 24px;
  margin-top: 3px;
  display: block;
}

.disputes-runtime-page .disputes-title h1 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: 0;
}

.disputes-runtime-page .disputes-title p {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.disputes-runtime-page .disputes-filter,
.disputes-runtime-page .disputes-chargeback {
  align-self: start;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.disputes-runtime-page .disputes-filter {
  grid-area: actions;
  min-width: 120px;
  gap: 6px;
  padding: 0 24px;
  outline: 1px solid rgba(29, 29, 29, 0.2);
  outline-offset: -1px;
  background: rgba(255, 255, 255, 0.68);
  color: #1d1d1d;
}

.disputes-runtime-page .disputes-filter img {
  width: 14px;
  height: 14px;
  display: block;
}

.disputes-runtime-page .disputes-filter small {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  font-size: 10px;
}

.disputes-runtime-page .disputes-chargeback {
  grid-area: actions;
  justify-self: end;
  min-width: 168px;
  gap: 8px;
  margin-left: 132px;
  padding: 0 17px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(236, 10, 70, 0.22);
}

.disputes-runtime-page .disputes-chargeback span {
  font-size: 18px;
  line-height: 1;
}

.disputes-runtime-page .disputes-toast {
  grid-area: toast;
  width: fit-content;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(0, 8, 33, 0.18);
}

.disputes-runtime-page .disputes-toast-danger {
  background: rgba(194, 10, 46, 0.92);
}

.disputes-runtime-page .disputes-toast-success {
  background: rgba(15, 126, 45, 0.9);
}

.disputes-runtime-page .disputes-filter-panel {
  grid-area: filters;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(103, 118, 140, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(0, 8, 33, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.disputes-runtime-page .disputes-filter-panel .filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.disputes-runtime-page .disputes-filter-panel .field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
}

.disputes-runtime-page .disputes-filter-panel input:not(.payhot-datetime-local__time-chip),
.disputes-runtime-page .disputes-filter-panel select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-ui);
  outline: none;
}

.disputes-runtime-page .disputes-filter-panel input:not(.payhot-datetime-local__time-chip):focus,
.disputes-runtime-page .disputes-filter-panel select:focus {
  border-color: rgba(253, 34, 38, 0.42);
  box-shadow: 0 0 0 3px rgba(253, 34, 38, 0.08);
}

.disputes-runtime-page .disputes-filter-panel input[type="number"] {
  -moz-appearance: textfield;
}

.disputes-runtime-page .disputes-filter-panel input[type="number"]::-webkit-outer-spin-button,
.disputes-runtime-page .disputes-filter-panel input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.disputes-runtime-page .disputes-filter-panel .filter-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.disputes-runtime-page .disputes-filter-panel .primary-btn,
.disputes-runtime-page .disputes-filter-panel .ghost-btn {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.disputes-runtime-page .disputes-filter-panel .primary-btn {
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(236, 10, 70, 0.24);
}

.disputes-runtime-page .disputes-filter-panel .ghost-btn {
  border: 1px solid rgba(103, 118, 140, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1d;
  box-shadow: 0 10px 24px rgba(0, 8, 33, 0.05);
}

.disputes-runtime-page .disputes-filter-panel .primary-btn:hover,
.disputes-runtime-page .disputes-filter-panel .ghost-btn:hover {
  transform: translateY(-1px);
}

.disputes-runtime-page .disputes-filter-panel .primary-btn:disabled,
.disputes-runtime-page .disputes-filter-panel .ghost-btn:disabled {
  cursor: default;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.disputes-runtime-page .disputes-table {
  grid-area: table;
  position: relative;
  width: 100%;
  min-height: 648px;
  display: grid;
  grid-template-columns: minmax(118px, 0.9fr) minmax(150px, 1.1fr) minmax(88px, 0.7fr) minmax(96px, 0.75fr) minmax(116px, 0.85fr) minmax(130px, 0.95fr) minmax(132px, 0.95fr) minmax(128px, 1fr);
  grid-auto-rows: min-content;
  align-items: center;
  gap: 0;
  padding: 24px 4px 72px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
  overflow: hidden;
}

.disputes-runtime-page .disputes-table.is-merchant-table {
  grid-template-columns: 170px 120px 118px 150px 142px minmax(0, 1fr);
}

.disputes-runtime-page .table-heading {
  padding: 0 14px 18px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disputes-runtime-page .heading-id,
.disputes-runtime-page .dispute-row .id { grid-column: 1; }
.disputes-runtime-page .heading-client,
.disputes-runtime-page .dispute-row .client { grid-column: 2; }
.disputes-runtime-page .heading-type,
.disputes-runtime-page .dispute-row .type { grid-column: 3; }
.disputes-runtime-page .heading-amount,
.disputes-runtime-page .dispute-row .amount { grid-column: 4; }
.disputes-runtime-page .heading-recalc,
.disputes-runtime-page .dispute-row .recalc { grid-column: 5; }
.disputes-runtime-page .heading-status,
.disputes-runtime-page .dispute-row .status { grid-column: 6; }
.disputes-runtime-page .heading-merchant,
.disputes-runtime-page .dispute-row .merchant { grid-column: 7; }
.disputes-runtime-page .heading-order { grid-column: 8; }
.disputes-runtime-page .dispute-row .order { grid-column: 8; }

.disputes-runtime-page .is-merchant-table .heading-order,
.disputes-runtime-page .is-merchant-table .dispute-row .order { grid-column: 6; }

.disputes-runtime-page .is-merchant-table .heading-client,
.disputes-runtime-page .is-merchant-table .dispute-row .client { grid-column: 1; }
.disputes-runtime-page .is-merchant-table .heading-type,
.disputes-runtime-page .is-merchant-table .dispute-row .type { grid-column: 2; }
.disputes-runtime-page .is-merchant-table .heading-amount,
.disputes-runtime-page .is-merchant-table .dispute-row .amount { grid-column: 3; }
.disputes-runtime-page .is-merchant-table .heading-recalc,
.disputes-runtime-page .is-merchant-table .dispute-row .recalc { grid-column: 4; }
.disputes-runtime-page .is-merchant-table .heading-status,
.disputes-runtime-page .is-merchant-table .dispute-row .status { grid-column: 5; }

.disputes-runtime-page .dispute-row {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.disputes-runtime-page .dispute-row > span {
  min-width: 0;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.disputes-runtime-page .dispute-row .id,
.disputes-runtime-page .dispute-row .merchant,
.disputes-runtime-page .dispute-row .order,
.disputes-runtime-page .dispute-row .type.muted {
  color: #67768c;
}

.disputes-runtime-page .dispute-row .id {
  font-size: 12px;
}

.disputes-runtime-page .dispute-row .status {
  width: fit-content;
  max-width: calc(100% - 16px);
  min-width: 96px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 10px 2px;
  border-radius: 128px;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.disputes-runtime-page .status .status-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
  object-fit: contain;
}

.disputes-runtime-page .status.success {
  background: #00d512;
}

.disputes-runtime-page .status.reject {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.disputes-runtime-page .status.warning,
.disputes-runtime-page .status.pending {
  color: #1d1d1d;
  background: #fff3ca;
}

.disputes-runtime-page .disputes-empty-state {
  grid-column: 1 / -1;
  min-height: 480px;
  display: grid;
  place-items: center;
  color: #67768c;
  font-size: 18px;
  font-weight: 700;
}

.disputes-runtime-page .disputes-pagination {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0 0;
}

.disputes-runtime-page .disputes-pagination button,
.disputes-runtime-page .disputes-pagination span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 17.6px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.disputes-runtime-page .disputes-pagination button {
  cursor: pointer;
}

.disputes-runtime-page .disputes-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.disputes-runtime-page .disputes-pagination span {
  background: transparent;
  color: #67768c;
}

.disputes-runtime-page .disputes-pagination button:first-child,
.disputes-runtime-page .disputes-pagination .next-page {
  border: 0.88px solid rgba(46, 74, 105, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.disputes-runtime-page .disputes-pagination .current {
  background: #1d1d1d;
  color: #fff;
}

.disputes-runtime-page .disputes-pagination img {
  width: 24px;
  height: 24px;
  display: block;
}

.disputes-runtime-page .disputes-pagination .next-page img {
  transform: rotate(180deg);
}

.disputes-runtime-page .table-count {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.disputes-runtime-page .table-count img {
  width: 18px;
  height: 18px;
}

.disputes-detail-panel {
  --payhot-overlay-width: 512px;
  width: min(520px, calc(100vw - 48px));
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 28px;
  background: #f0f4f8;
  color: #1d1d1d;
  box-shadow: 0 26px 90px rgba(0, 8, 33, 0.24);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Content treatment adapted from design-reference/order_failure. */
.disputes-detail-panel .drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 24px;
  border-bottom: 1px solid rgba(103, 118, 140, 0.12);
  background: rgba(240, 244, 248, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.disputes-detail-panel .drawer-badge-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.disputes-detail-panel .status {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 1px 10px 2px;
  border-radius: 128px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.disputes-detail-panel .status .status-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
  object-fit: contain;
}

.disputes-detail-panel .status.success { background: #00d512; }
.disputes-detail-panel .status.reject { background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%); }
.disputes-detail-panel .status.warning,
.disputes-detail-panel .status.pending {
  color: #1d1d1d;
  background: #fff3ca;
}

.disputes-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.disputes-detail-title h2 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

.disputes-detail-title p {
  margin: 8px 0 0;
  color: #67768c;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.disputes-detail-panel .dispute-type-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 14px;
  border: 1px solid rgba(29, 29, 29, 0.9);
  border-radius: 999px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 700;
}

.disputes-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.disputes-close .rectangle-40014 {
  position: absolute;
  inset: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.02px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.23);
}

.disputes-close .close2 {
  width: 16px;
  height: 16px;
  position: absolute;
  left: 14px;
  top: 14px;
}

.disputes-detail-body {
  display: grid;
  gap: 18px;
  padding: 18px 24px 26px;
}

.disputes-detail-panel .order-detail-status-card {
  position: relative;
  width: 100%;
  height: 68px;
  border-radius: 24px;
  overflow: hidden;
}

.disputes-detail-panel .order-detail-status-card-bg,
.disputes-detail-panel .order-detail-status-card-border,
.disputes-detail-panel .order-detail-status-card-line,
.disputes-detail-panel .order-detail-status-card-glow,
.disputes-detail-panel .order-detail-status-card-icon,
.disputes-detail-panel .order-detail-status-card-label,
.disputes-detail-panel .order-detail-status-card-value {
  position: absolute;
  display: block;
}

.disputes-detail-panel .order-detail-status-card-bg,
.disputes-detail-panel .order-detail-status-card-border {
  inset: 0;
  border-radius: 24px;
}

.disputes-detail-panel .order-detail-status-card-bg {
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.disputes-detail-panel .order-detail-status-card-border {
  border: 1px solid rgba(46, 74, 105, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 247, 255, 0.5) 100%);
}

.disputes-detail-panel .order-detail-status-card-line {
  left: 0;
  top: 22px;
  width: 2px;
  height: 24px;
}

.disputes-detail-panel .order-detail-status-card-glow {
  left: 0;
  top: 22px;
  width: 10px;
  height: 24px;
  filter: blur(16px);
}

.disputes-detail-panel .order-detail-status-card-icon {
  left: 22px;
  top: 22px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.disputes-detail-panel .order-detail-status-card-label,
.disputes-detail-panel .order-detail-status-card-value {
  left: 54px;
  width: calc(100% - 70px);
  font-family: var(--font-ui);
}

.disputes-detail-panel .order-detail-status-card-label {
  top: 14px;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 500;
}

.disputes-detail-panel .order-detail-status-card-value {
  top: 34px;
  font-size: 15px;
  font-weight: 700;
}

.disputes-detail-panel .order-detail-status-card.is-success .order-detail-status-card-line,
.disputes-detail-panel .order-detail-status-card.is-success .order-detail-status-card-glow,
.disputes-detail-panel .order-detail-status-card.is-success .order-detail-status-card-icon {
  background: #00d512;
}

.disputes-detail-panel .order-detail-status-card.is-success .order-detail-status-card-value {
  color: #00d512;
}

.disputes-detail-panel .order-detail-status-card.is-success .order-detail-status-card-icon span::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-line,
.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-glow,
.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-icon {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-value {
  color: #fd2226;
}

.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-icon span::before,
.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-icon span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 12px;
  height: 2px;
  background: #fff;
}

.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-icon span::before { transform: rotate(45deg); }
.disputes-detail-panel .order-detail-status-card.is-failure .order-detail-status-card-icon span::after { transform: rotate(-45deg); }

.disputes-detail-panel .order-detail-status-card.is-pending .order-detail-status-card-line,
.disputes-detail-panel .order-detail-status-card.is-pending .order-detail-status-card-glow,
.disputes-detail-panel .order-detail-status-card.is-pending .order-detail-status-card-icon {
  background: #ffb020;
}

.disputes-detail-panel .order-detail-status-card.is-pending .order-detail-status-card-value {
  color: #a86600;
}

.disputes-detail-panel .order-detail-status-card.is-pending .order-detail-status-card-icon span {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
}

.disputes-detail-panel .drawer-section {
  min-width: 0;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(103, 118, 140, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.disputes-detail-panel .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.disputes-detail-panel .detail-item,
.disputes-detail-panel .drawer-file-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(103, 118, 140, 0.12);
  border-radius: 16px;
  background: #f8fafc;
}

.disputes-detail-panel .detail-label {
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.disputes-detail-panel .detail-value {
  min-width: 0;
  max-width: 100%;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.disputes-detail-panel .drawer-section-title {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.disputes-detail-panel .filter-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.disputes-detail-panel .filter-grid .field {
  min-width: 0;
}

.disputes-detail-panel .filter-grid input,
.disputes-detail-panel .filter-grid select,
.disputes-detail-panel .filter-grid textarea {
  width: 100%;
  min-width: 0;
}

.disputes-detail-panel .dispute-evidence-grid,
.disputes-detail-panel .dispute-history-list {
  display: grid;
  gap: 10px;
}

.disputes-detail-panel .dispute-evidence-grid .drawer-file-card {
  display: grid;
  gap: 6px;
}

.disputes-detail-panel .dispute-evidence-grid .drawer-file-card strong,
.disputes-detail-panel .dispute-history-item strong {
  color: #1d1d1d;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.disputes-detail-panel .dispute-evidence-grid .drawer-file-card span,
.disputes-detail-panel .dispute-history-item span,
.disputes-detail-panel .dispute-history-item p {
  margin: 0;
  color: #67768c;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.disputes-detail-panel .dispute-history-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(103, 118, 140, 0.12);
  border-radius: 16px;
  background: #fff;
}

.disputes-detail-panel .disputes-admin-section,
.disputes-detail-panel .disputes-bank-section {
  background: #fff !important;
}

.disputes-detail-panel .disputes-resolve-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(103, 118, 140, 0.12);
}

.disputes-detail-panel .dispute-evidence-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.disputes-detail-panel .dispute-evidence-submit {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: 0 14px 30px rgba(236, 10, 70, .24);
  color: #fff;
  font: 700 13px var(--font-title);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.disputes-detail-panel .dispute-evidence-submit:hover:not(:disabled),
.disputes-detail-panel .dispute-evidence-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(236, 10, 70, .3);
}

.disputes-detail-panel .dispute-evidence-submit:focus-visible {
  outline: 3px solid rgba(34, 118, 253, .34);
  outline-offset: 2px;
}

.disputes-detail-panel .dispute-evidence-submit:disabled {
  cursor: default;
  opacity: .55;
  transform: none;
}

@media (max-width: 1180px) {
  .figma-frame:has(.disputes-runtime-page) {
    --disputes-content-left: 328px;
    --disputes-content-right: 24px;
  }

  .disputes-runtime-page .disputes-filter-panel .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .figma-frame:has(.disputes-runtime-page) {
    --disputes-content-left: 24px;
    --disputes-content-right: 24px;
  }

  .disputes-runtime-page .disputes-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "actions"
      "toast"
      "filters"
      "table";
  }

  .disputes-runtime-page .disputes-filter,
  .disputes-runtime-page .disputes-chargeback {
    justify-self: start;
    grid-area: actions;
    margin-left: 0;
  }

  .disputes-runtime-page .disputes-chargeback {
    margin-top: 48px;
  }

  .disputes-runtime-page .disputes-filter-panel .filter-grid,
  .disputes-detail-panel .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cashbox method request modal: 1:1 content transfer from cashbox_zayavka. */
.cashbox-request-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: auto;
}

.cashbox-request-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cashbox-request-panel {
  position: fixed;
  top: 8px;
  right: 8px;
  left: auto;
  width: min(512px, calc(100vw - 16px));
  height: min(918px, calc(100dvh - 16px));
  overflow: hidden;
  border-radius: 32px;
  background: #f0f4f8;
  transform: none;
}

.cashbox-request-close {
  position: absolute;
  left: auto;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.02px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.23);
}

.cashbox-request-close img {
  width: 14px;
  height: 14px;
}

.cashbox-request-card {
  position: absolute;
  left: 8px;
  top: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  text-align: initial;
  box-shadow: none;
}

.cashbox-request-qr {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 168px;
  height: 164px;
  display: block;
  transform: translateX(-50%);
}

.cashbox-request-card h2 {
  position: absolute;
  left: 50px;
  top: 173px;
  width: calc(100% - 100px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-align: center;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 500;
  line-height: 21.6px;
  letter-spacing: -1px;
}

.cashbox-request-button {
  position: absolute;
  left: 24px;
  top: 289px;
  width: calc(100% - 48px);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #1d1d1d;
  text-align: center;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cashbox-request-button.is-disabled {
  cursor: not-allowed;
  opacity: .45;
  pointer-events: none;
}

/* Exports reference-style runtime */
.figma-frame:has(.exports-runtime-page) {
  --exports-content-left: 392px;
  --exports-content-right: 72px;
  --exports-content-width: min(1120px, calc(100% - var(--exports-content-left) - var(--exports-content-right)));
  min-height: 100svh;
  min-height: 100dvh;
  background: #eaf1f8;
}

.exports-runtime-page,
.exports-runtime-page * {
  box-sizing: border-box;
}

.exports-runtime-page {
  position: relative;
  width: 100%;
  min-height: max(calc(100dvh - 398px), 900px);
  padding: 0 0 72px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.exports-content {
  position: relative;
  width: var(--exports-content-width);
  margin-left: var(--exports-content-left);
  padding-top: 98px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
  max-width: 100%;
}

.exports-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  min-width: 0;
}

.exports-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
}

.exports-title img {
  width: 24px;
  height: 24px;
  margin-top: 5px;
  display: block;
}

.exports-title h1 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: 0;
}

.exports-title p {
  margin: 12px 0 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.exports-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.exports-refresh-button,
.create-export,
.exports-primary-action,
.exports-ghost-action,
.submit-export-create,
.more-button,
.download-button {
  min-width: 0;
  border: 0;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.exports-refresh-button,
.exports-ghost-action,
.more-button {
  height: 40px;
  padding: 0 22px;
  border: 1px solid rgba(46, 74, 105, .12);
  border-radius: 12px;
  background: #fff;
  color: #1d1d1d;
  box-shadow: 0 12px 28px rgba(1, 10, 70, .06);
}

.create-export,
.exports-primary-action,
.submit-export-create {
  height: 40px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(236, 10, 70, .28);
}

.create-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 28px;
}

.create-export span {
  font-size: 22px;
  line-height: 1;
}

.exports-refresh-button:hover:not(:disabled),
.exports-ghost-action:hover:not(:disabled),
.more-button:hover:not(:disabled),
.create-export:hover:not(:disabled),
.exports-primary-action:hover:not(:disabled),
.submit-export-create:hover:not(:disabled),
.download-button:hover:not(.is-disabled) {
  transform: translateY(-1px);
}

.exports-refresh-button:disabled,
.exports-ghost-action:disabled,
.more-button:disabled,
.create-export:disabled,
.exports-primary-action:disabled,
.submit-export-create:disabled {
  cursor: default;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

.exports-info {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 105, .1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(240, 247, 255, .92) 100%);
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 22px 54px rgba(1, 10, 70, .07);
}

.exports-info-line {
  position: absolute;
  left: 0;
  top: 22px;
  width: 2px;
  height: 28px;
  background: #2276fd;
}

.exports-info-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #2276fd;
  color: #fff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
}

.exports-main {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  grid-template-areas:
    "filters filters"
    "stats exports";
  align-items: start;
  gap: 24px 40px;
  min-width: 0;
}

.exports-stats {
  grid-area: stats;
  display: grid;
  gap: 28px;
  align-self: start;
  min-width: 0;
}

.exports-stats .stats-local {
  min-width: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(185, 194, 205, .42);
}

.exports-stats .stats-local:last-child {
  border-bottom: 0;
}

.exports-stats p {
  margin: 0 0 14px;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.exports-stats strong {
  display: block;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 44px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: 0;
}

.exports-stats span {
  display: block;
  margin-top: 12px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.exports-workspace {
  display: contents;
}

.exports-filter-panel {
  grid-area: filters;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(46, 74, 105, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 62px rgba(1, 10, 70, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.exports-message,
.exports-empty,
.export-grid,
.more-button {
  grid-column: 2;
  min-width: 0;
}

.exports-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 16px;
  min-width: 0;
}

.exports-field,
.export-create-panel .create-field,
.export-runtime-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

.exports-field input,
.export-create-panel .create-field input,
.export-runtime-grid input {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid rgba(46, 74, 105, .14);
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  outline: 0;
}

.exports-field .payhot-dropdown-button,
.export-create-panel .create-field .payhot-dropdown-button {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(46, 74, 105, .14);
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-ui);
}

.export-create-panel .payhot-dropdown {
  --payhot-dropdown-control-height: 44px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.export-create-panel .payhot-dropdown.is-open {
  z-index: calc(var(--payhot-modal-panel-z, 2147483010) + 2);
}

/* Export creation uses the modal portal contract: the menu is measured from
   its control and must stay above the drawer's scrollable content. */
.export-create-panel .create-field:has(.payhot-dropdown.is-open) {
  position: relative;
  z-index: 4;
}

.export-create-panel .payhot-dropdown-menu.is-portal {
  width: var(--payhot-dropdown-width);
  min-width: var(--payhot-dropdown-width);
  max-width: var(--payhot-dropdown-width);
  z-index: var(--payhot-dropdown-layer, calc(var(--payhot-modal-panel-z, 2147483010) + 10));
}

.export-create-panel .payhot-dropdown-dismiss.is-portal {
  z-index: var(--payhot-dropdown-dismiss-layer, calc(var(--payhot-modal-panel-z, 2147483010) + 9));
}

.export-create-panel .payhot-dropdown-menu.is-portal button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.exports-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.exports-message {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.exports-message.is-error {
  background: rgba(253, 34, 38, .09);
  color: #ec0a46;
}

.exports-message.is-success {
  background: rgba(0, 213, 18, .12);
  color: #049a12;
}

.exports-empty {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border: 1px dashed rgba(103, 118, 140, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  color: #67768c;
  text-align: center;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.export-card {
  position: relative;
  min-height: 372px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 16px 16px;
  border: 4px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(1, 10, 70, .12);
  cursor: pointer;
}

.export-card .card-top {
  position: relative;
  min-height: 146px;
  margin: 0 -16px 20px;
  padding: 24px 16px 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, #eef4fb 0%, #f7fbff 100%);
}

.export-card.is-ready .card-top {
  background: linear-gradient(90deg, #e2ffe5 0%, #f3fff4 100%);
}

.export-card.is-error .card-top {
  background: linear-gradient(90deg, #fff0f2 0%, #fff8f8 100%);
}

.export-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
}

.export-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.ready-pill {
  position: absolute;
  right: 14px;
  top: 18px;
  max-width: calc(100% - 72px);
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ready-pill.status-ready {
  background: #00d512;
}

.ready-pill.status-error {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.ready-pill.status-pending,
.ready-pill.status-neutral {
  background: #f0f4f8;
  color: #67768c;
}

.export-id {
  margin-top: 24px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.export-card h2 {
  margin: 8px 0 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
}

.project-name {
  display: inline-flex;
  max-width: 100%;
  height: 28px;
  align-items: center;
  margin-top: 10px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exports-runtime-page.is-merchant .project-name {
  display: none;
}

.export-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 0;
  min-width: 0;
}

.export-card-meta div {
  min-width: 0;
}

.export-card-meta dt {
  margin: 0 0 6px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.export-card-meta dd {
  margin: 0;
  overflow: hidden;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-card-meta div:nth-child(3) {
  grid-column: 1 / -1;
}

.download-button {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 12px;
  background: #f0f4f8;
  color: #1d1d1d;
  text-decoration: none;
}

.download-button:not(.is-disabled) {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(236, 10, 70, .2);
}

.download-button.is-disabled {
  cursor: default;
  opacity: .7;
}

.more-button {
  justify-self: center;
  min-width: 260px;
  height: 52px;
  margin-top: 6px;
  border-radius: 14px;
}

.exports-detail-overlay,
.export-create-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
}

.exports-detail-overlay::before,
.export-create-scrim {
  position: fixed;
  inset: 0;
  content: "";
  background: rgba(20, 27, 38, .34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.exports-detail-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 48px));
  overflow-y: auto;
  padding: 32px 24px;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 0 10px rgba(0, 0, 0, .12), 0 0 80px rgba(0, 0, 0, .23);
}

.exports-detail-panel .close,
.export-create-close {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 16px 38px rgba(1, 10, 70, .14);
  cursor: pointer;
}

.exports-detail-head {
  padding-right: 76px;
}

.exports-detail-head p {
  margin: 0 0 10px;
  color: #67768c;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.exports-detail-head h2 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.exports-detail-head span {
  display: block;
  margin-top: 10px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
}

.exports-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.exports-detail-pills span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(29, 29, 29, .18);
  border-radius: 999px;
  background: #fff;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
}

.exports-detail-pills .status-ready {
  border-color: transparent;
  background: #00d512;
  color: #fff;
}

.exports-detail-pills .status-error {
  border-color: transparent;
  background: #ec0a46;
  color: #fff;
}

.exports-detail-pills .status-pending,
.exports-detail-pills .status-neutral {
  background: #fff;
  color: #67768c;
}

.exports-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.exports-detail-grid .detail-item {
  min-width: 0;
  min-height: 78px;
  padding: 16px;
  border: 1px solid rgba(46, 74, 105, .1);
  border-radius: 18px;
  background: #fff;
}

.exports-detail-grid .detail-label {
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.exports-detail-grid .detail-value {
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.exports-primary-action.is-wide {
  width: 100%;
  margin-top: 18px;
}

.exports-admin-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
}

.exports-admin-section h3 {
  margin: 0 0 12px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.exports-admin-section pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.export-create-panel {
  position: fixed;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(560px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - 16px);
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 26px 90px rgba(0, 8, 33, .24);
}

.export-create-inner {
  height: 100%;
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  padding: 40px 28px 32px;
  -webkit-overflow-scrolling: touch;
}

.export-create-inner h2 {
  margin: 0;
  padding-right: 80px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
}

.export-create-subtitle {
  margin: 10px 0 28px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
}

.export-create-core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.field-export-type,
.field-project-id {
  grid-column: 1 / -1;
}

.export-columns,
.export-runtime-section {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(46, 74, 105, .08);
  border-radius: 22px;
  background: #fff;
}

.export-columns h3,
.export-runtime-section h3 {
  margin: 0 0 14px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.export-runtime-section p {
  margin: 0 0 14px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.export-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(46, 74, 105, .12);
  border-radius: 999px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.export-chip span {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(103, 118, 140, .26);
}

.export-chip.is-selected {
  background: rgba(253, 34, 38, .08);
  color: #ec0a46;
}

.export-chip.is-selected span {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  box-shadow: none;
}

.export-chip.is-selected span::after {
  width: 8px;
  height: 5px;
  content: "";
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.export-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.export-runtime-grid input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.export-runtime-grid input[type="number"]::-webkit-outer-spin-button,
.export-runtime-grid input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.submit-export-create {
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .figma-frame:has(.exports-runtime-page) {
    --exports-content-left: 336px;
    --exports-content-right: 32px;
    --exports-content-width: calc(100% - var(--exports-content-left) - var(--exports-content-right));
  }

  .exports-main {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
  }

  .export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .figma-frame:has(.exports-runtime-page) {
    --exports-content-left: 24px;
    --exports-content-right: 24px;
  }

  .exports-content {
    padding-top: 120px;
  }

  .exports-title-row,
  .exports-main,
  .exports-filter-grid,
  .export-create-core,
  .export-runtime-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .exports-main {
    grid-template-areas:
      "filters"
      "stats"
      "exports";
  }

  .exports-message,
  .exports-empty,
  .export-grid,
  .more-button {
    grid-column: 1;
  }

  .exports-header-actions,
  .exports-filter-actions {
    justify-content: stretch;
  }

  .exports-header-actions > *,
  .exports-filter-actions > * {
    flex: 1 1 auto;
  }

  .export-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Payment link statistics reference modal */
.payment-links-runtime-page .payment-link-statistics-overlay,
.payment-links-runtime-page .payment-link-statistics-overlay * {
  box-sizing: border-box;
}

.payment-links-runtime-page .payment-link-statistics-overlay {
  position: fixed;
  inset: 0;
  z-index: 1560;
  pointer-events: auto;
  font-family: var(--font-ui);
}

.payment-links-runtime-page .statistics-backdrop {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.payment-links-runtime-page .statistics-modal {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(512px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 32px;
  background: #f0f4f8;
  color: #1d1d1d;
  font-family: var(--font-ui);
  box-shadow: 0 24px 80px rgba(2, 10, 70, 0.22);
}

.payment-links-runtime-page .statistics-reference-stage {
  position: relative;
  width: 100%;
  height: 918px;
  min-height: 918px;
}

.payment-links-runtime-page .statistics-close {
  position: absolute;
  right: 13px;
  top: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 1024px;
  background: #fff;
  box-shadow: 0 0 10.02px rgba(0, 0, 0, 0.12), 0 0 80px rgba(0, 0, 0, 0.23);
  cursor: pointer;
}

.payment-links-runtime-page .statistics-close img {
  width: 14px;
  height: 14px;
  display: block;
}

.payment-links-runtime-page .statistics-modal h2 {
  position: absolute;
  left: 32px;
  top: 30px;
  max-width: calc(100% - 96px);
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 500;
  line-height: 21.6px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.payment-links-runtime-page .statistics-subtitle {
  position: absolute;
  left: 32px;
  top: 64px;
  margin: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.payment-links-runtime-page .statistics-card {
  position: absolute;
  left: 8px;
  top: 105px;
  width: calc(100% - 16px);
  height: 805px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.payment-links-runtime-page .statistics-metric {
  position: absolute;
  width: 88px;
  height: 108px;
}

.payment-links-runtime-page .statistics-metric img {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
}

.payment-links-runtime-page .statistics-metric span {
  position: absolute;
  left: 0;
  top: 34px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
}

.payment-links-runtime-page .statistics-metric strong {
  position: absolute;
  left: 0;
  top: 86px;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 600;
  line-height: 21.6px;
  letter-spacing: 0;
}

.payment-links-runtime-page .metric-clicks {
  left: 24px;
  top: 32px;
}

.payment-links-runtime-page .metric-attempts {
  left: 148px;
  top: 32px;
}

.payment-links-runtime-page .metric-created {
  left: 260px;
  top: 32px;
}

.payment-links-runtime-page .metric-success {
  left: 388px;
  top: 32px;
}

.payment-links-runtime-page .statistics-divider {
  position: absolute;
  left: 24px;
  top: 172px;
  width: 448px;
  max-width: calc(100% - 48px);
  height: 1px;
  background: #f0f4f8;
}

.payment-links-runtime-page .statistics-card h3 {
  position: absolute;
  left: 24px;
  top: 196px;
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.payment-links-runtime-page .statistics-chart {
  position: absolute;
  left: 20px;
  top: 237px;
  width: 456px;
  max-width: calc(100% - 40px);
  height: 320px;
}

.payment-links-runtime-page .payment-link-svg-chart.statistics-chart {
  height: 426px;
}

.payment-links-runtime-page .chart-numbers {
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 32px;
  width: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.payment-links-runtime-page .chart-numbers span,
.payment-links-runtime-page .chart-labels span {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
}

.payment-links-runtime-page .chart-grid {
  position: absolute;
  left: 42px;
  top: 20px;
  width: 392px;
  max-width: calc(100% - 42px);
  height: 300px;
}

.payment-links-runtime-page .chart-line {
  position: absolute;
  left: 0;
  top: 4px;
  width: 392px;
  max-width: 100%;
  height: 264px;
  opacity: 0.8;
}

.payment-links-runtime-page .chart-labels {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 392px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
}

.payment-links-runtime-page .chart-labels span {
  width: 68px;
  text-align: center;
}

.payment-links-runtime-page .chart-labels .active {
  color: #00d512;
}

.payment-links-runtime-page .statistics-legend {
  position: absolute;
  left: 32px;
  top: 589px;
  width: 360px;
  height: 74px;
}

.payment-links-runtime-page .legend-item {
  position: absolute;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.payment-links-runtime-page button.legend-item {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.payment-links-runtime-page button.legend-item.is-muted {
  opacity: 0.45;
}

.payment-links-runtime-page .legend-item span {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9.33px;
}

.payment-links-runtime-page .legend-item span::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
}

.payment-links-runtime-page .legend-item img {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
}

.payment-links-runtime-page .legend-clicks {
  left: 0;
  top: 0;
}

.payment-links-runtime-page .legend-attempts {
  left: 192px;
  top: 0;
}

.payment-links-runtime-page .legend-created {
  left: 0;
  top: 46px;
}

.payment-links-runtime-page .legend-success {
  left: 192px;
  top: 46px;
}

.payment-links-runtime-page .legend-clicks span {
  background: #f98807;
}

.payment-links-runtime-page .legend-attempts span {
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
}

.payment-links-runtime-page .legend-created span {
  background: #0099ff;
}

.payment-links-runtime-page .legend-success span {
  background: #00d512;
}

.payment-links-runtime-page .statistics-runtime-section {
  margin: 0 8px 8px;
  padding: 22px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 24px;
  background: #fff;
}

.payment-links-runtime-page .statistics-runtime-section > h3 {
  margin: 0 0 14px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.payment-links-runtime-page .statistics-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-links-runtime-page .statistics-runtime-grid .detail-item {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: #f7f9fc;
  overflow-wrap: anywhere;
}

.payment-links-runtime-page .statistics-runtime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.payment-links-runtime-page .statistics-runtime-actions .ghost-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(29, 29, 29, 0.14);
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  font: 700 13px var(--font-title);
  text-decoration: none;
  cursor: pointer;
}

.payment-links-runtime-page .statistics-admin-section h4 {
  margin: 18px 0 10px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payment-links-runtime-page .statistics-admin-section .table-wrap {
  max-height: 220px;
  overflow: auto;
  border-radius: 16px;
  background: #f7f9fc;
}

.payment-links-runtime-page .statistics-admin-section .code-block {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 16px;
  background: #f7f9fc;
}

@media (max-width: 640px) {
  .payment-links-runtime-page .statistics-modal {
    inset: 16px;
    width: auto;
    max-height: calc(100dvh - 32px);
  }

  .payment-links-runtime-page .statistics-runtime-grid {
    grid-template-columns: 1fr;
  }
}

.figma-frame:has(.statistics-runtime-page),
.figma-frame:has(.statistics-legacy-admin) {
  --statistics-content-left: 392px;
  --statistics-content-right: 72px;
  --statistics-content-width: calc(100% - var(--statistics-content-left) - var(--statistics-content-right));
  background: #f0f4f8;
}

/* Statistics: content-only PayHot reference layout. The shell remains outside this scope. */
.statistics-runtime-page.statistics-reference-runtime {
  box-sizing: border-box;
  margin-left: var(--statistics-content-left);
  width: min(984px, var(--statistics-content-width));
  min-width: 0;
  padding: 92px 0 104px;
  display: grid;
  gap: 40px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.statistics-reference-runtime *,
.statistics-reference-runtime *::before,
.statistics-reference-runtime *::after { box-sizing: border-box; }

.statistics-reference-heading { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.statistics-reference-heading .chart-simple { width: 24px; height: 24px; margin-top: 2px; flex: 0 0 auto; }
.statistics-reference-heading h1,
.statistics-reference-runtime .reference-section-copy h2 { margin: 0; color: #000; font-family: var(--font-title); font-weight: 500; letter-spacing: 0; }
.statistics-reference-heading h1 { font-size: 32px; line-height: .9; }
.statistics-reference-heading p,
.statistics-reference-runtime .reference-section-copy p { margin: 11px 0 0; color: #67768c; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }

.statistics-reference-filters { min-width: 0; padding: 24px; display: flex; flex-wrap: wrap; align-items: end; gap: 16px; border-radius: 24px; border: 1px solid rgba(46, 74, 105, .1); background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(240,247,255,.5)); }
.statistics-reference-filters .date,
.statistics-reference-filters .date2,
.statistics-reference-filters .proj { min-width: 0; display: grid; gap: 8px; color: #67768c; font-size: 14px; font-weight: 500; }
.statistics-reference-filters .date { flex: 1 1 230px; }
.statistics-reference-filters .date2 { flex: 1 1 190px; }
.statistics-reference-filters .proj { flex: 1 1 180px; }
.statistics-reference-filters .calendar,
.statistics-reference-filters .all-types { width: 100%; height: 40px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; }
.statistics-reference-filters .calendar > img { width: 18px; height: 18px; flex: 0 0 auto; }
.statistics-reference-filters .calendar > input { width: 100%; min-width: 0; border: 0; outline: 0; color: #1d1d1d; background: transparent; font: 700 12px var(--font-title); }
.statistics-reference-filters .all-types.payhot-dropdown { padding: 0; }
.statistics-reference-filters .all-types .payhot-dropdown-button { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; color: #1d1d1d; font: 700 12px var(--font-title); }
.statistics-reference-filters .refresh,
.statistics-reference-filters .clear { height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; }
.statistics-reference-filters .refresh { min-width: 100px; padding: 0 24px; border: 1px solid rgba(29,29,29,.2); background: #1d1d1d; color: #fff; font: 700 12px var(--font-title); }
.statistics-reference-filters .clear { width: 40px; padding: 0; border: 1px solid #ec96a4; background: transparent; }
.statistics-reference-filters .clear img { width: 18px; height: 18px; }
.statistics-reference-filters button:disabled { cursor: default; opacity: .55; }

.statistics-reference-ranges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: -12px; }
.statistics-reference-ranges button { position: relative; padding: 0 0 12px; border: 0; background: transparent; color: #67768c; font: 500 14px var(--font-title); cursor: pointer; }
.statistics-reference-ranges button.active { color: #1d1d1d; font-weight: 700; }
.statistics-reference-ranges button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(180deg, #fd2226, #ec0a46); }

.statistics-reference-runtime .reference-section-copy h2 { font-size: 20px; line-height: .9; }
.statistics-reference-runtime .statistics-reference-overview { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 454px); justify-content: space-between; align-items: start; gap: 24px; min-width: 0; }
.statistics-reference-runtime .statistic { min-width: 0; }
.statistics-reference-runtime .today-stat-cards { display: grid; grid-template-columns: minmax(0, 480px); gap: 8px; justify-content: start; margin-top: 28px; }
.statistics-reference-runtime .today-stat-card { position: relative; min-width: 0; height: 205px; overflow: hidden; border-radius: 24px; }
.statistics-reference-runtime .today-stat-card-bg { position: absolute; inset: 0; border: 1px solid rgba(46, 74, 105, .1); border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(240,247,255,.5)); }
.statistics-reference-runtime .today-stat-card-title { position: absolute; z-index: 1; top: 24px; left: 24px; color: #1d1d1d; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.statistics-reference-runtime .today-stat-panel { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 139px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 0 80px rgba(0,8,33,.07); }
.statistics-reference-runtime .today-stat-panel .statistics-area-chart-card { min-height: 138px; border: 0; border-radius: 20px; box-shadow: none; }
.statistics-reference-runtime .today-stat-panel .statistics-bar-chart { height: 139px; padding: 12px; }
.statistics-reference-runtime .today-stat-panel .statistics-area-chart-y,
.statistics-reference-runtime .today-stat-panel .statistics-area-chart-x,
.statistics-reference-runtime .today-stat-panel .statistics-bar-chart-value,
.statistics-reference-runtime .today-stat-panel .statistics-bar-chart-label { display: none; }
.statistics-reference-runtime .today-stat-reference-chart { position: absolute; right: 0; top: 0; width: auto; max-width: 46%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.statistics-reference-runtime .today-stat-card-created .today-stat-reference-chart { right: 38px; width: 138px; height: 92px; top: 22px; }
.statistics-reference-runtime .today-stat-card-success .today-stat-reference-chart { left: auto; right: 22px; width: 167px; height: 58px; top: 42px; }
.statistics-reference-runtime .today-stat-value { position: absolute; z-index: 2; top: 86px; left: 28px; max-width: calc(100% - 44px); color: #1d1d1d; font-family: var(--font-number); font-weight: 600; line-height: 1; overflow-wrap: anywhere; }
.statistics-reference-runtime .today-stat-value-main { font-size: clamp(20px, 2vw, 36px); }
.statistics-reference-runtime .today-stat-caption { position: absolute; z-index: 2; left: 28px; bottom: 18px; max-width: calc(100% - 44px); color: #67768c; font-size: 12px; font-weight: 500; line-height: 1.25; }

.statistics-reference-runtime .statistic2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; justify-self: end; width: 454px; padding-top: 91px; }
.statistics-reference-runtime .dynamic { position: relative; min-width: 0; min-height: 118px; padding: 24px 20px; border: 1px solid rgba(46,74,105,.1); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(240,247,255,.5)); }
.statistics-reference-runtime .dynamic img { position: absolute; top: 20px; right: 18px; width: 24px; height: 24px; }
.statistics-reference-runtime .dynamic span { display: block; padding-right: 28px; color: #1d1d1d; font: 500 14px/1 var(--font-title); }
.statistics-reference-runtime .dynamic strong { display: block; margin-top: 26px; color: #1d1d1d; font: 600 26px/1 var(--font-number); overflow-wrap: anywhere; }

.statistics-reference-breakdowns { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.statistics-reference-breakdowns .reference-section-copy { grid-column: 1 / -1; }
.statistics-reference-runtime .list2,
.statistics-reference-runtime .list3 { min-width: 0; padding: 24px 28px; border: 1px solid rgba(46,74,105,.1); border-radius: 24px; background: #fff; }
.statistics-reference-runtime .list2 h3,
.statistics-reference-runtime .list3 h3 { margin: 0 0 20px; color: #1d1d1d; font: 600 14px var(--font-ui); letter-spacing: 2px; text-transform: uppercase; }
.statistics-reference-runtime .reference-breakdown-row { display: grid; grid-template-columns: 24px minmax(70px, 1fr) auto minmax(80px, .8fr); gap: 10px; align-items: center; min-height: 48px; color: #1d1d1d; font-size: 14px; font-weight: 600; }
.statistics-reference-runtime .reference-breakdown-row > img { width: 24px; height: 24px; object-fit: contain; }
.statistics-reference-runtime .reference-breakdown-row strong { color: #67768c; font: 500 16px var(--font-ui); }
.statistics-reference-runtime .reference-breakdown-row i { display: block; height: 8px; overflow: hidden; border-radius: 128px; background: #e0e5ea; }
.statistics-reference-runtime .reference-breakdown-row b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #2276fd; }
.statistics-reference-runtime .list3 .reference-breakdown-row b { background: linear-gradient(180deg, #fd2226, #ec0a46); }

.statistics-reference-runtime .statistics-charts-section { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.statistics-reference-runtime .statistics-chart-shells { margin-top: 28px; }
.statistics-reference-runtime .statistics-chart-shells article { background: #fff; }

@media (max-width: 1180px) {
  .statistics-runtime-page.statistics-reference-runtime { margin-left: 252px; width: calc(100% - 288px); }
  .statistics-reference-runtime .statistics-reference-overview { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
  .statistics-reference-runtime .today-stat-cards { grid-template-columns: minmax(0, 480px); }
  .statistics-reference-runtime .statistic2 { width: 100%; }
}

@media (max-width: 860px) {
  .statistics-runtime-page.statistics-reference-runtime { margin-left: 16px; width: calc(100% - 32px); padding-top: 88px; gap: 28px; }
  .statistics-reference-filters { padding: 16px; }
  .statistics-reference-filters .date,
  .statistics-reference-filters .date2,
  .statistics-reference-filters .proj { flex-basis: 100%; }
  .statistics-reference-breakdowns { grid-template-columns: 1fr; }
  .statistics-reference-runtime .statistics-reference-overview { grid-template-columns: 1fr; }
  .statistics-reference-runtime .today-stat-cards { grid-template-columns: minmax(0, 1fr); }
  .statistics-reference-runtime .statistic2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding-top: 0; }
}

.statistics-runtime-page {
  box-sizing: border-box;
  margin-left: var(--statistics-content-left);
  width: min(1080px, var(--statistics-content-width));
  min-height: max(calc(100dvh - 398px), 900px);
  padding: 92px 0 104px;
  display: grid;
  gap: 24px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.statistics-title-copy {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.statistics-title-copy img {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  display: block;
}

.statistics-title-copy h1 {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.statistics-title-copy p {
  margin: 10px 0 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.statistics-refresh-button,
.statistics-filter-reset,
.statistics-filter-apply {
  min-width: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 20px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.statistics-refresh-button,
.statistics-filter-reset {
  border: 1px solid rgba(29, 29, 29, 0.1);
  background: #fff;
  color: #1d1d1d;
}

.statistics-filter-apply {
  border: 0;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(1, 10, 70, 0.24);
}

.statistics-refresh-button:disabled,
.statistics-filter-reset:disabled,
.statistics-filter-apply:disabled {
  cursor: default;
  opacity: 0.55;
}

.statistics-filter-card {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(185, 194, 205, 0.45);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 52px rgba(2, 10, 70, 0.08);
}

.statistics-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.statistics-field span {
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.statistics-field input,
.statistics-project-dropdown .payhot-dropdown-button {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 1px solid rgba(103, 118, 140, 0.22);
  border-radius: 14px;
  background: #fff;
  color: #1d1d1d;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.statistics-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.statistics-state-message {
  border-radius: 18px;
  padding: 16px 18px;
  color: #008f22;
  background: #dffbe6;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
}

.statistics-state-message.is-error {
  color: #ec0a46;
  background: #ffe8eb;
}

.statistics-loading-card {
  min-height: 520px;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 1px solid rgba(185, 194, 205, 0.45);
  border-radius: 24px;
  background: #fff;
  color: #67768c;
  box-shadow: 0 24px 52px rgba(2, 10, 70, 0.08);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
}

.statistics-loading-card img {
  width: 72px;
  height: 72px;
  opacity: 0.72;
}

.statistics-today-block,
.statistics-key-grid,
.statistics-split-section,
.statistics-charts-section {
  min-width: 0;
}

.statistics-section-title {
  margin: 0 0 16px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.statistics-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.statistics-hero-card {
  min-width: 0;
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  box-shadow: 0 20px 42px rgba(2, 10, 70, 0.08);
}

.statistics-hero-card img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.statistics-hero-card .statistics-hero-sparkline,
.statistics-hero-card .statistics-bar-chart {
  width: 92px;
  height: 58px;
  flex: 0 0 92px;
}

.statistics-hero-card .statistics-bar-chart {
  height: 64px;
}

.statistics-hero-card .statistics-bar-chart-value,
.statistics-hero-card .statistics-bar-chart-label {
  display: none;
}

.statistics-hero-card .statistics-bar-chart-item {
  grid-template-rows: 1fr;
}

.statistics-hero-card span,
.statistics-key-card span,
.statistics-reference-row span {
  display: block;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.statistics-hero-card strong {
  display: block;
  margin-top: 6px;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.statistics-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.statistics-key-card {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 18px;
  border: 1px solid rgba(185, 194, 205, 0.45);
  border-radius: 22px;
  background: #fff;
}

.statistics-key-card img {
  width: 40px;
  height: 40px;
}

.statistics-key-card strong {
  grid-column: 2;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.statistics-split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.statistics-reference-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(185, 194, 205, 0.45);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(2, 10, 70, 0.07);
}

.statistics-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.statistics-panel-head img {
  width: 32px;
  height: 32px;
}

.statistics-panel-head h2 {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.statistics-reference-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(185, 194, 205, 0.28);
}

.statistics-reference-row:first-of-type {
  border-top: 0;
}

.statistics-reference-row strong {
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.statistics-charts-section {
  padding: 22px;
  border: 1px solid rgba(185, 194, 205, 0.45);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(2, 10, 70, 0.08);
}

.statistics-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.statistics-period-note {
  margin: -6px 0 16px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.statistics-range-tabs button {
  height: 38px;
  border: 1px solid rgba(185, 194, 205, 0.7);
  border-radius: 12px;
  background: #fff;
  color: #67768c;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.statistics-range-tabs button.active {
  border-color: transparent;
  background: linear-gradient(180deg, #fd2226 0%, #ec0a46 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(1, 10, 70, 0.18);
}

.statistics-chart-shells {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.statistics-chart-shells article {
  min-width: 0;
  min-height: 445px;
  overflow: visible;
  padding: 18px;
  border: 1px solid rgba(185, 194, 205, 0.4);
  border-radius: 20px;
  background: #f7f9fc;
}

.statistics-chart-shells h3 {
  margin: 0 0 12px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.statistics-chart-shells img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  opacity: 0.92;
}

.statistics-chart-shells .statistics-area-chart-card {
  min-height: 375px;
}

.statistics-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.statistics-chart-card {
  min-width: 0;
  min-height: 470px;
  padding: 18px;
  border: 1px solid rgba(185, 194, 205, 0.45);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(2, 10, 70, 0.07);
}

.statistics-chart-card-head {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.statistics-chart-stage {
  min-width: 0;
  min-height: 375px;
}

.statistics-chart-stage .statistics-area-chart-card {
  min-height: 375px;
}

.statistics-chart-stage .statistics-bar-chart {
  height: 375px;
}

.statistics-chart-empty {
  min-height: 236px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(185, 194, 205, 0.8);
  border-radius: 18px;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

/* PayHot inline SVG charts. Kept in the global cabinet stylesheet because this
   app does not load the Blazor CSS-isolation bundle. */
.statistics-area-chart {
  position: relative;
  min-width: 0;
  max-width: 100%;
  outline: none;
}

.statistics-area-chart-card {
  position: relative;
  width: 100%;
  min-height: 405px;
  padding: 20px 24px 26px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 24px;
  background: #fff;
  overflow: visible;
}

.statistics-area-chart-y {
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 88px;
  width: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.statistics-area-chart-y span,
.statistics-area-chart-x span {
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
}

.statistics-area-chart-y span {
  text-align: left;
}

.statistics-area-chart-plot {
  position: absolute;
  left: 66px;
  right: 24px;
  top: 20px;
  bottom: 56px;
}

.statistics-area-chart-svg {
  display: block;
  width: 100%;
  height: calc(100% - 32px);
  overflow: visible;
}

.statistics-area-chart-grid-line,
.payment-link-svg-chart-grid-line {
  stroke: #e6e6ea;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.statistics-area-chart-line {
  fill: none;
  stroke: #00d512;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.statistics-area-chart-crosshair,
.payment-link-svg-chart-crosshair {
  stroke: #00d512;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.statistics-area-chart-hit,
.payment-link-svg-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.statistics-area-chart-x {
  position: relative;
  height: 48px;
  display: block;
  margin-top: 12px;
}

.statistics-area-chart-x span {
  position: absolute;
  top: 0;
  min-width: 0;
  text-align: center;
  overflow: visible;
  white-space: nowrap;
  transform-origin: top center;
  transform: translateX(-50%);
}

.statistics-area-chart-x span.active {
  color: #00d512;
}

.statistics-area-chart-x.is-dense span {
  font-size: 10px;
  transform: translateX(-50%) rotate(-42deg);
}

.statistics-area-chart-x.is-very-dense span {
  font-size: 9px;
}

.statistics-area-chart.is-compact {
  width: 100%;
  height: 64px;
}

.statistics-area-chart.is-compact .statistics-area-chart-svg {
  width: 100%;
  height: 100%;
}

.statistics-bar-chart {
  min-width: 0;
  height: 236px;
}

.statistics-bar-chart-bars {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 10px;
  align-items: end;
}

.statistics-bar-chart-item {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 22px 1fr 34px;
  gap: 8px;
  align-items: end;
}

.statistics-bar-chart-value {
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statistics-bar-chart-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  border-radius: 10px;
  background: rgba(230, 230, 234, 0.45);
  overflow: hidden;
}

.statistics-bar-chart-track span {
  width: 100%;
  min-height: 4px;
  border-radius: 10px 10px 0 0;
}

.statistics-bar-chart-label {
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-link-svg-chart {
  position: absolute;
  left: 20px;
  top: 237px;
  width: 456px;
  max-width: calc(100% - 40px);
  height: 426px;
  outline: none;
}

.payment-link-svg-chart-grid {
  position: absolute;
  left: 0;
  top: 4px;
  width: 392px;
  max-width: 100%;
  height: 267px;
  overflow: visible;
}

.payment-link-svg-chart-series-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Statistics link legend: only the checkbox toggles a chart series. */
.payment-link-statistics-runtime__card .legend-item {
  position: absolute;
  height: 28px;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #1d1d1d;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.payment-link-statistics-runtime__card .legend-clicks { left: 0; top: 0; }
.payment-link-statistics-runtime__card .legend-attempts { left: 192px; top: 0; }
.payment-link-statistics-runtime__card .legend-created { left: 0; top: 46px; }
.payment-link-statistics-runtime__card .legend-success { left: 192px; top: 46px; }

.payment-link-statistics-runtime__card .legend-item.is-muted { color: #9aa8ba; }

.payment-link-statistics-runtime__card .legend-item__input {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--legend-check-color);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.payment-links-runtime-page .payment-link-statistics-runtime__card .legend-item__text {
  position: static;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  place-items: initial;
  border-radius: 0;
}

/* The older payment-links canvas styles every span as a checkbox glyph.
   The statistics component now uses a real checkbox plus a text span, so
   neutralize that inherited decoration for its accessible text only. */
.payment-links-runtime-page .payment-link-statistics-runtime__card .legend-item__text::before,
.payment-links-runtime-page .payment-link-statistics-runtime__card .legend-item__text::after {
  content: none !important;
  display: none !important;
}

.payment-link-statistics-runtime__card .legend-item__input:checked {
  border-color: var(--legend-check-color);
  background-color: var(--legend-check-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.4 12 13.5 4.5' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.payment-link-statistics-runtime__card .legend-item__input:focus-visible { outline: 2px solid #1d1d1d; outline-offset: 3px; }

.chart-insight {
  position: absolute;
  z-index: 6;
  display: flex;
  width: 188px;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  transform: translate(-50%, -100%);
  margin-top: -16px;
  border: 1px solid rgba(46, 74, 105, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(2, 10, 70, 0.14);
  pointer-events: none;
}

.chart-insight__meta {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.chart-insight__heading {
  display:flex;
  min-width:0;
  align-items:center;
  gap:7px;
  color:#1d1d1d;
  font-family:var(--font-title);
  font-size:12px;
  font-weight:500;
  line-height:1.2;
}

.chart-insight__heading > span:last-child {
  min-width: 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.chart-insight__dot {
  flex:0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chart-series-color, #00d512);
}

.chart-insight strong {
  flex: 0 0 auto;
  color: #1d1d1d;
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .5px;
}

.chart-insight small {
  display: block;
  min-width: 0;
  color: #67768c;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.statistics-legacy-admin {
  box-sizing: border-box;
  margin-left: 392px;
  width: min(1080px, calc(100% - 464px));
  min-height: max(calc(100dvh - 398px), 900px);
  padding-bottom: 104px;
}

.statistics-legacy-admin.orders-page {
  margin-left: 392px;
}

/* Admin/support statistics keeps its operational data, but uses the PayHot admin surface. */
.statistics-legacy-admin.admin-payhot-page {
  padding-top: 92px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.statistics-legacy-admin.admin-payhot-page .page-card {
  gap: 26px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 253, 0.9));
}

.statistics-legacy-admin.admin-payhot-page .filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(46, 74, 105, 0.09);
  border-radius: 20px;
  background: rgba(240, 244, 248, 0.74);
}

.statistics-legacy-admin.admin-payhot-page .filter-grid .field {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #67768c;
  font: 600 12px var(--font-ui);
}

.statistics-legacy-admin.admin-payhot-page .filter-grid input,
.statistics-legacy-admin.admin-payhot-page .filter-grid select {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: #1d1d1d;
  padding: 0 14px;
  font: 600 13px var(--font-ui);
}

.statistics-legacy-admin.admin-payhot-page .analytics-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.statistics-legacy-admin.admin-payhot-page .analytics-range-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: #67768c;
  font: 700 12px var(--font-ui);
  cursor: pointer;
}

.statistics-legacy-admin.admin-payhot-page .analytics-range-tab.active {
  border-color: transparent;
  background: linear-gradient(180deg, #fd2226, #ec0a46);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(236, 10, 70, 0.18);
}

.statistics-legacy-admin.admin-payhot-page .detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.statistics-legacy-admin.admin-payhot-page .detail-grid > * {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(46, 74, 105, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.statistics-legacy-admin.admin-payhot-page .role-note,
.statistics-legacy-admin.admin-payhot-page .empty-block {
  border: 1px solid rgba(46, 74, 105, 0.09);
  border-radius: 16px;
  background: #f0f4f8;
  color: #67768c;
}

.statistics-legacy-admin.admin-payhot-page .table-wrap {
  overflow: auto;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: #ffffff;
}

.statistics-legacy-admin.admin-payhot-page .data-table thead th {
  background: #f0f4f8;
  color: #67768c;
  font: 700 11px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.statistics-legacy-admin.admin-payhot-page .data-table tbody tr:hover { background: rgba(34, 118, 253, 0.04); }

.statistics-legacy-admin.admin-payhot-page .statistics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.statistics-legacy-admin.admin-payhot-page .statistics-chart-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(24, 42, 64, 0.05);
}

/* Admin statistics: terminal accounting dialog. */
.statistics-accounting-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--payhot-modal-backdrop-z);
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  height: 100vh;
  height: 100svh;
  min-height: 100dvh;
  padding: 20px;
  overflow: hidden;
  background: rgba(11, 18, 30, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  isolation: isolate;
}

.statistics-accounting-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: calc(100dvh - 40px);
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: #f7f9fc;
  box-shadow: 0 24px 64px rgba(10, 25, 46, 0.24);
  color: #17243a;
}

.statistics-accounting-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(46, 74, 105, 0.1);
}

.statistics-accounting-kicker {
  margin-bottom: 6px;
  color: #74839a;
  font: 700 11px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statistics-accounting-modal .section-title {
  color: #17243a;
  font: 700 23px/1.2 var(--font-title);
}

.statistics-accounting-modal .section-subtitle {
  margin-top: 6px;
  color: #74839a;
  font: 500 13px/1.45 var(--font-ui);
}

.statistics-accounting-close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #526176;
  cursor: pointer;
  font: 400 26px/1 var(--font-ui);
}

.statistics-accounting-close:hover { background: #e9eef5; color: #17243a; }

.statistics-accounting-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.statistics-accounting-summary > * {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(46, 74, 105, 0.09);
  border-radius: 14px;
  background: #fff;
}

.statistics-accounting-form-section {
  padding: 20px;
  border: 1px solid rgba(46, 74, 105, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.statistics-accounting-form-title {
  margin-bottom: 8px;
  color: #17243a;
  font: 700 16px/1.3 var(--font-title);
}

.statistics-accounting-modal .role-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff5fb;
  color: #5d6d83;
  font: 500 12px/1.5 var(--font-ui);
}

.statistics-accounting-modal .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.statistics-accounting-modal .field { min-width: 0; }
.statistics-accounting-modal .field > span {
  display: block;
  margin-bottom: 7px;
  color: #5f6f85;
  font: 600 12px var(--font-ui);
}

.statistics-accounting-modal .field input,
.statistics-accounting-modal .field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(46, 74, 105, 0.16);
  border-radius: 12px;
  background: #fff;
  color: #17243a;
  font: 500 13px var(--font-ui);
}

.statistics-accounting-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.statistics-accounting-actions .ghost-btn,
.statistics-accounting-actions .primary-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .statistics-accounting-overlay { padding: 12px; }
  .statistics-accounting-modal { max-height: calc(100dvh - 24px); padding: 20px; border-radius: 20px; }
  .statistics-accounting-summary,
  .statistics-accounting-modal .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .statistics-accounting-actions { flex-direction: column-reverse; }
  .statistics-accounting-actions .ghost-btn,
  .statistics-accounting-actions .primary-btn { width: 100%; }
}

@media (max-width: 980px) {
  .statistics-legacy-admin.admin-payhot-page .filter-grid,
  .statistics-legacy-admin.admin-payhot-page .detail-grid,
  .statistics-legacy-admin.admin-payhot-page .statistics-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .statistics-legacy-admin.admin-payhot-page .page-card { padding: 18px; border-radius: 20px; }
  .statistics-legacy-admin.admin-payhot-page .filter-grid,
  .statistics-legacy-admin.admin-payhot-page .detail-grid,
  .statistics-legacy-admin.admin-payhot-page .statistics-chart-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1180px) {
  .statistics-runtime-page,
  .statistics-legacy-admin,
  .statistics-legacy-admin.orders-page {
    margin-left: 320px;
    width: calc(100% - 360px);
  }

  .statistics-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statistics-filter-actions {
    grid-column: 1 / -1;
  }

  .statistics-hero-metrics,
  .statistics-key-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .statistics-runtime-page,
  .statistics-legacy-admin,
  .statistics-legacy-admin.orders-page {
    margin-left: 24px;
    width: calc(100% - 48px);
  }

  .statistics-title-copy {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .statistics-title-copy .statistics-refresh-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .statistics-filter-card,
  .statistics-split-section,
  .statistics-chart-shells {
    grid-template-columns: 1fr;
  }
}

/* Unified cabinet shell footer modes:
   default dashboard/reference geometry keeps footer at PayHot baseline,
   content-flow cabinet pages can push footer below long page content. */
.figma-frame {
  --shell-footer-top: 985px;
  --shell-footer-gap: 72px;
  --shell-footer-height: 221px;
  width: 1440px;
  min-width: 0;
  min-height: 1214px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.figma-frame::before {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.cabinet-shell-underlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-width: 0;
  min-height: 1214px;
  isolation: isolate;
  overflow: visible;
}

.cabinet-page-slot {
  position: relative;
  z-index: 3;
  display: flow-root;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
}

.topbar {
  width: 100%;
  max-width: 100%;
}

.page-footer {
  position: absolute;
  left: 8px;
  top: var(--shell-footer-top);
  z-index: 2;
  width: 1424px;
  min-width: 0;
  height: var(--shell-footer-height);
  margin: 0;
}

.figma-frame:has(.admin-payhot-page),
.figma-frame:has(.orders-runtime-page),
.figma-frame:has(.payment-links-runtime-page),
.figma-frame:has(.cashbox-runtime-page),
.figma-frame:has(.cashouts-runtime-page),
.figma-frame:has(.settlements-runtime-page),
.figma-frame:has(.recurring-runtime-page),
.figma-frame:has(.disputes-runtime-page),
.figma-frame:has(.exports-runtime-page),
.figma-frame:has(.statistics-runtime-page),
.figma-frame:has(.statistics-legacy-admin),
.figma-frame:has(.profile-reference-runtime),
.figma-frame:has(.notifications-page),
.figma-frame:has(.merchant-projects-page),
.figma-frame:has(.merchant-project-detail-page) {
  width: min(1440px, 100%);
  min-height: calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px);
  min-height: max(100vh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  min-height: max(100svh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  min-height: max(100dvh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: none;
}

.figma-frame:has(.admin-payhot-page) .cabinet-shell-underlay,
.figma-frame:has(.orders-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.payment-links-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.cashbox-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.cashouts-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.settlements-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.recurring-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.disputes-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.exports-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.statistics-runtime-page) .cabinet-shell-underlay,
.figma-frame:has(.statistics-legacy-admin) .cabinet-shell-underlay,
.figma-frame:has(.profile-reference-runtime) .cabinet-shell-underlay,
.figma-frame:has(.notifications-page) .cabinet-shell-underlay,
.figma-frame:has(.merchant-projects-page) .cabinet-shell-underlay,
.figma-frame:has(.merchant-project-detail-page) .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px);
  min-height: max(100vh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  min-height: max(100svh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  min-height: max(100dvh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  height: auto;
}

.figma-frame:has(.admin-payhot-page) .cabinet-page-slot,
.figma-frame:has(.orders-runtime-page) .cabinet-page-slot,
.figma-frame:has(.payment-links-runtime-page) .cabinet-page-slot,
.figma-frame:has(.cashbox-runtime-page) .cabinet-page-slot,
.figma-frame:has(.cashouts-runtime-page) .cabinet-page-slot,
.figma-frame:has(.settlements-runtime-page) .cabinet-page-slot,
.figma-frame:has(.recurring-runtime-page) .cabinet-page-slot,
.figma-frame:has(.disputes-runtime-page) .cabinet-page-slot,
.figma-frame:has(.exports-runtime-page) .cabinet-page-slot,
.figma-frame:has(.statistics-runtime-page) .cabinet-page-slot,
.figma-frame:has(.statistics-legacy-admin) .cabinet-page-slot,
.figma-frame:has(.profile-reference-runtime) .cabinet-page-slot,
.figma-frame:has(.notifications-page) .cabinet-page-slot,
.figma-frame:has(.merchant-projects-page) .cabinet-page-slot,
.figma-frame:has(.merchant-project-detail-page) .cabinet-page-slot {
  flex: 0 0 auto;
  min-height: calc(var(--shell-footer-top) - var(--shell-footer-gap));
}

.figma-frame:has(.admin-payhot-page) .page-footer,
.figma-frame:has(.orders-runtime-page) .page-footer,
.figma-frame:has(.payment-links-runtime-page) .page-footer,
.figma-frame:has(.cashbox-runtime-page) .page-footer,
.figma-frame:has(.cashouts-runtime-page) .page-footer,
.figma-frame:has(.settlements-runtime-page) .page-footer,
.figma-frame:has(.recurring-runtime-page) .page-footer,
.figma-frame:has(.disputes-runtime-page) .page-footer,
.figma-frame:has(.exports-runtime-page) .page-footer,
.figma-frame:has(.statistics-runtime-page) .page-footer,
.figma-frame:has(.statistics-legacy-admin) .page-footer,
.figma-frame:has(.profile-reference-runtime) .page-footer,
.figma-frame:has(.notifications-page) .page-footer,
.figma-frame:has(.merchant-projects-page) .page-footer,
.figma-frame:has(.merchant-project-detail-page) .page-footer {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  width: calc(100% - 16px);
  max-width: 1424px;
  height: var(--shell-footer-height);
  margin: var(--shell-footer-gap) 8px 0;
}

/* Notifications may contain an arbitrarily long feed. Unlike the original
   reference canvas, the page must participate in the shell flow at every
   desktop width so the footer follows the actual feed height. */
@media (min-width: 768px) {
  .figma-frame.notifications-frame .cabinet-content-rail {
    position: relative;
    width: 976px;
    max-width: calc(100% - 464px);
    min-width: 0;
    margin: 0 72px 0 392px;
  }

  .figma-frame.notifications-frame .notifications-page {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 109px;
  }
}

/* Profile is an absolute-reference composition. Keep its footer in normal
   document flow without relying on :has() after Interactive Server renders. */
.figma-frame.profile-content-frame {
  width: min(1440px, 100%);
  min-height: max(100dvh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.figma-frame.profile-content-frame .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: max(100dvh, calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px));
  height: auto;
}

.figma-frame.profile-content-frame .cabinet-page-slot {
  flex: 0 0 auto;
  min-height: calc(var(--shell-footer-top) - var(--shell-footer-gap));
}

.figma-frame.profile-content-frame .page-footer {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  width: calc(100% - 16px);
  max-width: 1424px;
  height: var(--shell-footer-height);
  margin: var(--shell-footer-gap) 8px 0;
}

/* Wide cabinet shell.
   AutoHTML was exported on a 1440px canvas, but cabinet content pages must not
   become a centred 1440px island on 2K and ultrawide displays. The frame is
   fluid only outside the dashboard reference route; page-level max-widths
   remain responsible for the visual rhythm of their own PayHot sections. */
@media (min-width: 1440px) {
  .figma-frame.cabinet-fluid-frame {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .figma-frame.cabinet-fluid-frame .cabinet-shell-underlay,
  .figma-frame.cabinet-fluid-frame .cabinet-page-slot,
  .figma-frame.cabinet-fluid-frame .topbar {
    width: 100%;
    max-width: none;
  }

  .figma-frame.cabinet-fluid-frame .page-footer {
    width: calc(100% - 16px);
    max-width: none;
  }

  .figma-frame.cabinet-fluid-frame .bell-button {
    left: auto;
    right: 132px;
  }

  .figma-frame.cabinet-fluid-frame .profile-button,
  .figma-frame.cabinet-fluid-frame .profile-dropdown {
    left: auto;
    right: 72px;
  }

  .figma-frame.cabinet-fluid-frame .profile-dropdown-backdrop {
    width: 100%;
    max-width: none;
  }

  .figma-frame.cabinet-fluid-frame .footer-links,
  .figma-frame.dashboard-fluid-frame .footer-links {
    width: calc(100% - 128px);
  }

  .figma-frame.cabinet-fluid-frame .footer-links .uptime,
  .figma-frame.cabinet-fluid-frame .footer-links a.uptime,
  .figma-frame.dashboard-fluid-frame .footer-links .uptime,
  .figma-frame.dashboard-fluid-frame .footer-links a.uptime {
    left: auto;
    right: 0;
  }

.figma-frame.cabinet-fluid-frame .footer-apps {
    left: auto;
    right: 64px;
    max-width: calc(100% - 668px);
    overflow: hidden;
  }
}

/* Dashboard content used to be a 1440px absolute-positioned composition.
   Keep the reference proportions at 1440px, but let the two content columns
   and the shell grow or stack with the available viewport. */
.figma-frame.dashboard-fluid-frame {
  width: 100%;
  max-width: none;
  min-height: calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px);
  margin: 0;
  overflow: visible;
}

.figma-frame.dashboard-fluid-frame .cabinet-shell-underlay {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(var(--shell-footer-top) + var(--shell-footer-height) + 8px);
}

.figma-frame.dashboard-fluid-frame .cabinet-page-slot {
  flex: 0 0 auto;
  min-height: calc(var(--shell-footer-top) - var(--shell-footer-gap));
}

.figma-frame.dashboard-fluid-frame .page-footer {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  width: calc(100% - 16px);
  max-width: none;
  margin: var(--shell-footer-gap) 8px 0;
}

.figma-frame.dashboard-fluid-frame .topbar {
  width: 100%;
  max-width: none;
}

@media (min-width: 1440px) {
  .figma-frame.dashboard-fluid-frame .bell-button {
    left: auto;
    right: 132px;
  }

  .figma-frame.dashboard-fluid-frame .profile-button,
  .figma-frame.dashboard-fluid-frame .profile-dropdown {
    left: auto;
    right: 72px;
  }

  .figma-frame.dashboard-fluid-frame .footer-links {
    width: calc(100% - 128px);
  }

  .figma-frame.dashboard-fluid-frame .footer-apps {
    left: auto;
    right: 64px;
    max-width: calc(100% - 668px);
    overflow: hidden;
  }
}

.dashboard-runtime,
.dashboard-runtime * {
  box-sizing: border-box;
}

.dashboard-runtime {
  width: 976px;
  max-width: none;
  min-width: 0;
  margin-left: 392px;
  padding: 109px 0 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 45px;
  color: #1d1d1d;
  font-family: var(--font-ui);
}

.dashboard-main-column,
.dashboard-metrics-column {
  display: grid;
  align-content: start;
  min-width: 0;
}

.dashboard-main-column {
  gap: 24px;
}

.dashboard-metrics-column {
  gap: 8px;
}

.dashboard-runtime .page-title,
.dashboard-runtime .metrics-title,
.dashboard-runtime .store-card,
.dashboard-runtime .quick-actions,
.dashboard-runtime .stats-wide,
.dashboard-runtime .daily-dynamics,
.dashboard-runtime .metric-card {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  width: 100%;
  min-width: 0;
}

.dashboard-runtime .page-title,
.dashboard-runtime .metrics-title {
  height: 66px;
}

.dashboard-runtime .page-title p,
.dashboard-runtime .metrics-title p {
  position: static;
  width: auto;
  max-width: 100%;
  margin-top: 13px;
}

.dashboard-runtime .metrics-title h2 {
  position: static;
}

.dashboard-runtime .store-card {
  height: 104px;
  margin-top: 0;
}

.dashboard-runtime .store-card-shadow,
.dashboard-runtime .store-card-body,
.dashboard-runtime .store-card-effect,
.dashboard-runtime .store-card-texture,
.dashboard-runtime .store-card-vignette {
  width: 100%;
}

.dashboard-runtime .store-settings {
  left: auto;
  right: 28px;
}

.dashboard-runtime .quick-actions {
  height: 186px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-runtime .quick-card,
.dashboard-runtime .quick-card-payments,
.dashboard-runtime .quick-card-docs,
.dashboard-runtime .quick-card-project {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
}

.dashboard-runtime .quick-card .quick-visual {
  width: 100%;
  max-width: 100%;
}

.dashboard-compact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid rgba(185, 194, 205, 0.4);
  border-bottom: 1px solid rgba(185, 194, 205, 0.4);
}

.dashboard-runtime .stats-wide {
  height: 126px;
  border: 0;
}

.dashboard-runtime .stats-total,
.dashboard-runtime .stats-sum {
  width: auto;
}

.dashboard-runtime .stats-total {
  padding-right: 20px;
  border-right: 1px solid rgba(185, 194, 205, 0.4);
}

.dashboard-runtime .stats-sum {
  padding-left: 20px;
}

.dashboard-runtime .stats-total::before,
.dashboard-runtime .stats-total::after {
  display: none;
}

.dashboard-runtime .stats-wide h3 {
  margin-top: 24px;
}

.dashboard-runtime .daily-dynamics {
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-runtime .daily-dynamics h2 {
  position: static;
  grid-column: 1 / -1;
  margin: 0 0 24px;
}

.dashboard-runtime .daily-card,
.dashboard-runtime .daily-created,
.dashboard-runtime .daily-success,
.dashboard-runtime .daily-errors {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
}

.dashboard-runtime .daily-card-icon {
  right: 18px;
  left: auto;
}

.dashboard-runtime .daily-progress {
  width: calc(100% - 36px);
  display: grid;
  grid-template-columns: repeat(13, minmax(4px, 1fr));
  gap: 2px;
}

.dashboard-runtime .daily-progress .seg,
.dashboard-runtime .daily-progress .seg-8,
.dashboard-runtime .daily-progress .seg-9 {
  width: auto;
}

.dashboard-runtime .metric-card {
  height: 205px;
}

.dashboard-runtime .metric-inner {
  width: calc(100% - 8px);
  max-width: calc(100% - 8px);
}

.dashboard-runtime .bar-chart,
.dashboard-runtime .amount-chart {
  right: 24px;
  left: auto;
}

/* Reference-scale contract for all cabinet pages. `zoom` participates in
   layout, so header, content and footer stay one proportional composition. */
@media (min-width: 1440px) {
  .figma-frame,
  .figma-frame.cabinet-fluid-frame,
  .figma-frame.dashboard-fluid-frame {
    width: var(--cabinet-layout-width, 100%);
    max-width: none;
    margin: 0;
    zoom: var(--cabinet-reference-scale, 1);
  }

  /* This overlay lives inside the zoomed cabinet frame. Its block size must
     stay equal to the visual viewport so grid centering remains vertical. */
  .figma-frame .project-create-overlay {
    top: 0;
    bottom: auto;
    height: calc(100vh / var(--cabinet-reference-scale, 1));
    height: calc(100svh / var(--cabinet-reference-scale, 1));
    min-height: calc(100dvh / var(--cabinet-reference-scale, 1));
  }
}

/* Wide-screen content rail. The shell remains full-width; only page roots are
   centred in the workspace between the sidebar and the right gutter. */
@media (min-width: 1600px) {
  .topbar {
    --balance-group-width: 673px;
  }

  .balance-card-hold {
    left: calc(50% - (var(--balance-group-width) / 2));
  }

  .balance-card-available {
    left: calc(50% - (var(--balance-group-width) / 2) + 258px);
  }

  .cabinet-page-slot > .cabinet-content-rail {
    position: relative;
    width: calc(100% - 464px);
    min-width: 0;
    max-width: none;
    margin-left: 392px;
    margin-right: 72px;
  }

  .cabinet-content-rail > :is(
    .dashboard-runtime,
    .orders-runtime-page,
    .payment-links-runtime-page,
    .cashbox-runtime-page,
    .cashouts-runtime-page,
    .settlements-runtime-page,
    .recurring-runtime-page,
    .disputes-runtime-page,
    .exports-runtime-page,
    .statistics-runtime-page,
    .statistics-legacy-admin,
    .profile-reference-runtime,
    .profile-autohtml,
    .two-factor-add-autohtml,
    .notifications-page,
    .merchant-projects-page,
    .merchant-project-detail-page,
    .api-docs-runtime-page,
    .admin-payhot-page
  ) {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cabinet-content-rail > .notifications-page {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 109px !important;
  }

  .cabinet-content-rail > .exports-runtime-page .exports-content {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1180px) {
  .dashboard-runtime {
    width: calc(100% - 400px);
    max-width: none;
    margin-left: 360px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .dashboard-main-column {
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .dashboard-runtime {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 96px;
    gap: 28px;
  }

  .dashboard-runtime .quick-actions,
  .dashboard-runtime .daily-dynamics {
    grid-template-columns: 1fr;
    height: auto;
  }

  .dashboard-runtime .quick-card {
    height: 160px;
  }

  .dashboard-runtime .quick-card .quick-visual {
    height: 160px;
  }

  .dashboard-runtime .dashboard-compact-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-runtime .stats-total {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(185, 194, 205, 0.4);
  }

  .dashboard-runtime .stats-sum {
    padding-left: 0;
  }
}

@media (max-width: 1439px) {
  .figma-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
  }

  .cabinet-shell-underlay,
  .cabinet-page-slot,
  .topbar {
    width: 100%;
    max-width: 100%;
  }

  .page-footer {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
  }

  .bell-button {
    left: auto;
    right: 132px;
  }

  .profile-button {
    left: auto;
    right: 72px;
  }

  .profile-dropdown {
    left: auto;
    right: 72px;
  }

  .profile-dropdown-backdrop {
    width: 100%;
    max-width: 100%;
  }

  .figma-frame .footer-links {
    width: calc(100% - 128px);
  }

  .figma-frame .footer-links .uptime,
  .figma-frame .footer-links a.uptime {
    left: auto;
    right: 0;
  }

  .footer-apps {
    left: auto;
    right: 64px;
    max-width: calc(100% - 668px);
    overflow: hidden;
  }

  .profile-reference-runtime .profile-reference-section,
  .profile-reference-runtime .profile-autohtml,
  .profile-reference-runtime .profile-autohtml ._13,
  .profile-reference-runtime .profile-autohtml ._13-2-2-fa,
  .profile-reference-runtime .two-factor-add-autohtml,
  .profile-reference-runtime .two-factor-add-autohtml ._13-2-2-fa {
    width: 100%;
    max-width: 100%;
  }

  .profile-reference-runtime .profile-reference-section,
  .profile-reference-runtime .profile-autohtml,
  .profile-reference-runtime .two-factor-add-autohtml {
    overflow-x: hidden;
  }

  .metrics-title,
  .metric-card {
    left: auto;
    right: 72px;
    width: clamp(260px, calc(100% - 999px), 441px);
    min-width: 0;
  }

  .metric-card {
    overflow: hidden;
  }

  .metric-card .metric-inner {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
  }

  .notifications-page {
    width: calc(100% - 464px);
    max-width: calc(100% - 464px);
  }

  .notifications-hero,
  .notifications-feed-card {
    width: 100%;
    max-width: 100%;
  }

  .figma-frame:has(.admin-payhot-page),
  .figma-frame:has(.orders-runtime-page),
  .figma-frame:has(.payment-links-runtime-page),
  .figma-frame:has(.cashbox-runtime-page),
  .figma-frame:has(.cashouts-runtime-page),
  .figma-frame:has(.settlements-runtime-page),
  .figma-frame:has(.recurring-runtime-page),
  .figma-frame:has(.disputes-runtime-page),
  .figma-frame:has(.exports-runtime-page),
  .figma-frame:has(.statistics-runtime-page),
  .figma-frame:has(.statistics-legacy-admin),
  .figma-frame:has(.profile-reference-runtime),
  .figma-frame:has(.notifications-page),
  .figma-frame:has(.merchant-projects-page),
  .figma-frame:has(.merchant-project-detail-page) {
    width: 100%;
    transform: none;
    margin: 0;
  }

  body {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }
}

@media (max-width: 1180px) {
  .dashboard-runtime .metrics-title,
  .dashboard-runtime .metric-card {
    right: auto;
    width: 100%;
  }

  .api-docs-runtime-page.api-reference-content {
    width: min(974px, calc(100% - 48px));
    margin: 96px 24px 0;
  }

  .api-docs-runtime-page .api-code-grid,
  .api-docs-runtime-page .api-mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .api-docs-runtime-page.api-reference-content {
    width: calc(100% - 32px);
    gap: 24px;
    margin: 84px 16px 0;
  }

  .api-docs-runtime-page .api-page-heading {
    display: grid;
    gap: 16px;
  }

  .api-docs-runtime-page .api-page-heading h1 {
    font-size: 32px;
    line-height: 32px;
  }

  .api-docs-runtime-page .api-heading-actions {
    justify-content: flex-start;
  }

  .api-docs-runtime-page .api-tabs {
    gap: 14px 22px;
  }

  .api-docs-runtime-page .api-code-card {
    height: 540px;
  }

  .api-docs-runtime-page .code-sample {
    font-size: 12px;
    line-height: 17px;
  }

  .api-docs-runtime-page .code-lines {
    font-size: 12px;
    line-height: 17px;
  }

  .api-docs-runtime-page .api-info-callout p {
    padding-right: 18px;
  }
}

/* Unified viewport modal contract.
   These components are rendered by page content, but visually they must live
   above the entire cabinet shell: header, menu, footer, chat and page content. */
:root {
  --payhot-modal-backdrop-z: 2147483000;
  --payhot-modal-panel-z: 2147483010;
}

.orders-detail-backdrop,
.drawer-backdrop,
.admin-payhot-backdrop,
.cashbox-method-editor-backdrop,
.cashbox-request-backdrop,
.settlements-runtime-page .detail-backdrop,
.cashout-backdrop,
.recurring-overlay-backdrop,
.payment-links-runtime-page .payment-link-qr-scrim,
.payment-links-runtime-page .statistics-backdrop,
.exports-detail-overlay::before,
.export-create-scrim,
.notification-dialog-backdrop,
.profile-reference-modal-backdrop,
.profile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--payhot-modal-backdrop-z);
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  max-width: 100%;
  border: 0;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cashbox-method-editor-overlay,
.cashbox-request-overlay,
.cashout-overlay,
.exports-detail-overlay,
.export-create-overlay,
.project-create-overlay,
.payment-links-runtime-page .create-link-modal,
.payment-links-runtime-page .created-link-modal,
.payment-links-runtime-page .payment-link-qr-modal,
.payment-links-runtime-page .payment-link-statistics-overlay,
.notification-dialog-root,
.profile-reference-modal-layer,
.profile-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: var(--payhot-modal-backdrop-z);
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100dvh;
  max-width: 100%;
  overflow: visible;
  isolation: isolate;
}

.profile-overlay-root {
  position: fixed;
  inset: 0;
  z-index: var(--payhot-modal-backdrop-z);
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100dvh;
  min-width: 0;
  max-width: 100%;
  isolation: isolate;
  overflow: hidden;
}

.profile-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  border: 0;
  background: rgba(11, 18, 30, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.profile-overlay-root .profile-reference-modal-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100dvh;
  pointer-events: auto;
}

.profile-overlay-root .profile-reference-modal-stage > * {
  pointer-events: auto;
}

.payment-links-runtime-page .create-link-modal,
.payment-links-runtime-page .created-link-modal {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cabinet-page-slot:has(.orders-detail-backdrop),
.cabinet-page-slot:has(.drawer-backdrop),
.cabinet-page-slot:has(.statistics-accounting-overlay),
.cabinet-page-slot:has(.admin-payhot-backdrop),
.cabinet-page-slot:has(.cashbox-method-editor-overlay),
.cabinet-page-slot:has(.cashbox-request-overlay),
.cabinet-page-slot:has(.settlements-runtime-page .detail-backdrop),
.cabinet-page-slot:has(.payhot-overlay),
.cabinet-page-slot:has(.cashout-overlay),
.cabinet-page-slot:has(.recurring-overlay-backdrop),
.cabinet-page-slot:has(.create-link-modal),
.cabinet-page-slot:has(.created-link-modal),
.cabinet-page-slot:has(.payment-link-qr-modal),
.cabinet-page-slot:has(.payment-link-statistics-overlay),
.cabinet-page-slot:has(.exports-detail-overlay),
.cabinet-page-slot:has(.export-create-overlay),
.cabinet-page-slot:has(.project-create-overlay),
.cabinet-page-slot:has(.notification-dialog-root),
.cabinet-page-slot:has(.profile-reference-modal-layer),
.cabinet-page-slot:has(.profile-drawer-layer) {
  z-index: calc(var(--payhot-modal-backdrop-z) - 10);
}

/* Operations pages keep their content rail in a dedicated stacking context.
   Promote that shell while a shared overlay is open so its viewport backdrop
   also covers the desktop header and navigation, rather than only the rail. */
#figmaFrame.figma-frame.operations-shell .cabinet-shell-underlay:has(.payhot-overlay) {
  z-index: calc(var(--payhot-modal-backdrop-z) - 20);
}

#figmaFrame.figma-frame.operations-shell .cabinet-page-slot:has(.payhot-overlay) {
  z-index: calc(var(--payhot-modal-backdrop-z) - 10);
}

.order-detail-panel,
.orders-filter-legacy-panel,
.admin-payhot-drawer:not(.users-detail-drawer):not(.users-create-drawer),
.admin-payhot-page .drawer-card.admin-payhot-drawer,
.method-editor-panel,
.cashbox-admin-drawer,
.cashbox-request-panel,
.settlement-detail-panel,
.cashout-drawer,
.recurring-drawer,
.recurring-form-drawer,
.recurring-created-modal,
.payment-links-runtime-page .payment-link-qr-panel,
.payment-links-runtime-page .statistics-modal,
.exports-detail-panel,
.export-create-panel,
.project-create-modal,
.notification-detail-modal,
.notification-raw-modal,
.profile-reference-modal-stage,
.profile-drawer {
  z-index: var(--payhot-modal-panel-z);
}

.orders-detail-backdrop,
.drawer-backdrop,
.admin-payhot-backdrop,
.cashbox-method-editor-backdrop,
.cashbox-request-backdrop,
.settlements-runtime-page .detail-backdrop,
.cashout-backdrop,
.recurring-overlay-backdrop,
.payment-links-runtime-page .payment-link-qr-scrim,
.payment-links-runtime-page .statistics-backdrop,
.exports-detail-overlay::before,
.export-create-scrim,
.notification-dialog-backdrop,
.profile-reference-modal-backdrop,
.profile-drawer-backdrop {
  background: rgba(11, 18, 30, 0.3);
}

/*
 * Payment-link creation now uses the shared viewport-level PayhotOverlay.
 * The AutoHTML children keep their coordinates, but the drawer itself owns
 * the viewport geometry and the only scroll container.
 */
.payment-links-create-overlay .payment-links-create-panel {
  --payhot-overlay-edge: 24px;
  --payhot-overlay-width: 512px;
  --plink-panel-right: 0px;
  --plink-panel-width: 100%;
  --plink-card-width: calc(100% - 16px);
  --plink-inner-right: 32px;
  --plink-half-right: 260px;
  position: fixed;
  inset: var(--payhot-overlay-edge) var(--payhot-overlay-edge) var(--payhot-overlay-edge) auto;
  width: min(var(--payhot-overlay-width), calc(100vw - (var(--payhot-overlay-edge) * 2)));
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - (var(--payhot-overlay-edge) * 2));
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 24px 90px rgba(0, 8, 33, 0.22);
}

.payment-links-create-overlay .payment-links-create-panel::before {
  content: none;
}

.payment-links-create-overlay .payment-links-create-panel .create-link-shell {
  right: 0;
  width: 100%;
}

.payment-links-create-overlay .payment-links-create-panel .create-link-panel-bg {
  right: 8px;
  width: calc(100% - 16px);
}

/* Orders detail uses the common viewport-level drawer contract. */
.orders-detail-overlay .order-detail-panel {
  --payhot-overlay-edge: 24px;
  --payhot-overlay-width: 512px;
  position: fixed;
  inset: var(--payhot-overlay-edge) var(--payhot-overlay-edge) var(--payhot-overlay-edge) auto;
  width: min(var(--payhot-overlay-width), calc(100vw - (var(--payhot-overlay-edge) * 2)));
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - (var(--payhot-overlay-edge) * 2));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 32px;
  background: #f0f4f8;
  box-shadow: 0 24px 90px rgba(0, 8, 33, 0.22);
}

@media (min-width: 768px) {
  .orders-detail-overlay .mobile-order-backoffice-details > summary {
    display: none;
  }

  .orders-detail-overlay .mobile-order-backoffice-details {
    padding: 0;
  }
}

@media (max-width: 620px) {
  .payment-links-create-overlay .payment-links-create-panel {
    --plink-panel-width: 100%;
    --plink-card-width: calc(100% - 16px);
    --plink-inner-right: 32px;
    --plink-half-right: 32px;
  }

  .payment-links-create-overlay .payment-links-create-panel .create-field,
  .payment-links-create-overlay .payment-links-create-panel .lifetime-field,
  .payment-links-create-overlay .payment-links-create-panel .extra-fields,
  .payment-links-create-overlay .payment-links-create-panel .create-link-submit,
  .payment-links-create-overlay .payment-links-create-panel .create-link-title,
  .payment-links-create-overlay .payment-links-create-panel .create-link-subtitle,
  .payment-links-create-overlay .payment-links-create-panel .create-link-section-title,
  .payment-links-create-overlay .payment-links-create-panel .currency-field,
  .payment-links-create-overlay .payment-links-create-panel .amount-field,
  .payment-links-create-overlay .payment-links-create-panel .amount-min-field,
  .payment-links-create-overlay .payment-links-create-panel .amount-max-field,
  .payment-links-create-overlay .payment-links-create-panel .limit-payments-field,
  .payment-links-create-overlay .payment-links-create-panel .limit-amount-field {
    width: calc(100% - 64px);
  }
}

/* Operations detail drawers are rendered by PayhotOverlay, outside page CSS isolation. */
.payhot-overlay-panel.admin-operations-panel {
  --payhot-overlay-edge: 24px;
  --admin-operations-panel-width: 640px;
  box-sizing: border-box;
  width: min(var(--admin-operations-panel-width), calc(100vw - (var(--payhot-overlay-edge) * 2)));
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 20px;
  background: #f0f4f8;
  box-shadow: 0 24px 90px rgba(0, 8, 33, 0.22);
}

.payhot-overlay-panel.admin-cashbox-details-panel,
.payhot-overlay-panel.admin-dispute-drawer {
  --admin-operations-panel-width: 680px;
}

/* The bank-chargeback form is a dedicated admin workflow, not a generic detail slot. */
.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create {
  display: grid;
  gap: 18px;
  min-width: 0;
  color: #1d2939;
  font-family: var(--font-ui);
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe3eb;
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__header > div {
  min-width: 0;
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__header p {
  margin: 0 0 6px;
  color: #67768c;
  font: 700 11px/1 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__header h2 {
  margin: 0;
  color: #1d2939;
  font: 600 26px/1.18 var(--font-title);
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__header span {
  display: block;
  margin-top: 8px;
  color: #67768c;
  font: 600 13px/1.45 var(--font-ui);
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dfe6ee;
  border-radius: 50%;
  color: #526176;
  background: #fff;
  font: 400 24px/1 var(--font-ui);
  cursor: pointer;
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__close:hover {
  color: #b4233a;
  border-color: #efb9c2;
  background: #fff7f8;
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__notice {
  margin: 0;
  border: 1px solid #f0d9a4;
  border-radius: 12px;
  padding: 12px 14px;
  color: #76500a;
  background: #fff9ea;
  font: 600 12px/1.5 var(--font-ui);
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__actions {
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 2px;
}

.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__actions button:disabled,
.payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__close:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.payhot-overlay-panel.crypto-processing-accounting-repair-panel {
  --admin-operations-panel-width: 860px;
}

.crypto-processing-accounting-repair {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.crypto-processing-accounting-repair .drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.crypto-processing-accounting-repair .drawer-head > div {
  min-width: 0;
}

.crypto-processing-accounting-repair .table-wrap {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  .payhot-overlay--drawer-right .payhot-overlay-panel.admin-operations-panel {
    inset: calc(12px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 16px;
    border-radius: 20px;
  }

  .payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create {
    gap: 14px;
  }

  .payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__header h2 {
    font-size: 22px;
  }

  .payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__grid {
    grid-template-columns: 1fr;
  }

  .payhot-overlay-panel.admin-dispute-drawer .admin-dispute-create__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Recurring actions are supplied through a detail slot and need global panel styles. */
.admin-payhot-panel-overlay .admin-recurring-actions {
  min-width: 0;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  padding: 15px;
  color: #1d2939;
  background: #f8fafc;
  font-family: var(--font-ui);
}

.admin-payhot-panel-overlay .admin-recurring-actions h3 {
  margin: 0 0 8px;
  font: 700 14px/1.2 var(--font-title);
}

.admin-payhot-panel-overlay .admin-recurring-actions > p {
  margin: 0;
  color: #67768c;
  font: 600 12px/1.4 var(--font-ui);
}

.admin-payhot-panel-overlay .admin-recurring-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.admin-payhot-panel-overlay .admin-recurring-actions button {
  min-height: 40px;
  border: 1px solid #d4dce5;
  border-radius: 9px;
  padding: 0 12px;
  color: #34445c;
  background: #fff;
  font: 700 12px/1 var(--font-ui);
  cursor: pointer;
}

.admin-payhot-panel-overlay .admin-recurring-actions button.is-primary {
  border-color: #ec0a46;
  color: #fff;
  background: #ec0a46;
}

.admin-payhot-panel-overlay .admin-recurring-actions button.is-danger {
  border-color: #efb9c2;
  color: #b4233a;
  background: #fff7f8;
}

.admin-payhot-panel-overlay .admin-recurring-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 767px) {
  .admin-payhot-panel-overlay .admin-recurring-actions {
    padding: 13px;
  }

  .admin-payhot-panel-overlay .admin-recurring-actions > div > button {
    flex: 1 1 160px;
  }
}

/* Slotted admin actions keep the parent scope, so their controls need a shared overlay contract. */
.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  padding: 15px;
  color: #1d2939;
  background: #f8fafc;
  font-family: var(--font-ui);
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions h3,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions h3,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions h3,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form h3 {
  margin: 0 0 12px;
  color: #1d2939;
  font: 700 14px/1.2 var(--font-title);
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions__grid,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions__grid,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions__grid,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions label,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions label,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions label,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #526176;
  font: 700 11px/1.2 var(--font-ui);
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions input,
.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions textarea,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions input,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions textarea,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions input,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions textarea,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form input,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form textarea,
.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions .payhot-dropdown-button,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions .payhot-dropdown-button,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions .payhot-dropdown-button,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form .payhot-dropdown-button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #d4dce5;
  border-radius: 9px;
  padding: 9px 10px;
  outline: 0;
  color: #1d2939;
  background: #fff;
  font: 600 12px/1.35 var(--font-ui);
}

.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form .payhot-dropdown-button {
  min-height: 42px;
  padding-inline: 12px;
  font-size: 13px;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions textarea,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions textarea,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions textarea {
  min-height: 76px;
  resize: vertical;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions input:focus,
.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions textarea:focus,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions input:focus,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions textarea:focus,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions input:focus,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions textarea:focus,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form input:focus,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form textarea:focus {
  border-color: #ec0a46;
  box-shadow: 0 0 0 3px rgba(236, 10, 70, 0.12);
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions input:disabled,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions input:disabled,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions input:disabled,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form input:disabled,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form .payhot-dropdown-button:disabled {
  color: #67768c;
  background: #edf1f5;
  cursor: not-allowed;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions__wide,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions__wide,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions__wide,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form__wide {
  grid-column: 1 / -1;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions__buttons,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions__buttons,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions__buttons,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer {
  justify-content: flex-end;
  padding-top: 4px;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions__buttons button,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions__buttons button,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions__buttons button,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer button {
  min-height: 40px;
  border: 1px solid #d4dce5;
  border-radius: 9px;
  padding: 0 12px;
  color: #34445c;
  background: #fff;
  font: 700 12px/1 var(--font-ui);
  cursor: pointer;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashout-actions__buttons .is-primary,
.payhot-overlay-panel.admin-operations-panel .admin-settlement-actions__buttons .is-primary,
.payhot-overlay-panel.admin-operations-panel .admin-dispute-actions__buttons .is-primary,
.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer .is-primary {
  border-color: #ec0a46;
  color: #fff;
  background: #ec0a46;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer .is-secondary {
  border-color: #e5ebf1;
  background: #e5ebf1;
}

.payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer .is-danger {
  border-color: #fde9ec;
  color: #b4233a;
  background: #fde9ec;
}

@media (max-width: 767px) {
  .payhot-overlay-panel.admin-operations-panel .admin-cashout-actions,
  .payhot-overlay-panel.admin-operations-panel .admin-settlement-actions,
  .payhot-overlay-panel.admin-operations-panel .admin-dispute-actions,
  .payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form {
    padding: 13px;
  }

  .payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form__grid {
    grid-template-columns: 1fr;
  }

  .payhot-overlay-panel.admin-operations-panel .admin-cashbox-method-form footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Donor merchant project-detail rail contract. */
@media (min-width: 768px) and (max-width: 1599px) {
  .figma-frame:has(.merchant-project-detail-page) .cabinet-page-slot > .cabinet-content-rail {
    position: relative;
    width: calc(100% - 392px);
    min-width: 0;
    max-width: none;
    margin-left: 392px;
    margin-right: 0;
  }

  .figma-frame:has(.merchant-project-detail-page) .cabinet-content-rail .merchant-project-detail-page.orders-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .figma-frame:has(.merchant-project-detail-page) .merchant-project-detail-page .approve-page-content,
  .figma-frame:has(.merchant-project-detail-page) .merchant-project-detail-page .settings-page-content {
    width: min(976px, 100%) !important;
    max-width: 976px !important;
  }
}

/* Exact donor footer geometry, scoped to the merchant cabinet. */
@media (min-width: 768px) {
  .merchant-cabinet-shell .page-footer {
    position: absolute;
    left: 8px;
    top: var(--footer-top, 985px);
    width: 1424px;
    height: 221px;
    border-radius: 32px;
  }

  .merchant-cabinet-shell .page-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #d4dce5;
    border-radius: 32px;
    background: transparent;
  }

  .merchant-cabinet-shell .footer-links {
    position: absolute;
    left: 64px;
    right: 64px;
    top: 57px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 18px;
  }

  .merchant-cabinet-shell .footer-links > span:first-child {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    font-family: var(--font-code);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .merchant-cabinet-shell .footer-links a {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    font-family: var(--font-title);
    font-size: 12px;
    line-height: 15px;
    font-weight: 500;
    white-space: nowrap;
  }

  .merchant-cabinet-shell .footer-links a:nth-of-type(1),
  .merchant-cabinet-shell .footer-links a:nth-of-type(2),
  .merchant-cabinet-shell .footer-links a:nth-of-type(3),
  .merchant-cabinet-shell .footer-links a:nth-of-type(4) {
    left: auto;
  }

  .merchant-cabinet-shell .footer-links a:not(.uptime) img {
    width: 18px;
    height: 18px;
  }

  .merchant-cabinet-shell .footer-links .uptime {
    position: relative;
    left: auto;
    top: auto;
    width: 93px;
    height: 16px;
    margin-left: 0;
    display: block;
  }

  .merchant-cabinet-shell .footer-links .uptime img {
    width: 93px;
    height: 16px;
    display: block;
  }

  .merchant-cabinet-shell .footer-company-address {
    position: absolute;
    left: 64px;
    top: 123px;
    z-index: 1;
    margin: 0;
    max-width: min(480px, calc(100% - 668px));
    color: #b0b6be;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
  }

  .merchant-cabinet-shell .footer-apps {
    position: absolute;
    left: 604px;
    top: 123px;
    z-index: 1;
    display: flex;
    gap: 12px;
  }

  .merchant-cabinet-shell .footer-apps a {
    width: 180px;
    height: 56px;
    display: block;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
  }

  .merchant-cabinet-shell .footer-apps a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: none;
  }

  .merchant-cabinet-shell .footer-telegram-app {
    border-radius: 12px;
    overflow: hidden;
  }

  .merchant-cabinet-shell .socials {
    display: none;
  }
}
