/* 通用卡密门禁样式：品牌与素材均由空槽配置注入。
 * 「纸墨」版: 纸面中央一个白底线框卡, 无玻璃无投影, 极大留白居中。 */
html.license-pending #boot-skeleton,
html.license-pending #view-auth,
html.license-pending #view-console,
html.license-required #boot-skeleton,
html.license-required #view-auth,
html.license-required #view-console {
  display: none !important;
}

body.license-gate-open { overflow: hidden; }
.license-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100dvh;
  overflow-y: auto;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--bg, #fafafa);
}
.license-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #0a0a0a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
}
.license-brand img { width: 46px; height: 46px; object-fit: contain; }
.license-card {
  position: relative;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr);
  overflow: hidden;
  border: 1px solid #e5e5e0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.license-content { padding: 38px 36px 34px; }
.license-kicker {
  display: block;
  margin-bottom: 8px;
  color: #8a8a84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.license-content h1 { margin: 0; color: #0a0a0a; font-size: clamp(27px, 4vw, 36px); line-height: 1.25; letter-spacing: -.015em; }
.license-intro { margin: 12px 0 24px; color: #8a8a84; font-size: 15px; line-height: 1.7; }
.license-form { display: grid; gap: 12px; }
.license-label { color: #0a0a0a; font-size: 14px; font-weight: 700; }
.license-input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}
.license-input:focus-visible {
  outline: 3px solid rgba(10, 10, 10, .25);
  outline-offset: 3px;
}
.license-hint { margin: -3px 0 2px; color: #8a8a84; font-size: 12px; line-height: 1.6; }
.license-submit, .license-retry { width: 100%; min-height: 48px; margin: 0; cursor: pointer; }
.license-retry { margin-top: 4px; }
.license-message { min-height: 22px; margin: 0; color: #8a8a84; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.license-message.is-error { color: #db3356; }
.license-message.is-success { color: #2e6b46; }
.license-message.is-info { color: #55554f; }
.license-art {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  background: #f3f3f1;
  border-left: 1px solid #e5e5e0;
  text-align: center;
}
.license-art::before,
.license-art::after {
  content: '';
  position: absolute;
  width: 116px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  pointer-events: none;
}
.license-art::before { top: 30px; right: -28px; }
.license-art::after { bottom: 36px; left: -40px; }
.license-art img { position: relative; z-index: 1; width: min(250px, 100%); height: auto; }
.license-art p { position: relative; z-index: 1; margin: 12px 0 0; color: #8a8a84; font-size: 13px; line-height: 1.65; }

@media (max-width: 680px) {
  .license-gate { align-content: start; gap: 16px; padding-top: max(20px, env(safe-area-inset-top)); }
  .license-card { grid-template-columns: minmax(0, 1fr); border-radius: 4px; }
  .license-content { padding: 26px 22px 24px; }
  .license-art { grid-row: 1; padding: 16px 20px 0; border-left: 0; background: transparent; }
  .license-art img { width: 132px; }
  .license-art p, .license-art::before, .license-art::after { display: none; }
  .license-content { grid-row: 2; }
  .license-intro { margin-bottom: 18px; }
}

@media (max-width: 380px) {
  .license-gate { padding-left: 12px; padding-right: 12px; }
  .license-content { padding: 22px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .license-gate *, .license-gate *::before, .license-gate *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
