.identity-intro{margin:0 0 20px;color:#65718b;line-height:1.8}
.identity-types{display:flex;gap:12px;margin-bottom:22px;flex-wrap:wrap}
.identity-type{display:flex;gap:9px;align-items:center;border:1px solid #dce4f1;border-radius:10px;padding:14px 24px;cursor:pointer;background:#f8faff}
.identity-type:has(input:checked){border-color:#1764ef;background:#edf4ff;color:#1455c8}
.identity-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.identity-field{display:flex;flex-direction:column;gap:9px;color:#34425e;font-weight:600;min-width:0}
.identity-field input:not([type=file]){box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid #dbe3ef;border-radius:8px;font:inherit;background:#fff;color:#243654}
.identity-doc{border:1px dashed #b4c8e7;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px;background:#f9fbff;font-weight:400}
.identity-doc input{width:100%;font-size:14px}
.identity-preview{max-width:100%;height:170px;object-fit:contain;align-self:center;border-radius:6px;background:#eef2f8}
.identity-doc small,.identity-helper{font-size:13px;line-height:1.7;color:#6b7890}
.identity-consent{display:flex;align-items:flex-start;gap:10px;margin:24px 0 18px;line-height:1.9;font-size:14px;color:#5b6882}
.identity-consent input{margin-top:7px;flex-shrink:0}
.identity-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.identity-feedback{margin:14px 0;line-height:1.8;color:#40516e;overflow-wrap:anywhere}
.identity-feedback.error{color:#b73535}
.identity-state{border-radius:12px;background:#f3f7ff;border:1px solid #dee8f8;padding:22px;margin-bottom:24px;line-height:1.9;overflow-wrap:anywhere}
.identity-state h3{margin:0 0 6px;font-size:19px;color:#254774}
.identity-state p{margin:5px 0;color:#586a85}
.identity-form[hidden],.identity-state[hidden],.identity-field[hidden],.identity-preview[hidden]{display:none}
.identity-form fieldset{border:0;padding:0;margin:0;min-width:0}
.identity-form button:disabled{opacity:.55;cursor:wait}
.identity-admin-docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.identity-admin-docs img{width:100%;max-height:360px;object-fit:contain;background:#eff3f9}
.identity-admin-dialog{max-width:900px;width:calc(100% - 48px);max-height:90vh;box-sizing:border-box;overflow:auto;border:1px solid #dbe5f3;border-radius:14px;padding:26px}
.identity-admin-dialog::backdrop{background:rgba(25,40,67,.45)}
.identity-admin-dialog textarea{box-sizing:border-box;width:100%;min-height:80px;padding:12px;border:1px solid #cad6e8;border-radius:8px;font:inherit}
.identity-admin-docs .identity-doc-open{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0;padding:10px;border:1px solid #dbe5f3;border-radius:10px;background:#f8faff;color:#245aa3;font:inherit;cursor:zoom-in;white-space:normal}
.identity-admin-docs .identity-doc-open:only-child{grid-column:1/-1}
.identity-admin-docs .identity-doc-open:hover{border-color:#1764ef;background:#edf4ff;color:#1455c8}
.identity-admin-docs .identity-doc-open:focus-visible,.identity-image-viewer button:focus-visible,.identity-image-stage:focus-visible{outline:3px solid #1764ef;outline-offset:3px}
.identity-admin-docs .identity-doc-open img{display:block;min-height:100px;border-radius:5px}
.identity-admin-docs .identity-doc-open span{font-size:14px;line-height:1.6;text-align:center}
.identity-image-viewer{box-sizing:border-box;width:calc(100% - 40px);max-width:1500px;height:calc(100vh - 40px);height:calc(100dvh - 40px);max-height:none;max-height:calc(100dvh - 40px);padding:20px;border:1px solid #dbe5f3;border-radius:14px;overflow:hidden;background:#fff;color:#243654}
.identity-image-viewer[open]{display:flex;flex-direction:column;gap:12px}
.identity-image-viewer::backdrop{background:rgba(17,29,48,.72)}
.identity-image-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.identity-image-header h2{margin:0;font-size:20px;line-height:1.4}
.identity-image-viewer button{box-sizing:border-box;min-height:42px;padding:9px 16px;border:1px solid #cad6e8;border-radius:8px;background:#f8faff;color:#245aa3;font:inherit;font-size:14px;line-height:1.4;white-space:nowrap;cursor:pointer}
.identity-image-viewer button:hover:not(:disabled){background:#edf4ff;border-color:#1764ef}
.identity-image-viewer button:disabled{opacity:.45;cursor:default}
.identity-image-header #identityImageClose{background:#1764ef;border-color:#1764ef;color:#fff}
.identity-image-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none}
.identity-image-tools output{min-width:50px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
.identity-image-help{margin:0;font-size:13px;line-height:1.6;color:#65718b;flex:none}
.identity-image-status{margin:0;font-size:14px;color:#40516e;flex:none}
.identity-image-status:empty{display:none}
.identity-image-stage{min-height:0;min-width:0;flex:1;overflow:auto;overscroll-behavior:contain;border:1px solid #dbe5f3;border-radius:9px;background:#eff3f9}
.identity-image-canvas{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%}
.identity-image-canvas img{display:block;flex:none;max-width:none;max-height:none;object-fit:contain;background:#fff}
.identity-image-canvas img[hidden]{display:none}
@media(max-width:650px){.identity-image-viewer{width:calc(100% - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;gap:10px}.identity-image-header h2{font-size:17px}.identity-image-viewer button{min-height:44px;padding:8px 12px}.identity-image-tools{gap:6px}.identity-image-tools output{min-width:42px}.identity-image-help{font-size:12px}}
@media(max-width:650px){.identity-fields,.identity-admin-docs{grid-template-columns:1fr}.identity-type{padding:12px 18px}.identity-admin-dialog{padding:18px;width:calc(100% - 20px)}.identity-consent{font-size:13px}}
