.mobile-qr-entry { position: relative; flex: 0 0 auto; }
.mobile-qr-toggle {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #5d4c29;
  border-radius: 2px;
  color: #d8bf78;
  background: #15130e;
  font-size: 12px;
  cursor: pointer;
}
.mobile-qr-toggle:hover, .mobile-qr-toggle[aria-expanded="true"] { color: #f0d15f; border-color: #9d8038; background: #211c0f; }
.mobile-qr-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 19px);
  right: 0;
  width: 328px;
  max-height: calc(100dvh - 88px);
  overflow: auto;
  padding: 21px 23px 18px;
  border-radius: 2px;
  color: #eee7d7;
  background: #151410;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .64);
  scrollbar-width: thin;
  scrollbar-color: #6f5d32 #151410;
}
.mobile-qr-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-qr-heading h2 { margin: 0; color: #f0d15f; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.mobile-qr-account { margin: 9px 0 19px; color: #b3a78f; font-size: 12px; overflow-wrap: anywhere; }
.mobile-qr-account strong { margin-left: 8px; color: #eee7d7; font-weight: 500; }
.mobile-qr-frame { width: 240px; height: 240px; display: grid; place-items: center; margin: 0 auto; padding: 8px; background: #fff; }
.mobile-qr-frame img { display: block; width: 224px; height: 224px; object-fit: contain; }
.mobile-qr-placeholder { max-width: 190px; color: #51462c; font-size: 14px; text-align: center; line-height: 1.7; }
.mobile-qr-status { min-height: 42px; margin: 16px 0 10px; color: #d3c8b2; font-size: 13px; line-height: 1.65; }
.mobile-qr-panel[data-state="error"] .mobile-qr-status { color: #ffb1a2; }
.mobile-qr-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
#mobile-qr-countdown { color: #d8bf78; font-size: 12px; font-variant-numeric: tabular-nums; }
.mobile-qr-controls button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px; border: 1px solid #68552c; border-radius: 2px; color: #e8ce7e; background: #211c0f; font-size: 12px; cursor: pointer; }
.mobile-qr-controls button:hover { border-color: #b79745; background: #2e2613; }
.mobile-qr-controls button:disabled { opacity: .55; cursor: wait; }
.mobile-qr-private { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 15px 0 0; color: #bdaf90; font-size: 11px; }
.mobile-qr-private svg { flex: 0 0 13px; width: 13px; height: 13px; }
.mobile-qr-network { margin-top: 16px; padding-top: 13px; border-top: 1px solid #3b321f; color: #b3a78f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.mobile-qr-network p { margin: 0; }
.mobile-qr-network span { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mobile-login-main { width: 100%; min-height: calc(100dvh - 72px); display: grid; place-items: center; padding: 32px 20px; }
.mobile-login-card { width: min(100%, 430px); padding: 38px 30px; border: 1px solid #604d24; border-radius: 2px; background: #0d0e11; text-align: center; }
.mobile-login-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 24px; color: #e8ce7e; background: #211c0f; border-radius: 2px; }
.mobile-login-symbol svg { width: 28px; height: 28px; }
.mobile-login-symbol[data-state="error"] { color: #ffb1a2; background: #2a1914; }
.mobile-login-card h1 { margin: 0; color: #f0d15f; font-size: 23px; line-height: 1.5; }
.mobile-login-card p { margin: 14px 0 0; color: #bdb3a0; font-size: 14px; line-height: 1.8; }
#mobile-login-recovery { margin-top: 27px; padding-top: 22px; border-top: 1px solid #3b321f; }
#mobile-login-recovery p { margin: 0 0 22px; }
#mobile-login-recovery .primary-button { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font-size: 14px; }
.mobile-login-card noscript a { display: inline-block; margin-top: 20px; color: #e8ce7e; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .mobile-qr-toggle { width: 34px; height: 34px; padding: 0; }
  .mobile-qr-toggle span { display: none; }
  .mobile-qr-toggle svg { width: 18px; height: 18px; }
  .mobile-qr-panel { position: fixed; top: 72px; right: 12px; width: min(328px, calc(100vw - 24px)); max-height: calc(100dvh - 84px); padding-inline: 20px; }
  .mobile-login-main { min-height: calc(100dvh - 64px); }
  .mobile-login-card { padding: 30px 22px; }
}
