/* Properties panel (YAML front matter) in Visual and Preview: same card, inputs and menus as the rest of the editor. */
.properties-host{margin:0}
.properties-block{box-sizing:border-box;margin:0 0 16px;border:1px solid #e1e8f3;border-radius:8px;background:#fafbfe;color:#526781;font:500 13px/1.5 system-ui,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere}
.prop-head{display:flex;align-items:center;padding:4px 6px}
.prop-toggle{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:#667b98;font:600 12px/1.2 system-ui,sans-serif;cursor:pointer}
.prop-toggle:hover{background:#edf3ff;color:#3b70bc}
.prop-toggle .lucide-icon{width:14px;height:14px;transition:transform .15s ease}
.properties-block[data-open="false"] .prop-toggle .lucide-icon{transform:rotate(-90deg)}
.properties-block[data-open="false"] .prop-body{display:none}
@media(prefers-reduced-motion:reduce){.prop-toggle .lucide-icon{transition:none}}
.prop-body{padding:0 6px 8px}
.prop-row{position:relative;display:flex;align-items:flex-start;gap:6px;padding:2px 28px 2px 4px;border-radius:6px}
.prop-row:hover{background:#f1f5fb}
.prop-type{display:grid;place-items:center;flex-shrink:0;width:28px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#8193ad}
button.prop-type{cursor:pointer}
button.prop-type:hover{background:#e3ecfb;color:#3b70bc}
.prop-type .lucide-icon{width:15px;height:15px}
.prop-key{box-sizing:border-box;flex:0 0 150px;width:150px;min-width:0;height:30px;padding:0 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#667b98;font:inherit;line-height:28px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
input.prop-key:hover{border-color:#d4dfed}
input.prop-key:focus,input.prop-key:focus-visible{outline:0;border-color:#9db7e6;background:#fff}
input.prop-key.is-invalid{border-color:#e0a0a0;background:#fff6f6}
input.prop-key::placeholder{color:#9aa8bc}
.prop-value{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;min-height:30px}
.prop-text,.prop-number,.prop-date{box-sizing:border-box;border:1px solid transparent;border-radius:6px;background:transparent;color:#344155;font:inherit}
.prop-text{width:100%;padding:4px 8px;resize:none;overflow:hidden;line-height:1.5}
.prop-number,.prop-date{height:30px;padding:0 8px}
.prop-text:hover,.prop-number:hover,.prop-date:hover{border-color:#d4dfed}
.prop-text:focus,.prop-number:focus,.prop-date:focus,.prop-text:focus-visible,.prop-number:focus-visible,.prop-date:focus-visible{outline:0;border-color:#9db7e6;background:#fff}
.prop-text::placeholder{color:#a9b5c6}
.prop-chip{display:inline-flex;align-items:center;gap:2px;padding:0 4px 0 10px;border-radius:999px;background:var(--tag-bg,#e8f0ff);color:var(--tag-fg,#3b70bc);font-size:12px;line-height:22px}
.prop-chip.is-static{padding-right:10px}
.prop-chip-remove{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;opacity:.6;cursor:pointer}
.prop-chip-remove:hover{opacity:1;background:rgba(66,120,220,.16)}
.prop-chip-remove .lucide-icon{width:11px;height:11px}
.prop-chip-input{flex:1;min-width:90px;height:26px;padding:0 6px;border:0;outline:0;background:transparent;color:#344155;font:inherit;font-size:12px}
.prop-chip-input::placeholder{color:#9aa8bc}
.prop-check{display:grid;place-items:center;width:28px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#8193ad;cursor:pointer}
.prop-check:hover{background:#e3ecfb}
.prop-check[aria-checked="true"]{color:#477ed6}
.prop-check .lucide-icon{width:17px;height:17px}
.prop-static{padding:4px 8px;color:#344155}
.prop-static .lucide-icon{width:17px;height:17px;color:#477ed6;vertical-align:middle}
.prop-remove{position:absolute;right:2px;top:3px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:#94a2b5;opacity:0;cursor:pointer}
.prop-row:hover .prop-remove,.prop-row:focus-within .prop-remove{opacity:1}
.prop-remove:hover{background:#fdecec;color:#b34747}
.prop-remove .lucide-icon{width:13px;height:13px}
.prop-add{display:inline-flex;align-items:center;gap:6px;margin:4px 4px 0;padding:5px 9px;border:0;border-radius:6px;background:transparent;color:#8193ad;font:500 12px/1.2 system-ui,sans-serif;cursor:pointer}
.prop-add:hover{background:#edf3ff;color:#3b70bc}
.prop-add .lucide-icon{width:14px;height:14px}
/* Nested maps: a foldable group whose rows sit under the group name. */
.prop-fold{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:#8193ad;font:500 12px/1 system-ui,sans-serif;cursor:pointer}
.prop-fold:hover{background:#e3ecfb;color:#3b70bc}
.prop-fold .lucide-icon{width:13px;height:13px;transition:transform .15s ease}
.prop-fold.is-closed .lucide-icon{transform:rotate(-90deg)}
@media(prefers-reduced-motion:reduce){.prop-fold .lucide-icon{transition:none}}
.prop-children{margin:0 0 4px 17px;padding-left:12px;border-left:1px solid #e1e8f3}
.prop-children[hidden]{display:none}
.prop-add.is-nested{margin:2px 0 2px 4px}
/* Values that need full YAML are shown as written and are edited in Markdown mode. */
.prop-source{box-sizing:border-box;max-width:100%;margin:2px 0;padding:5px 9px;border-radius:6px;background:#f1f5fb;color:#6c7f99;font:12px/1.5 "Cascadia Code",Consolas,"Liberation Mono",monospace;white-space:pre-wrap;overflow:auto}
.prop-menu .code-lang-option:hover{background:#edf3ff;color:#3b70bc}
.prop-menu .code-lang-option>.lucide-icon:first-child{width:15px;height:15px;flex-shrink:0;color:#8193ad}
.properties-block button:disabled,.properties-block input:disabled,.properties-block textarea:disabled{opacity:.55;cursor:default}
.properties-raw{margin:0 0 16px}
/* Square corners for the whole panel (the value chips keep their pill shape, like tag badges). */
.properties-block,.prop-toggle,.prop-row,.prop-type,.prop-key,.prop-text,.prop-number,.prop-date,.prop-check,.prop-remove,.prop-add,.prop-fold,.prop-source,.prop-static,.properties-raw{border-radius:0}
