html.sv-locked, html.sv-locked body { overflow: hidden; }

  #sv-gate {
    position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center;
    justify-content: center; padding: 18px;
    font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    color: #f5f5f4; -webkit-font-smoothing: antialiased;
  }
  #sv-gate[hidden] { display: none; }
  #sv-gate .sv-backdrop {
    position: absolute; inset: 0;
    background:
      radial-gradient(120% 75% at 50% -10%, rgba(176,141,87,.18), transparent 62%),
      rgba(6,7,8,.8);
    -webkit-backdrop-filter: blur(16px) saturate(.9);
    backdrop-filter: blur(16px) saturate(.9);
    animation: sv-fade .3s ease both;
  }
  #sv-gate .sv-card {
    position: relative; width: min(464px, 100%); max-height: calc(100vh - 36px);
    overflow: auto; background: #17181b; border: 1px solid #26282c; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 34px 90px -28px rgba(0,0,0,.9),
                0 0 0 1px rgba(176,141,87,.07), 0 0 60px -30px rgba(176,141,87,.5);
    animation: sv-rise .4s cubic-bezier(.22,1,.36,1) both;
  }
  #sv-gate .sv-card:focus { outline: none; }
  #sv-gate.sv-closing .sv-card { animation: sv-drop .26s ease forwards; }
  #sv-gate.sv-closing .sv-backdrop { animation: sv-fade-out .26s ease forwards; }
  @keyframes sv-fade { from { opacity: 0 } to { opacity: 1 } }
  @keyframes sv-fade-out { to { opacity: 0 } }
  @keyframes sv-rise { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }
  @keyframes sv-drop { to { opacity: 0; transform: translateY(10px) scale(.99) } }
  @keyframes sv-pulse { 50% { opacity: .35 } }

  .sv-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 16px 13px 18px; border-bottom: 1px solid #26282c; background: rgba(11,12,14,.55);
  }
  .sv-brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; letter-spacing: .01em; color: #9a9ca3;
  }
  .sv-brand svg { color: #b08d57; }
  .sv-head-right { display: inline-flex; align-items: center; gap: 8px; }
  .sv-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 9.5px;
    letter-spacing: .14em; text-transform: uppercase; color: #b08d57;
    border: 1px solid rgba(176,141,87,.3); background: rgba(176,141,87,.08);
    border-radius: 999px; padding: 4px 9px; white-space: nowrap;
  }
  .sv-tag i {
    width: 5px; height: 5px; border-radius: 50%; background: #b08d57;
    box-shadow: 0 0 8px #b08d57; animation: sv-pulse 2s ease-in-out infinite;
  }
  .sv-close {
    appearance: none; width: 26px; height: 26px; display: grid; place-items: center;
    border: 1px solid #2c2e33; border-radius: 7px; background: #0f1012;
    color: #9a9ca3; cursor: pointer; transition: color .15s, border-color .15s;
  }
  .sv-close:hover { color: #f5f5f4; border-color: #3a3d42; }
  .sv-close:focus-visible { outline: 2px solid rgba(176,141,87,.6); outline-offset: 2px; }

  .sv-body { padding: 26px 22px 22px; text-align: center; }
  .sv-icon {
    width: 46px; height: 46px; margin: 0 auto 13px; display: grid; place-items: center;
    border: 1px solid rgba(176,141,87,.28); background: rgba(176,141,87,.07);
    border-radius: 12px; color: #b08d57;
  }
  #sv-gate h2 {
    margin: 0; font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: #f5f5f4;
  }
  .sv-sub { margin: 8px auto 0; max-width: 324px; font-size: 12.5px; line-height: 1.55; color: #9a9ca3; }

  .sv-tabs {
    display: flex; gap: 4px; margin: 18px 0 16px; padding: 4px;
    border: 1px solid #26282c; border-radius: 10px; background: #0f1012;
  }
  .sv-tab {
    flex: 1; appearance: none; border: 0; background: transparent; color: #9a9ca3;
    font: 600 12px/1 "IBM Plex Sans", sans-serif; padding: 9px 10px; border-radius: 7px;
    cursor: pointer; transition: background .15s, color .15s;
  }
  .sv-tab:hover { color: #f5f5f4; }
  .sv-tab[aria-selected="true"] {
    background: #b08d57; color: #14100a; box-shadow: 0 0 22px -8px #b08d57;
  }
  .sv-tab:focus-visible { outline: 2px solid rgba(176,141,87,.6); outline-offset: 2px; }

  .sv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
  .sv-step { display: flex; gap: 11px; }
  .sv-step > div { flex: 1; min-width: 0; }
  .sv-step-n {
    flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center;
    border: 1px solid rgba(176,141,87,.35); border-radius: 50%;
    background: rgba(176,141,87,.08); color: #b08d57;
    font: 600 10.5px "IBM Plex Mono", monospace;
  }
  .sv-step-t { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #f5f5f4; }
  .sv-step-d { margin: 3px 0 0; font-size: 11.5px; line-height: 1.55; color: #9a9ca3; }
  .sv-kbd {
    font-family: "IBM Plex Mono", monospace; font-size: 10.5px; padding: 1px 5px;
    border: 1px solid #33363b; border-bottom-width: 2px; border-radius: 5px;
    background: #0f1012; color: #c9cacd;
  }
  .sv-code {
    display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 10px;
    border: 1px solid #2c2e33; border-radius: 8px; background: #0d0e10;
  }
  .sv-code code {
    flex: 1; min-width: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
    font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1.6; color: #e2c9a3;
  }
  .sv-copy {
    appearance: none; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center;
    border: 1px solid #2c2e33; border-radius: 6px; background: #17181b;
    color: #9a9ca3; cursor: pointer; transition: color .15s, border-color .15s;
  }
  .sv-copy:hover { color: #f5f5f4; border-color: #3a3d42; }
  .sv-copy.sv-copied { color: #8fbb88; border-color: rgba(143,187,136,.4); }
  .sv-copy:focus-visible { outline: 2px solid rgba(176,141,87,.6); outline-offset: 2px; }

  .sv-wait {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: 9.5px;
    letter-spacing: .1em; text-transform: uppercase; color: #7b7e85;
  }
  .sv-wait i {
    width: 6px; height: 6px; border-radius: 50%; background: #b08d57;
    box-shadow: 0 0 8px #b08d57; animation: sv-pulse 1.8s ease-in-out infinite;
  }
  .sv-wait.sv-ok { color: #8fbb88; }
  .sv-wait.sv-ok i { background: #8fbb88; box-shadow: 0 0 8px #8fbb88; }

  .sv-notice {
    margin-top: 16px; padding: 11px 12px; text-align: left;
    border: 1px solid rgba(176,141,87,.28); border-radius: 9px;
    background: rgba(176,141,87,.06); font-size: 11.5px; line-height: 1.55; color: #c9cacd;
  }
  .sv-notice strong { color: #f5f5f4; font-weight: 600; }
  .sv-notice a { color: #b08d57; text-decoration: underline; text-underline-offset: 2px; }
  .sv-consent { margin-top: 16px; text-align: left; }
  .sv-consent label {
    display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
    font-size: 11.5px; line-height: 1.5; color: #c9cacd;
  }
  .sv-consent input {
    appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 16px; height: 16px;
    margin: 1px 0 0; border: 1.5px solid #4a4d53; border-radius: 4px; background: #0f1012;
    cursor: pointer; display: grid; place-items: center;
  }
  .sv-consent input:checked { background: #b08d57; border-color: #b08d57; }
  .sv-consent input:checked::after {
    content: ""; width: 8px; height: 4px; border-left: 2px solid #14100a;
    border-bottom: 2px solid #14100a; transform: rotate(-45deg) translateY(-1px);
  }
  .sv-consent input:focus-visible { outline: 2px solid rgba(176,141,87,.6); outline-offset: 2px; }
  .sv-consent strong { color: #f5f5f4; font-weight: 600; }
  .sv-copy[disabled], .sv-btn[disabled] {
    opacity: .35; cursor: not-allowed; transform: none; box-shadow: none;
  }

  .sv-btn {
    appearance: none; width: 100%; margin-top: 14px; border: 0; border-radius: 9px;
    background: #b08d57; color: #14100a; font: 600 12.5px/1 "IBM Plex Sans", sans-serif;
    padding: 12px 18px; cursor: pointer; box-shadow: 0 0 24px -8px #b08d57;
    transition: transform .15s, opacity .15s;
  }
  .sv-btn:hover { opacity: .95; transform: scale(1.01); }
  .sv-btn:active { transform: scale(.99); }
  .sv-btn:focus-visible { outline: 2px solid rgba(176,141,87,.6); outline-offset: 2px; }

  .sv-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 18px; border-top: 1px solid #26282c; background: rgba(11,12,14,.55);
    font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .09em;
    text-transform: uppercase; color: #5f6269;
  }

  #sv-mobile-nav { display: none; }
  #sv-mobile-nav.sv-open { display: block; }
  @media (min-width: 768px) { #sv-mobile-nav { display: none !important; } }

  @media (max-width: 420px) {
    .sv-body { padding: 18px 16px 16px; }
    .sv-head, .sv-foot { padding-left: 14px; padding-right: 14px; }
    .sv-steps { gap: 10px; }
    .sv-notice { margin-top: 12px; padding: 10px 11px; }
    .sv-icon { width: 40px; height: 40px; margin-bottom: 10px; }
    .sv-code code { font-size: 10px; line-height: 1.5; }
  }
  @media (max-width: 374px) {
    .sv-tag { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    #sv-gate .sv-card, #sv-gate .sv-backdrop { animation-duration: .01ms !important; }
  }
