.ld-id-sheet {
    box-sizing: border-box;
    width: min(100% - 1rem, 28rem);
    max-height: calc(100dvh - 1rem);
    overflow: auto;
    padding: clamp(.75rem, 3vw, 1.25rem);
    border: 0;
    border-radius: 1.25rem;
    color: #172c22;
    background: #fff;
    box-shadow: 0 1rem 3rem #0004;
}
.ld-id-sheet::backdrop { background: #152b20b3; }
.ld-id-sheet .ld-id-top, .ld-id-sheet .ld-id-bottom {
    display: flex; gap: .5rem; align-items: center; justify-content: space-between;
}
.ld-id-sheet h2 { font-size: 1.2rem; margin: 0; }
.ld-id-sheet .ld-id-value {
    display: block; margin: .65rem 0; padding: .4rem; min-height: 2.25rem;
    overflow-wrap: anywhere; background: #f1f5f2; border-radius: .6rem;
    text-align: center; font-size: 1.65rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ld-id-sheet .ld-id-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ld-id-sheet button {
    appearance: none; box-sizing: border-box; margin: 0; border: 1px solid #c6d3ca;
    border-radius: .7rem; background: #f1f5f2; color: #172c22; cursor: pointer;
    font: inherit; font-weight: 700; touch-action: manipulation; padding: .5rem;
}
.ld-id-sheet .ld-id-grid button { min-height: clamp(3.25rem, 10dvh, 4.5rem); font-size: 1.8rem; }
.ld-id-sheet .ld-id-grid .ld-id-clear { font-size: .95rem; }
.ld-id-sheet .ld-id-bottom { margin-top: .65rem; }
.ld-id-sheet .ld-id-text, .ld-id-sheet .ld-id-next { min-height: 2.75rem; padding-inline: .8rem; }
.ld-id-sheet .ld-id-next { flex: 1; color: white; background: #063d28; border-color: #063d28; }
.ld-id-sheet .ld-id-next:disabled { opacity: .5; cursor: default; }
.ld-id-sheet button:focus-visible { outline: 3px solid #227c53; outline-offset: 2px; }
@media (max-width: 600px) {
    .ld-id-sheet { margin: auto auto .5rem; }
}
