.acme-content-ai[hidden] { display: none !important; }
body.acme-content-ai-open { overflow: hidden; }
.acme-content-ai { position: fixed; inset: 0; z-index: 1000000; font-family: Inter, "Segoe UI", Arial, sans-serif; color: #171923; letter-spacing: 0; }
.acme-content-ai__backdrop { position: absolute; inset: 0; background: rgba(7, 9, 16, .68); }
.acme-content-ai__dialog { position: absolute; inset: clamp(18px, 4vh, 52px) clamp(18px, 5vw, 72px); display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: #fff; border: 1px solid #d8dce5; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.acme-content-ai__header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px 10px 20px; color: #fff; background: #121722; border-bottom: 3px solid #e60000; }
.acme-content-ai__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acme-content-ai__brand > svg { width: 22px; height: 22px; fill: none; stroke: #ff4b55; stroke-width: 1.8; }
.acme-content-ai__brand div { display: grid; gap: 2px; min-width: 0; }
.acme-content-ai__brand strong { font-size: 17px; font-weight: 700; }
.acme-content-ai__brand small { color: #c5cad4; font-size: 11px; line-height: 1.3; }
.acme-content-ai__header-actions { display: flex; align-items: center; gap: 8px; }
.acme-content-ai__icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; color: #fff; background: transparent; border: 1px solid #4a5262; border-radius: 6px; cursor: pointer; }
.acme-content-ai__icon svg, .acme-content-ai__send svg, .acme-content-ai__review-foot button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acme-content-ai__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(330px, 42%) minmax(0, 58%); }
.acme-content-ai__chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #f7f8fa; border-right: 1px solid #d8dce5; }
.acme-content-ai__messages { flex: 1; min-height: 140px; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.acme-content-ai__message { max-width: 84%; padding: 11px 13px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; border: 1px solid #d7dce5; border-radius: 7px; background: #fff; }
.acme-content-ai__message--user { align-self: flex-end; color: #fff; background: #d90000; border-color: #d90000; }
.acme-content-ai__message--assistant { align-self: flex-start; }
.acme-content-ai__quick { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid #e0e3e9; }
.acme-content-ai__quick button { flex: 0 0 auto; padding: 8px 11px; background: #fff; border: 1px solid #cfd4dd; border-radius: 6px; color: #2b313d; font-size: 12px; cursor: pointer; }
.acme-content-ai__media-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #e0e3e9; }
.acme-content-ai__media-tools > button, .acme-content-ai__video-entry button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: #2b313d; background: #fff; border: 1px solid #cfd4dd; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.acme-content-ai__media-tools svg, .acme-content-ai__attachment svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acme-content-ai__video-entry { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 6px; }
.acme-content-ai__video-entry input { min-width: 0; height: 34px; padding: 0 9px; color: #171923; background: #fff; border: 1px solid #cfd4dd; border-radius: 6px; font: inherit; font-size: 11px; }
.acme-content-ai__attachments { display: flex; gap: 7px; overflow-x: auto; padding: 0 12px 10px; background: #fff; }
.acme-content-ai__attachment { min-width: 0; flex: 0 1 190px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; align-items: center; gap: 7px; padding: 5px; border: 1px solid #d8dce5; border-radius: 6px; background: #f7f8fa; }
.acme-content-ai__attachment > img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; }
.acme-content-ai__attachment > span { overflow: hidden; color: #3f4652; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.acme-content-ai__attachment > button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; color: #6e7581; background: transparent; border: 0; cursor: pointer; }
.acme-content-ai__attachment > button svg { width: 14px; height: 14px; }
.acme-content-ai__composer { display: grid; grid-template-columns: 1fr 42px; align-items: end; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid #d8dce5; }
.acme-content-ai__composer textarea { width: 100%; min-height: 70px; max-height: 150px; resize: vertical; box-sizing: border-box; padding: 10px 11px; color: #171923; background: #fff; border: 1px solid #b9c0cc; border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.45; }
.acme-content-ai__composer textarea:focus { border-color: #e60000; outline: 2px solid rgba(230, 0, 0, .14); }
.acme-content-ai__send { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: #e60000; border: 0; border-radius: 6px; cursor: pointer; }
.acme-content-ai__send:disabled { opacity: .5; cursor: wait; }
.acme-content-ai__policy { margin: 0; padding: 0 12px 12px; color: #727987; font-size: 10px; line-height: 1.4; background: #fff; }
.acme-content-ai__review { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.acme-content-ai__review-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #dfe2e8; }
.acme-content-ai__review-head div { display: grid; gap: 3px; min-width: 0; }
.acme-content-ai__review-head strong { font-size: 14px; }
.acme-content-ai__review-head small { color: #687080; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acme-content-ai__review-head > span { flex: 0 0 auto; padding: 5px 8px; color: #5e6674; background: #f0f2f5; border-radius: 5px; font-size: 11px; }
.acme-content-ai__changes { flex: 1; min-height: 0; overflow: auto; padding: 14px; display: grid; align-content: start; gap: 10px; }
.acme-content-ai__empty { min-height: 180px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #818896; text-align: center; }
.acme-content-ai__empty svg { width: 30px; height: 30px; fill: none; stroke: #9aa1ad; stroke-width: 1.7; }
.acme-content-ai__empty strong { color: #3c4350; font-size: 14px; }
.acme-content-ai__empty span { max-width: 300px; font-size: 12px; line-height: 1.45; }
.acme-content-ai__change { padding: 12px; border: 1px solid #d8dce4; border-radius: 7px; background: #fff; }
.acme-content-ai__change-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.acme-content-ai__change-meta strong { min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acme-content-ai__change-meta span { flex: 0 0 auto; color: #6d7482; font-size: 11px; }
.acme-content-ai__diff { display: grid; gap: 7px; }
.acme-content-ai__diff del, .acme-content-ai__diff ins { display: block; padding: 8px 9px; border-radius: 5px; font-size: 12px; line-height: 1.45; text-decoration: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.acme-content-ai__diff del { color: #7d3131; background: #fff0f0; }
.acme-content-ai__diff ins { color: #176239; background: #ebf8f0; }
.acme-content-ai__diff-image { display: block; width: min(100%, 280px); max-height: 150px; object-fit: contain; object-position: left center; border-radius: 4px; }
.acme-content-ai__change p { margin: 8px 0 0; color: #69707e; font-size: 11px; line-height: 1.4; }
.acme-content-ai__seo-row { display: grid; gap: 5px; margin-top: 10px; }
.acme-content-ai__seo-row > b { color: #4b5260; font-size: 11px; }
.acme-content-ai__notes p { padding-left: 9px; border-left: 2px solid #d8dce4; }
.acme-content-ai__recipe h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; color: #64748b; }
.acme-content-ai__recipe ol, .acme-content-ai__recipe ul { margin: 0; padding-left: 20px; }
.acme-content-ai__recipe li { margin: 5px 0; line-height: 1.45; }
.acme-content-ai__recipe-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.acme-content-ai__recipe-source b { color: #b91c1c; }
.acme-content-ai__recipe-source code, .acme-content-ai__mapping code { padding: 2px 6px; border-radius: 4px; background: #f1f5f9; color: #0f172a; }
.acme-content-ai__mapping { list-style: none; padding-left: 0 !important; }
.acme-content-ai__mapping li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.acme-content-ai__mapping span { color: #64748b; text-align: center; }
.acme-content-ai__review-foot { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-top: 1px solid #dfe2e8; }
.acme-content-ai__review-foot > span { color: #737b89; font-size: 10px; }
.acme-content-ai__review-foot button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; color: #fff; background: #16844d; border: 0; border-radius: 6px; font-weight: 700; font-size: 12px; cursor: pointer; }
.acme-content-ai__review-foot button:disabled { color: #fff; background: #b9bec8; cursor: not-allowed; }
.acme-content-ai.is-busy .acme-content-ai__review-head::after { content: "Thinking..."; color: #e60000; font-size: 11px; }
.acme-content-ai__settings[hidden] { display: none !important; }
.acme-content-ai__settings { flex: 1; min-height: 0; overflow: auto; padding: 24px; background: #f6f7f9; }
.acme-content-ai__settings-inner { max-width: 760px; margin: 0 auto; padding: 20px; background: #fff; border: 1px solid #d8dce5; border-radius: 8px; }
.acme-content-ai__settings-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.acme-content-ai__settings-title h3 { margin: 0; font-size: 18px; }
.acme-content-ai__settings-title p { margin: 5px 0 0; color: #6b7280; font-size: 12px; line-height: 1.5; }
.acme-content-ai__settings-title button, .acme-content-ai__settings-buttons button { min-height: 36px; padding: 7px 12px; border: 1px solid #cfd4dd; border-radius: 6px; background: #fff; color: #252b35; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.acme-content-ai__toggle { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 12px; font-weight: 700; }
.acme-content-ai__settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acme-content-ai__settings-grid label { display: grid; gap: 6px; }
.acme-content-ai__settings-grid label.is-wide { grid-column: 1 / -1; }
.acme-content-ai__settings-grid label > span { color: #4d5562; font-size: 11px; font-weight: 700; }
.acme-content-ai__settings-grid input, .acme-content-ai__settings-grid select { width: 100%; height: 40px; padding: 0 10px; color: #171923; background: #fff; border: 1px solid #cfd4dd; border-radius: 6px; font: inherit; font-size: 12px; }
.acme-content-ai__settings-meta { margin: 14px 0; color: #707784; font-size: 11px; }
.acme-content-ai__settings-buttons { display: flex; justify-content: flex-end; gap: 8px; }
.acme-content-ai__settings-buttons button[type="submit"] { color: #fff; background: #e60000; border-color: #e60000; }
.acme-eyebrow-admin { display: inline-flex; align-items: center; gap: 8px; }
.acme-ai-content-link svg { color: #ff4b55; }
@media (max-width: 860px) {
  .acme-content-ai__dialog { inset: 8px; }
  .acme-content-ai__body { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 50%) minmax(260px, 50%); }
  .acme-content-ai__chat { border-right: 0; border-bottom: 1px solid #d8dce5; }
  .acme-content-ai__brand small { display: none; }
  .acme-content-ai__settings-grid { grid-template-columns: 1fr; }
  .acme-content-ai__settings-grid label.is-wide { grid-column: auto; }
  .acme-content-ai__video-entry button span { display: none; }
}
