.id-panel {display:grid;gap:16px;max-width:760px;margin:0 0 18px;}
.id-panel h2,.id-panel h3 {margin:0;}
.id-panel .id-description,.id-proof .id-description,.id-panel .id-notice {margin:0;color:#475569;font-size:.9rem;line-height:1.5;}
.id-panel .id-notice:empty {display:none;}
.id-grid,.id-proof {display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
.id-proof {border-bottom:1px solid #e2e8f0;padding-bottom:12px;margin-bottom:12px;}
.id-proof .id-description,.id-proof .id-pattern-control {grid-column:1/-1;}
.id-field {display:grid;gap:5px;font-weight:600;color:#334155;font-size:.88rem;min-width:0;}
.id-field :is(input,select) {box-sizing:border-box;width:100%;max-width:100%;min-height:44px;min-width:0;font-size:1rem;}
.id-extra {border:0;padding:0;margin:0;display:flex;gap:8px 20px;flex-wrap:wrap;}
.id-extra legend {font-weight:600;color:#334155;font-size:.88rem;margin-bottom:5px;padding:0;}
.id-extra .id-toggle {display:inline-flex;flex-direction:row;gap:8px;align-items:center;min-height:36px;}
.id-toggle input {width:18px;height:18px;min-height:0;accent-color:#2563eb;}
.id-card-form,.id-issued:not(:empty) {display:grid;gap:12px;}
.id-card-form {max-width:560px;}
.id-issued>button {justify-self:start;}
.id-raw code {display:block;overflow-wrap:anywhere;margin-top:6px;user-select:all;}
.personal-card {width:82mm;max-width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px;background:#fff;color:#172a45;break-inside:avoid;}
.personal-card h3 {font-size:1rem;} 
.personal-card img:not(.id-brand) {width:42mm;height:42mm;max-width:100%;object-fit:contain;image-rendering:pixelated;}
.personal-card .id-brand {width:105px;height:auto;align-self:flex-start;}
.credential-print-copy {display:none!important;}
.id-proof [hidden],.id-panel [hidden] {display:none!important;}
@media(max-width:620px){.id-grid,.id-proof {grid-template-columns:minmax(0,1fr);}}
@media print {
    body.id-printing > :not(.credential-print-copy) {display:none!important;}
    body.id-printing > .credential-print-copy {display:flex!important;box-shadow:none;margin:0;}
}


.cred-directory {max-width:100%; min-width:0;}
.cred-directory .cred-filters {display:grid;gap:12px;grid-template-columns: minmax(180px,2fr) repeat(4,minmax(95px,1fr));}
.cred-directory > button {justify-self:start;}
.cred-directory .table-scroll {max-width:100%;overflow-x:auto;}
.cred-directory th,.cred-directory td {text-align:left;}
.cred-on {color:#175b46;}
.cred-off {color:#49596b;}
.cred-row-actions,.cred-pages {display:flex;align-items:center;gap:12px;}
.cred-row-actions button {white-space:nowrap;}
.cred-pages {margin-top:12px;}
@media(max-width:900px){.cred-directory .cred-filters {grid-template-columns:repeat(2,minmax(0,1fr));}.cred-directory .cred-filters label:first-child {grid-column:1/-1;}}

.cred-reader-settings {border:1px solid #dbe4ec;border-radius:8px;padding:12px;}
.cred-reader-settings summary {cursor:pointer;font-weight:650;}
.cred-reader-settings[open] > :not(summary) {margin-top:10px;}
.cred-reader-settings label:has(input[type=checkbox]) {display:flex;align-items:center;gap:8px;}
.cred-reader-settings label input[type=checkbox] {min-height:20px;width:20px;}
.cred-reader-settings > a {display:block;width:fit-content;}
