#authgate>*{flex-shrink:0}
.scan-permit-notice{margin:12px 18px;padding:12px;border:1px solid var(--warn);border-radius:12px;background:var(--surface);color:var(--ink)}
.scan-permit-notice p{margin:0 0 8px;font-size:12px;line-height:1.5}
.scan-permit-notice .ghostbtn{margin:0;min-height:42px}
#myepsprofiletools .myeps-gate{margin-top:12px}
.myeps-gate{padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.myeps-step{margin:0 0 10px;color:var(--accent);font-size:12px;font-weight:750;line-height:1.5}
.myeps-help{margin:8px 0 14px;color:var(--muted);font-size:12px;line-height:1.6}
.myeps-gate .ghostbtn{min-height:46px}
#myepsreader{width:100%;overflow:hidden;border-radius:12px;margin-bottom:12px;background:#fff;color:#111}
#myepsreader video{width:100%;object-fit:cover}
#myepsfile{display:none}
.myeps-url{margin:12px 0 0}
.myeps-url summary{color:var(--muted);font-size:12px;cursor:pointer;padding:7px 0}
.myeps-url input{width:100%;min-height:46px;margin:8px 0;padding:10px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--bg);font:inherit;font-size:16px;box-sizing:border-box}
#myepsstatus,#myepsgatepreview,#myepsprofilefeedback{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:10px 0 0;color:var(--muted)}
#myepsstatus.warn{color:var(--warn)}
#myepsgatepreview{color:var(--ink)}
.myeps-next{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.authbtn.is-disabled{opacity:.45;cursor:default;pointer-events:none}
.permit-card{padding:16px;border-radius:14px;border:2px solid #b3bdc9;background:#fff;color:#111827;min-width:0}
.permit-card[data-status="VERIFIED_ACTIVE"]{border-color:#047857}
.permit-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.permit-header h3{margin:0;font-size:15px;line-height:1.4;font-weight:750}
.permit-badge{display:inline-block;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:800;background:#e5e7eb;color:#374151}
.permit-card[data-status="VERIFIED_ACTIVE"] .permit-badge{background:#d1fae5;color:#065f46}
.permit-card[data-status="EXPIRED"] .permit-badge,.permit-card[data-status="INACTIVE"] .permit-badge{background:#fee2e2;color:#991b1b}
.permit-photo{display:block;max-width:100%;max-height:280px;margin:0 auto 16px;object-fit:contain}
.permit-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0}
.permit-fields dt{font-size:10px;color:#4b5563;line-height:1.5}
.permit-fields dd{margin:0 0 10px;font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.permit-qr-wrap{margin-top:8px;padding:12px 0 0;border-top:1px solid #d1d5db;text-align:center}
#myepsqr{max-width:300px;margin:0 auto;background:#fff;padding:4px}
#myepsqr svg{display:block;width:100%;height:auto}
.permit-qr-caption{margin:6px 0;font-size:11px;line-height:1.5;color:#374151}
.permit-official-link{color:#065f46;font-size:11px;line-height:1.5;text-underline-offset:2px}
.permit-checked{margin-top:12px;border-top:1px solid #d1d5db;padding-top:10px;font-size:10px;line-height:1.6;color:#4b5563;overflow-wrap:anywhere}
#myepsrefresh{margin:12px 0 0}
.permit-note{margin:10px 0 0;font-size:10.5px;line-height:1.6;color:var(--dim)}
