.cwa-dialog{box-sizing:border-box;width:min(880px,calc(100vw - 32px));max-width:880px;max-height:92dvh;margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:#17202a;box-shadow:0 24px 80px #0005;font:15px/1.55 system-ui,sans-serif}.cwa-dialog::backdrop{background:#0f172abb;backdrop-filter:blur(3px)}.cwa-dialog header{display:flex;gap:18px;align-items:center;padding:22px 26px;border-bottom:1px solid #e2e8f0}.cwa-dialog header img{box-sizing:border-box;flex:0 0 auto;width:80px;height:62px;object-fit:contain;padding:8px;background:#111827;border-radius:12px}.cwa-dialog header>div{min-width:0;flex:1}.cwa-dialog header [data-close]{flex:0 0 auto;align-self:flex-start}.cwa-dialog h1{font-size:24px;line-height:1.25;margin:5px 0;color:#111827}.cwa-dialog h2{font-size:18px}.cwa-dialog button{cursor:pointer;border:1px solid #cbd5e1;border-radius:9px;padding:10px 14px;background:#fff;color:#17202a;font:600 14px system-ui}.cwa-dialog button:disabled{opacity:.5;cursor:not-allowed}.cwa-dialog button.btn{background:#111827;color:#fff;border-color:#111827}.cwa-content{padding:20px 26px}.cwa-intro{margin-top:0;color:#475569}.cwa-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.cwa-document{max-height:34dvh;overflow:auto;border:1px solid #cbd5e1;border-radius:12px;padding:18px;background:#f8fafc}.cwa-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:0}.cwa-name{display:block;font-weight:700;margin:20px 0 12px}.cwa-name input{display:block;box-sizing:border-box;width:100%;margin-top:7px;padding:12px;border:1px solid #94a3b8;border-radius:9px;font:16px system-ui;background:#fff;color:#111827}.cwa-check{display:flex;align-items:flex-start;gap:12px;margin:14px 0}.cwa-check input{flex:0 0 20px;width:20px;height:20px;margin:3px 0;accent-color:#111827}.cwa-help{font-size:13px;color:#475569}.cwa-dialog [role=alert]{color:#b42318}.cwa-dialog footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 26px;border-top:1px solid #e2e8f0;font-size:13px}.cwa-dialog a{color:#1d4ed8}.cwa-record{padding:16px 0;border-top:1px solid #e2e8f0}.cwa-record details{margin:14px 0}.cwa-record summary{cursor:pointer;margin-bottom:12px}.cwa-dialog :focus-visible{outline:3px solid #d59b13;outline-offset:3px}@media(max-width:600px){.cwa-dialog{width:calc(100vw - 12px);max-height:96dvh;border-radius:15px}.cwa-dialog header{padding:17px;gap:12px}.cwa-dialog header img{width:56px;height:50px}.cwa-dialog h1{font-size:21px}.cwa-content{padding:16px}.cwa-document-head{display:block}.cwa-document-head button{margin-top:10px}.cwa-dialog footer{padding:16px}.cwa-dialog form>.btn{width:100%}.cwa-document{max-height:30dvh;padding:13px}}
.cwa-admin{background:#f8fafc;border:1px solid #e2e8f0;padding:16px;border-radius:12px;margin:16px 0}.cwa-actions{display:flex;gap:10px;flex-wrap:wrap}.cwa-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.cwa-name select,.cwa-name textarea{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid #94a3b8;border-radius:9px;font:16px system-ui;background:#fff;color:#111827;margin-top:7px}.cwa-name[hidden]{display:none}.cwa-record>button{margin:4px 6px 4px 0}.cwa-dialog h3{color:#17202a}.cwa-dialog form>button{margin:6px 8px 6px 0}.cwa-name input[type=file]{font-size:14px}.cwa-record p{overflow-wrap:anywhere}@media(max-width:600px){.cwa-form-grid{grid-template-columns:1fr}.cwa-actions>button{width:100%}}

@media(max-width:600px){.cwa-document-head button{display:block}}
