.rich-field { grid-column: 1 / -1; min-width: 0; }
.rich-field > label { margin-bottom: 6px; }
.rich-editor { position: relative; border: 1px solid #d7dfe2; border-radius: 8px; overflow: hidden; background: #fff; }
.rich-editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px #c49b5720; }
.rich-toolbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 7px 8px; border-bottom: 1px solid #e8ecf0; background: #f8fafb; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.rich-toolbar::-webkit-scrollbar { display: none; }
.rich-toolbar button, .rich-color-options button, .rich-link button, .editor-fields .rich-toolbar select { width: auto; min-height: 34px; margin: 0; border: 1px solid #d7dfe2; border-radius: 5px; background: #fff; color: #26364a; padding: 5px 9px; font: 500 12px "DM Sans", sans-serif; cursor: pointer; }
.rich-toolbar button, .rich-color-options button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.rich-toolbar button { flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-color: transparent; background: transparent; border-radius: 4px; }
.rich-toolbar button[data-command] { min-width: 32px; }
.rich-toolbar button[data-color-toggle] { flex-basis: 42px; width: 42px; gap: 5px; }
.editor-fields .rich-toolbar select { flex: 0 0 102px; width: 102px; height: 32px; min-height: 32px; padding: 0 6px; border-color: transparent; background-color: transparent; border-radius: 4px; }
.rich-toolbar-divider { flex: 0 0 1px; height: 18px; margin: 0 5px; background: #dfe5eb; }
.rich-toolbar b, .rich-toolbar u { font-size: 15px; }
.rich-icon { width: 18px; height: 18px; flex-shrink: 0; }
.rich-color-swatch { display: inline-block; width: 13px; height: 13px; border: 1px solid #26364a33; border-radius: 3px; background: #26364a; flex-shrink: 0; }
.rich-color-options { position: absolute; z-index: 5; display: grid; grid-template-columns: repeat(4, 34px); gap: 6px; padding: 8px; border: 1px solid #d7dfe2; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px #26364a26; }
.rich-color-options button { width: 34px; height: 34px; padding: 5px; }
.rich-color-options .rich-color-swatch { width: 22px; height: 22px; }
.rich-color-options button:hover, .rich-color-options button[aria-pressed=true] { border-color: #a66d16; background: #f3eadb; }
.rich-toolbar button:hover, .editor-fields .rich-toolbar select:hover { background-color: #eaf0f5; }
.rich-toolbar button[aria-pressed=true], .rich-toolbar button[aria-expanded=true] { color: #122b49; background: #e3eaf1; }
.rich-toolbar button:focus-visible, .rich-color-options button:focus-visible, .rich-toolbar select:focus-visible, .rich-link button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rich-surface { min-height: 220px; max-height: 50dvh; overflow-y: auto; padding: 16px; outline: none; color: var(--ink); font: 400 15px/1.75 "DM Sans", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.rich-surface { position: relative; }
.rich-surface:focus-visible { outline: none; }
.rich-surface[data-empty=true]::before { content: attr(data-placeholder); position: absolute; color: #7a8794; pointer-events: none; }
.rich-surface[aria-disabled=true] { background: #f6f7f8; }
.rich-help { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-top: 1px solid #e3e7eb; padding: 7px 12px; color: #647080; font: 400 11px/1.5 "DM Sans", sans-serif; }
.rich-help [data-count] { margin-left: auto; }
.rich-link { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid #e3e7eb; background: #fffaf1; }
.rich-link input { flex: 1 1 180px; min-width: 0; }
.rich-link [role=status] { flex-basis: 100%; font-size: 12px; color: #b42318; }
.rich-error { padding: 0 12px; color: #b42318; font-size: 12px; }
.rich-prose { overflow-wrap: anywhere; font-synthesis: weight style; }
.rich-prose em, .rich-prose i { font-style: italic; }
.rich-prose strong, .rich-prose b { font-weight: 700; }
.rich-prose p { margin: 0 0 1em; white-space: pre-wrap; }
.rich-prose h2, .rich-prose h3 { color: var(--navy); margin: 1.1em 0 .45em; line-height: 1.3; font-family: "Playfair Display", Georgia, serif; }
.rich-prose h2 { font-size: 26px; }
.rich-prose h3 { font-size: 21px; }
#property-form .rich-surface h3 { font-size: 21px; margin: 1.1em 0 .45em; font-family: "Playfair Display", Georgia, serif; }
.rich-prose ul, .rich-prose ol { padding-left: 1.7em; margin: .5em 0 1em; }
.rich-prose li { margin: .25em 0; }
.rich-prose li > p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.rich-prose ul { list-style: disc; }
.rich-prose ol { list-style: decimal; }
.rich-prose a { color: #175cd3; text-decoration: underline; text-underline-offset: 3px; }
.rich-prose > :first-child { margin-top: 0; }
.rich-prose > :last-child { margin-bottom: 0; }
.property-prose { color: #526173; font-size: 15px; line-height: 1.8; }
.rich-editor [hidden], .rich-field textarea[hidden] { display: none; }
.rich-toolbar button:disabled { opacity: .4; cursor: default; }
.rich-prose figure[data-blog-image] { width: 100%; max-width: 100%; margin: 1.6em auto; white-space: normal; }
.rich-prose figure[data-blog-image][data-size=medium] { width: 70%; min-width: min(250px, 100%); }
.rich-prose figure[data-blog-image][data-size=small] { width: 40%; min-width: min(180px, 100%); }
.rich-prose figure[data-blog-image] img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 5px; }
.rich-prose figure[data-blog-image] figcaption { margin: 8px 0 0; color: #526173; font: 400 13px/1.5 "DM Sans", sans-serif; text-align: center; overflow-wrap: anywhere; }
.blog-image-editor { position: relative; padding: 4px; border: 1px solid #e0e6ec; border-radius: 10px; background: #fff; }
.blog-image-editor img { min-height: 60px; object-fit: contain; cursor: pointer; }
.blog-image-editor.ProseMirror-selectednode { outline: 2px solid #a66d16; outline-offset: 2px; }
.blog-image-actions { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #e0e6ec; border-radius: 9px; background: #fffffff5; box-shadow: 0 3px 12px #10223820; }
.blog-image-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 32px; min-height: 32px; border: 0; border-radius: 5px; background: transparent; color: #26364a; padding: 4px 7px; font: 500 11px/1.3 "DM Sans", sans-serif; cursor: pointer; }
.blog-image-actions button:hover { background: #edf1f5; }
.blog-image-actions .blog-image-remove { color: #b42318; }
.blog-image-actions .blog-image-remove:hover { background: #fff0ed; }
.blog-image-actions svg { width: 16px; height: 16px; }
.blog-image-editor[data-size=small] .blog-image-edit span { display: none; }
.blog-image-actions button:focus-visible { outline: 2px solid #a66d16; outline-offset: 2px; }
.rich-image-status { margin: 0; padding: 8px 12px; border-top: 1px solid #e3e7eb; color: #526173; font: 400 12px/1.5 "DM Sans", sans-serif; }
.blog-image-settings { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #e3e8ee; border-radius: 18px; color: #26364a; background: #fff; box-shadow: 0 24px 90px #06122140; overflow-y: auto; }
.blog-image-settings::backdrop { background: #1022389c; backdrop-filter: blur(3px); }
.blog-image-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.blog-image-settings-eyebrow { color: #8b6429; font: 600 10px/1.4 "DM Sans", sans-serif; letter-spacing: .12em; }
.blog-image-settings h2 { margin: 4px 0 0; font: 600 23px/1.3 "DM Sans", sans-serif; letter-spacing: -.4px; }
.blog-image-settings-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f4f7; color: #526173; font: 26px/1 "DM Sans", sans-serif; cursor: pointer; }
.blog-image-settings-preview { position: relative; display: grid; place-items: center; width: 100%; height: 180px; margin-bottom: 22px; padding: 14px 18px 30px; border: 1px solid #e5eaf0; border-radius: 12px; background: #f4f6f8; overflow: hidden; }
.blog-image-settings-preview img { display: block; max-width: 100%; max-height: 136px; height: auto; object-fit: contain; border-radius: 5px; box-shadow: 0 3px 10px #10223812; transition: width .18s ease; }
.blog-image-settings-preview [data-size-label] { position: absolute; bottom: 8px; color: #647080; font: 500 10px/1.4 "DM Sans", sans-serif; }
.blog-image-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.blog-image-sizes legend { padding: 0; margin-bottom: 9px; font: 500 13px/1.4 "DM Sans", sans-serif; }
.blog-image-size { position: relative; min-width: 0; cursor: pointer; }
.blog-image-size > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.blog-image-size-content { display: grid; gap: 9px; padding: 12px 8px 9px; border: 1px solid #dfe5ec; border-radius: 9px; color: #526173; background: #fff; font: 500 12px/1.4 "DM Sans", sans-serif; text-align: center; transition: background .15s, border-color .15s; }
.blog-image-size-content small { display: block; color: #7b8591; font-size: 10px; }
.blog-image-size-demo { display: flex; align-items: center; justify-content: center; width: 100%; height: 22px; padding: 3px; border: 1px solid #cbd5df; border-radius: 3px; }
.blog-image-size-demo > span { display: block; height: 100%; border-radius: 1px; background: #cbd5df; }
.blog-image-size:hover .blog-image-size-content { border-color: #a5b3c2; background: #f8fafc; }
.blog-image-size input:checked + .blog-image-size-content { color: #825919; border-color: #b48a48; background: #fcf7ee; box-shadow: 0 0 0 1px #b48a4820; }
.blog-image-size input:checked + .blog-image-size-content .blog-image-size-demo { border-color: #c09b61; }
.blog-image-size input:checked + .blog-image-size-content .blog-image-size-demo > span { background: #b48a48; }
.blog-image-size input:focus-visible + .blog-image-size-content { outline: 2px solid #a66d16; outline-offset: 3px; }
.blog-image-caption-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 8px; font: 500 13px/1.4 "DM Sans", sans-serif; }
.blog-image-caption-label > span { color: #8a939d; font-weight: 400; font-size: 11px; }
.blog-image-caption-label input { flex-basis: 100%; min-width: 0; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #dce2e9; border-radius: 8px; background: #fff; color: #26364a; font: 400 16px/1.3 "DM Sans", sans-serif; }
.blog-image-caption-label input:focus { outline: 2px solid #b48a4838; outline-offset: 1px; border-color: #b48a48; }
.blog-image-settings-help { margin: 10px 0 0; color: #7b8591; font: 400 11px/1.6 "DM Sans", sans-serif; }
.blog-image-settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf0f3; }
.blog-image-settings-actions span { flex: 1; }
.blog-image-settings-actions button { min-height: 42px; border: 1px solid #dfe5ec; border-radius: 8px; padding: 8px 17px; color: #526173; background: #fff; font: 500 13px "DM Sans", sans-serif; cursor: pointer; }
.blog-image-settings-actions [type=submit] { color: #fff; border-color: #193451; background: #193451; box-shadow: 0 2px 5px #19345118; }
.blog-image-settings-actions [type=submit]:hover { background: #254767; }
.blog-image-settings-actions [data-remove] { display: grid; place-items: center; width: 42px; padding: 8px; border-color: transparent; color: #b42318; background: #fff5f3; }
.blog-image-settings-actions svg { width: 18px; height: 18px; }
.blog-image-settings button:focus-visible { outline: 2px solid #a66d16; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .blog-image-settings-preview img, .blog-image-size-content { transition: none; } }
@media (max-width: 600px) {
  .rich-toolbar { padding: 6px; }
  .rich-toolbar button { height: 36px; min-height: 36px; flex-basis: 36px; width: 36px; }
  .editor-fields .rich-toolbar select { height: 36px; min-height: 36px; }
  .rich-surface { min-height: 200px; padding: 12px; font-size: 16px; }
  .blog-image-settings { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); margin: auto 0 0; padding: 22px 20px max(22px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .blog-image-settings-preview { height: 160px; margin-bottom: 18px; }
  .blog-image-settings-preview img { max-height: 116px; }
  .blog-image-settings-heading { margin-bottom: 16px; }
  .blog-image-actions button { min-height: 36px; min-width: 36px; }
}
