.digital-id-card .digital-id-main{grid-template-columns:minmax(0,1fr) auto;gap:24px}
.digital-id-member{min-width:0;display:grid;gap:16px}
.digital-id-card .digital-id-person{display:flex;align-items:center;gap:16px;flex-direction:row}
.member-code-button{border:0;background:#fff;color:#173f35;padding:0;cursor:pointer;box-shadow:none;font:inherit;text-align:center;max-width:100%}
.member-code-button:focus-visible{outline:3px solid #d9b76c;outline-offset:4px}
.digital-id-card .member-qr-wrap{padding:8px;gap:6px;justify-self:center}
.digital-id-card .member-qr{display:block;width:220px;height:220px}
.member-code-button small{display:block;font-size:11px!important;letter-spacing:0!important;text-transform:none!important;color:#445950}
.member-barcode-button{display:grid;width:100%;gap:4px;padding:4px 4px 10px;border-radius:12px}
.member-barcode-button svg{width:100%;height:auto;max-height:130px;display:block}
.member-barcode-button strong{color:#173f35;font-family:monospace;font-size:17px;letter-spacing:.08em;overflow-wrap:anywhere}
.member-code-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#fff;color:#173f35;box-sizing:border-box;z-index:9999;overflow:auto}
.member-code-dialog::backdrop{background:#fff}
.member-code-shell{min-height:100%;display:grid;grid-template-rows:auto auto 1fr;gap:14px;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-sizing:border-box}
.member-code-shell header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.member-code-shell h2{font-size:22px;margin:0}.member-code-shell button{min-height:44px}
.member-code-controls{text-align:center}.member-code-switch{display:flex;justify-content:center;gap:8px}
.member-code-switch button{background:#edf2ef;color:#173f35;border:1px solid #c7d4cc;border-radius:10px;padding:10px 20px}
.member-code-switch button[aria-pressed=true]{background:#173f35;color:#fff}
.member-code-number{font:bold 24px monospace;letter-spacing:.08em;margin:16px 0 8px;overflow-wrap:anywhere}.member-code-hint{margin:0;color:#51605b;font-size:14px}
.member-code-stage{display:grid;place-items:center;min-width:0;min-height:0;align-self:center}
.member-code-stage svg{display:block;width:min(100%,520px);height:auto;max-height:calc(100dvh - 240px)}
.member-code-dialog[data-mode=barcode] .member-code-stage svg{width:min(100%,760px);max-height:260px}
@media(max-width:650px){.digital-id-card .digital-id-main{grid-template-columns:minmax(0,1fr);gap:20px}.digital-id-card .member-qr{width:210px;height:210px}.digital-id-member{width:100%}.member-code-shell h2{font-size:19px}}
@media(max-height:480px) and (orientation:landscape){.member-code-shell{grid-template-columns:minmax(170px,1fr) minmax(0,1.4fr);grid-template-rows:auto 1fr;gap:8px;padding:12px}.member-code-shell header{grid-column:1;align-items:start}.member-code-shell h2{font-size:17px}.member-code-controls{grid-column:1;align-self:center}.member-code-stage{grid-column:2;grid-row:1/3}.member-code-stage svg{width:min(100%,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.member-code-dialog[data-mode=barcode] .member-code-stage svg{width:100%}.member-code-switch button{padding:8px 12px}.member-code-number{font-size:20px}}
