/* Only the Heart Island editor; do not restyle the other product settings. */
#heartIslandPage .heart-island-admin-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#heartPromptOpen{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}
.heart-prompt-dialog{width:min(940px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid #dae4dc;border-radius:22px;padding:0;background:#fff;color:#10271f;box-shadow:0 28px 90px #0b211e44}
.heart-prompt-dialog::backdrop{background:#142a2366;backdrop-filter:blur(3px)}
.heart-prompt-dialog[open]{display:flex;flex-direction:column}
.heart-prompt-dialog form{display:flex;flex-direction:column;gap:0;min-height:0;max-height:calc(100dvh - 34px);padding:0;margin:0}
.heart-prompt-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 28px 18px;border-bottom:1px solid #e8eee8;flex-shrink:0}
.heart-prompt-kicker{color:#638171;font-size:12px;font-weight:700;letter-spacing:.06em}
.heart-prompt-heading h2{margin:6px 0 0;font-size:25px;line-height:1.3}
#heartPromptClose{width:44px;height:44px;padding:0;font-size:24px;flex-shrink:0;background:#f0f4ef;color:#4e6659;border-radius:12px}
.heart-prompt-body{padding:20px 28px;overflow-y:auto;min-height:0}
.heart-prompt-scope{margin:0 0 18px;padding:12px 16px;background:#f3f7ee;border:1px solid #e0e8d8;border-radius:12px;color:#52654e;font-size:13px;line-height:1.7}
.heart-prompt-field-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 10px;font-size:15px;font-weight:700}
#heartPromptCount{color:#718078;font-size:12px;font-weight:400;white-space:nowrap}
#heartPromptText{display:block;width:100%;min-height:300px;height:clamp(260px,43dvh,500px);max-height:none;resize:vertical;border:1px solid #cbd8cf;border-radius:12px;background:#fcfdfb;padding:16px;font:14px/1.85 ui-monospace,Consolas,"Microsoft YaHei",monospace;color:#17362b;outline:none;white-space:pre-wrap;overflow-wrap:anywhere}
#heartPromptText:focus{border-color:#497461;box-shadow:0 0 0 3px #406b5517}
#heartPromptText:disabled{opacity:.7}
#heartPromptMeta{font-size:12px;color:#718078;line-height:1.5;margin:10px 0 0}
.heart-prompt-hint{color:#7c8780;font-size:12px;line-height:1.7;margin:9px 0 0}
.heart-prompt-footer{padding:16px 28px 22px;border-top:1px solid #e8eee8;background:#fff;flex-shrink:0}
#heartPromptMessage{margin:0 0 12px;font-size:13px;color:#466751;line-height:1.6;min-height:21px;overflow-wrap:anywhere}
#heartPromptMessage[data-error=true]{color:#ad3d32}
.heart-prompt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.heart-prompt-actions button{min-height:44px}
#heartPromptSave{margin-left:auto;background:#173e31;color:#fff;min-width:144px}
.heart-prompt-dialog button:disabled{opacity:.55;cursor:not-allowed}
.heart-prompt-dialog button:focus-visible{outline:3px solid #729c66;outline-offset:2px}
#heartPromptReloadConfirm{margin:0 0 14px;padding:12px 14px;background:#fff6e8;border:1px solid #f0ddbb;border-radius:12px;font-size:13px;line-height:1.6}
#heartPromptReloadConfirm p{margin:0 0 8px}#heartPromptReloadConfirm button{min-height:40px;margin-right:8px}
.heart-prompt-dialog [hidden]{display:none!important}
@media(max-width:640px){#heartIslandPage>header{flex-direction:column}#heartIslandPage .heart-island-admin-actions{justify-content:flex-start;width:100%}.heart-prompt-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.heart-prompt-dialog form{max-height:calc(100dvh - 18px)}.heart-prompt-heading{padding:18px 18px 14px}.heart-prompt-heading h2{font-size:22px}.heart-prompt-body{padding:14px 18px}.heart-prompt-footer{padding:14px 18px 18px}#heartPromptText{min-height:180px;height:33dvh;font-size:16px;resize:none}.heart-prompt-actions{display:grid;grid-template-columns:1fr 1fr}#heartPromptSave{grid-column:1/-1;width:100%;margin:0}.heart-prompt-scope{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.heart-prompt-dialog *{scroll-behavior:auto}}
