/* A small upward disclosure on desktop; a reachable bottom sheet on phones. */
.mobile-help-entry { font-size:12px; color:#6e7078; }
.auth-mobile-help { margin-top:6px; min-height:40px; padding:8px 12px; }
.sidebar-utility.mobile-help-entry { display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left; }
.topbar-actions { display:flex; align-items:center; gap:8px; flex:none; }
.topbar-mobile-help { min-height:36px; padding:7px 8px; border:1px solid #e5e5e9; background:#fff; border-radius:8px; white-space:nowrap; }
#mobile-help { position:fixed; top:auto; right:auto; bottom:110px; left:16px; margin:0; width:352px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; padding:23px; border:1px solid #e2e3e8; border-radius:18px; background:#fff; color:#30343c; box-shadow:0 14px 55px #1e233223,0 2px 8px #1e23320a; }
#mobile-help[open] { animation:mobile-help-rise .18s ease-out; }
#mobile-help::backdrop { background:#151b260a; }
.mobile-help-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.mobile-help-eyebrow { margin:0 0 7px; font-size:10px; font-weight:500; color:#8a8d96; letter-spacing:.02em; }
#mobile-help-title { margin:0; font-size:20px; font-weight:620; letter-spacing:-.5px; line-height:1.4; }
#mobile-help .icon-button { width:34px; min-height:34px; padding:7px; margin:-5px -6px 0 0; color:#8a8d96; }
#mobile-help-intro { margin:11px 0 17px; color:#777c86; font-size:12px; line-height:1.7; }
.mobile-help-qr { display:grid; place-items:center; width:fit-content; min-height:192px; margin:0 auto 17px; border:1px solid #e9eaed; border-radius:14px; padding:7px; background:#fff; }
#mobile-qr { display:block; width:176px; height:176px; }
#mobile-qr-error { font-size:12px; color:#878b95; max-width:180px; padding:16px; text-align:center; }
.mobile-help-platforms { display:flex; gap:3px; padding:3px; margin:0 0 17px; background:#f3f3f5; border-radius:9px; }
.mobile-help-platforms button { flex:1; min-height:32px; padding:5px 10px; font-size:12px; border-radius:7px; color:#858993; }
.mobile-help-platforms button[aria-pressed="true"] { background:#fff; color:#343840; box-shadow:0 1px 4px #1721340e; }
.mobile-help-steps { list-style:none; counter-reset:mobile-step; display:grid; gap:15px; padding:0; margin:0; }
.mobile-help-steps li { position:relative; padding-left:30px; counter-increment:mobile-step; }
.mobile-help-steps li::before { content:counter(mobile-step); display:grid; place-items:center; position:absolute; left:0; top:1px; width:19px; height:19px; border:1px solid #e1e3e8; border-radius:50%; font-size:10px; color:#858b95; font-variant-numeric:tabular-nums; }
.mobile-help-steps strong { font-size:12px; font-weight:580; }
.mobile-help-steps p { margin:4px 0 0; font-size:11.5px; line-height:1.8; color:#80858f; overflow-wrap:anywhere; }
.mobile-help-note { font-size:10.5px; line-height:1.75; margin:17px 0 13px; color:#969ba4; }
.mobile-help-link { display:flex; align-items:center; gap:8px; border-top:1px solid #ececf0; padding-top:10px; }
#mobile-help-address { min-width:0; flex:1; font-size:10px; color:#9096a1; overflow-wrap:anywhere; user-select:text; }
.mobile-help-link button { flex:none; padding:7px 8px; min-height:34px; font-size:11px; color:#666d79; }
.mobile-help-feedback { font-size:11px; color:#737b88; line-height:1.65; margin:8px 0 0; }
.mobile-help-feedback:empty { display:none; }
#mobile-help-install { margin-top:20px; min-height:44px; font-size:13px; }
@keyframes mobile-help-rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:700px) {
  #mobile-help { left:0; right:0; bottom:0; top:auto; width:100%; max-width:100%; max-height:calc(100dvh - 32px); padding:26px 24px max(26px,env(safe-area-inset-bottom)); border-radius:22px 22px 0 0; border-bottom:0; }
  #mobile-help::backdrop { background:#1f26364d; }
  #mobile-help::before { content:''; position:absolute; width:30px; height:4px; background:#dfe1e6; border-radius:5px; top:9px; left:calc(50% - 15px); }
  #mobile-help-title { font-size:21px; }
  #mobile-help-intro { font-size:13px; }
  .mobile-help-steps { gap:20px; margin-top:23px; }
  .mobile-help-steps strong { font-size:14px; }
  .mobile-help-steps p { font-size:12.5px; }
  .mobile-help-note { font-size:11.5px; margin-top:22px; }
  .mobile-help-link button { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { #mobile-help[open] { animation:none; } }

#generate-mobile-login { min-height:44px; margin:0 0 10px; font-size:12px; }
#mobile-login-code { overflow-wrap:anywhere; user-select:text; padding:8px 0; }
#mobile-login-dialog input { width:100%; margin-bottom:14px; }
#mobile-login-account { font-weight:600; color:#30343c; }
#mobile-login-feedback { color:#94543d; font-size:13px; line-height:1.7; }
#mobile-code-entry { margin-top:12px; }
@media(max-width:720px), (max-width:1000px) and (max-height:500px) {
  #mobile-login-dialog input { font-size:16px; }
  #mobile-login-dialog button { min-height:44px; }
}

#mobile-connect-status { display:flex; align-items:center; gap:8px; min-height:44px; margin:0 0 14px; padding:10px 12px; border-radius:10px; background:#f3f4f6; color:#454c58; font-size:12px; }
#mobile-connect-status::before { content:''; flex:none; width:8px; height:8px; border-radius:50%; background:#9ba1ac; }
#mobile-connect-status[data-state="scanned"]::before, #mobile-connect-status[data-state="confirmed"]::before { background:#5378b5; }
#mobile-connect-status[data-state="connected"] { color:#286346; background:#edf6f0; }
#mobile-connect-status[data-state="connected"]::before { content:'✓'; display:grid; place-items:center; width:18px; height:18px; background:#286346; color:#fff; font-size:12px; }
#mobile-connect-status[data-state="error"], #mobile-connect-status[data-state="expired"], #mobile-connect-status[data-state="revoked"] { color:#825539; background:#faf3ec; }
