.aiwerk-consent {
    position: fixed;
    z-index: 1000;
    inset: auto 16px 16px;
    display: none;
    max-width: 760px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: auto;
    padding: 20px;
    border: 1px solid #dfe3eb;
    border-radius: 16px;
    background: #fff;
    color: #11131a;
    box-shadow: 0 24px 70px rgba(20,32,64,.22);
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.aiwerk-consent.is-open { display: block; }
.aiwerk-consent h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.aiwerk-consent p { margin: 0; color: #606673; font-size: 12px; line-height: 1.55; }
.aiwerk-consent a { color: #2864f0; text-decoration: underline; text-underline-offset: 2px; }
.aiwerk-consent__settings { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.aiwerk-consent.settings-open .aiwerk-consent__settings { display: grid; }
.aiwerk-consent__option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #e4e7ee; border-radius: 11px; background: #f8f9fb; }
.aiwerk-consent__option input { width: 17px; height: 17px; margin-top: 1px; accent-color: #2864f0; }
.aiwerk-consent__option strong { display: block; font-size: 12px; }
.aiwerk-consent__option small { display: block; margin-top: 2px; color: #707582; font-size: 10px; line-height: 1.4; }
.aiwerk-consent__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.aiwerk-consent button { min-height: 42px; padding: 0 15px; border: 1px solid #cfd5df; border-radius: 10px; background: #fff; color: #252a34; font: 800 11px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer; }
.aiwerk-consent button:hover { background: #f4f6f9; }
.aiwerk-consent [data-consent-all] { border-color: #2864f0; background: #2864f0; color: #fff; }
.aiwerk-consent [data-consent-all]:hover { background: #1749be; }
.aiwerk-consent [data-consent-save] { display: none; border-color: #2864f0; background: #2864f0; color: #fff; }
.aiwerk-consent.settings-open [data-consent-save] { display: inline-flex; align-items: center; }
.aiwerk-consent.settings-open [data-consent-all] { display: none; }

@media (max-width: 600px) {
    .aiwerk-consent { inset: auto 10px 10px; max-height: calc(100vh - 20px); padding: 17px; }
    .aiwerk-consent__settings { grid-template-columns: 1fr; }
    .aiwerk-consent__actions { display: grid; grid-template-columns: 1fr; }
    .aiwerk-consent button { width: 100%; padding: 0 9px; }
}
