.kp-dialog{--kp-blue:#1769dc;--kp-text:#202124;--kp-muted:#657080;box-sizing:border-box;width:min(1120px,calc(100vw - 32px));max-width:none;max-height:94dvh;height:900px;padding:0;border:1px solid #dce1e8;border-radius:22px;background:#f7f8fa;color:var(--kp-text);box-shadow:0 24px 100px #172b4d33;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.kp-dialog::backdrop{background:#17213266;backdrop-filter:blur(5px)}.kp-dialog *{box-sizing:border-box}.kp-dialog [hidden]{display:none!important}.kp-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px;border-bottom:1px solid #e3e7ed;background:white}.kp-header strong{display:block;font-size:18px;letter-spacing:-.3px}.kp-muted,.kp-site{font-size:13px;color:var(--kp-muted)}.kp-content{overflow:auto;max-height:calc(94dvh - 94px);padding:28px}.kp-dialog h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:0 0 10px}.kp-dialog h2{font-size:20px;margin:0}.kp-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.kp-dialog button,.kp-link{font:inherit;font-size:14px;font-weight:600;padding:10px 16px;border:1px solid #d9dfe7;background:white;color:#344052;border-radius:10px;cursor:pointer;min-height:44px;text-decoration:none}.kp-dialog button:hover,.kp-link:hover{background:#eef3fb}.kp-dialog button:disabled{opacity:.55;cursor:wait}.kp-dialog .kp-primary{background:var(--kp-blue);border-color:var(--kp-blue);color:white}.kp-dialog button:focus-visible,.kp-dialog input:focus-visible,.kp-dialog textarea:focus-visible,.kp-link:focus-visible{outline:3px solid #8abbff;outline-offset:3px}.kp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px;flex-wrap:wrap}.kp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kp-card{padding:22px;background:white;border:1px solid #e0e5ec;border-radius:16px}.kp-card h2{font-size:18px;margin-bottom:8px;overflow-wrap:anywhere}.kp-badge{font-size:12px;padding:4px 9px;border-radius:30px;background:#eef3fb;color:#315681;display:inline-block;margin-bottom:12px}.kp-empty{text-align:center;padding:60px 24px;color:var(--kp-muted)}.kp-editor{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.kp-paper{background:white;border:1px solid #e0e5ec;border-radius:16px;padding:26px}.kp-dialog label{display:block;font-weight:600;font-size:14px;margin-bottom:16px}.kp-dialog input:not([type=file]),.kp-dialog textarea{display:block;width:100%;margin-top:8px;border:1px solid #d5dce5;border-radius:10px;background:white;color:var(--kp-text);padding:12px;font:inherit}.kp-dialog textarea{resize:vertical;min-height:310px;line-height:1.8}.kp-dialog input.kp-title{font-size:23px;letter-spacing:-.4px}.kp-side{display:flex;flex-direction:column;gap:16px}.kp-side .kp-card{padding:18px}.kp-side button{width:100%;margin-top:8px}.kp-side img,.kp-side video{width:100%;border-radius:10px;max-height:170px;object-fit:contain}.kp-status{font-size:13px;color:#47624f;min-height:22px;margin:12px 0;white-space:pre-wrap}.kp-status[data-error=true]{color:#a32828;background:#fff1f1;padding:12px;border-radius:10px}.kp-preview{width:100%;height:62dvh;border:1px solid #dce1e8;border-radius:12px;background:white;display:block;margin:18px auto}.kp-preview.kp-phone{max-width:390px}.kp-review{background:#fff;border:1px solid #dce1e8;padding:20px;border-radius:14px}.kp-dialog .kp-body-preview{white-space:pre-wrap}.kp-dialog progress{width:100%;accent-color:var(--kp-blue)}.kp-history{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:12px 0;padding:14px;background:white;border:1px solid #e0e5ec;border-radius:12px}@media(max-width:700px){.kp-dialog{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.kp-header{padding:14px 16px}.kp-content{padding:18px 16px;max-height:calc(100dvh - 86px)}.kp-editor{grid-template-columns:1fr}.kp-paper{padding:18px}.kp-cards{grid-template-columns:1fr}.kp-side{display:grid;grid-template-columns:1fr}.kp-dialog h1{font-size:26px}.kp-toolbar{gap:12px}.kp-toolbar>.kp-actions{width:100%}.kp-dialog textarea{min-height:260px}.kp-preview{height:58dvh}}

.kp-sticky{position:sticky;bottom:-28px;padding:14px 0;background:#f7f8faf5;border-top:1px solid #e0e5ec;z-index:2}.kp-sticky [data-review]{margin-right:auto}@media(max-width:700px){.kp-sticky{bottom:-18px}.kp-sticky [data-copy],.kp-sticky [data-history]{font-size:12px;padding:6px 10px;min-height:34px}}
