.linkzi-media-image{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:11px}.linkzi-media-preview{height:110px;display:grid;place-items:center;background:#f5f5f5;border:1px solid #d4d4d4;border-radius:12px;overflow:hidden;color:#737373}.linkzi-media-preview img{width:100%;height:100%;object-fit:contain}.linkzi-media-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.linkzi-media-upload,.linkzi-media-actions button{cursor:pointer;padding:6px 10px;border:1px solid #2563eb;border-radius:8px;color:#1d4ed8;background:#eff6ff;font-size:11px;font-weight:600}.linkzi-media-upload input{display:none}.linkzi-media-actions button{border-color:#fda4af;color:#be123c;background:#fff1f2}.linkzi-media-image small{font-size:10px;color:#737373}.linkzi-media-image p[role=alert]{color:#be123c}.linkzi-media-fields{display:flex;gap:10px}.linkzi-media-fields label{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0;font-size:11px}.linkzi-media-fields input,.linkzi-media-fields select{width:100%;padding:6px 8px;border:1px solid #d4d4d4;border-radius:8px;background:white;color:#262626}.linkzi-page-thumb{width:58px;height:48px;object-fit:cover;border-radius:8px;flex-shrink:0}.linkzi-page-image{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:12px}.linkzi-page-html{overflow-wrap:anywhere}.linkzi-page-html p{margin:0 0 .75em}.linkzi-page-html ul{list-style:disc;padding-left:20px}.linkzi-page-html ol{list-style:decimal;padding-left:20px}.linkzi-page-html a{color:#2563eb;text-decoration:underline}.dark .linkzi-media-preview{background:#262626;border-color:#404040}.dark .linkzi-media-fields input,.dark .linkzi-media-fields select{background:#171717;color:#e5e5e5;border-color:#404040}
/* Existing edit dialogs keep one scrolling body on smaller screens. */
.linkzi-media-dialog{max-height:94dvh;overflow-y:auto;overscroll-behavior:contain}
.linkzi-media-preview{position:relative}.linkzi-media-preview img{position:absolute;inset:0;min-height:0;min-width:0;object-fit:contain}
/* Page text remains scoped to the existing Linkzi content container. */
.linkzi-page-html{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
.linkzi-page-html h3{font:inherit;font-size:1.2em;font-weight:700;line-height:1.4;margin:.9em 0 .5em}
.linkzi-page-html strong{font-weight:700}.linkzi-page-html em{font-style:italic}
.linkzi-page-html ul,.linkzi-page-html ol{margin:.75em 0;padding-left:1.6em;white-space:normal}
.linkzi-page-html li{margin:.25em 0;white-space:pre-wrap}
.linkzi-page-html [data-align=left]{text-align:left}.linkzi-page-html [data-align=center]{text-align:center}
.linkzi-page-editor{position:relative;min-width:0;max-width:100%;margin-top:4px;border:1px solid #d4d4d4;border-radius:8px;background:#fff;color:#171717;font-size:12px}
.linkzi-page-editor [role=toolbar]{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px;border-bottom:1px solid #d4d4d4}
.linkzi-page-tool-group{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.linkzi-page-editor [role=toolbar] button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:36px;padding:6px;white-space:nowrap}
.linkzi-page-tool-glyph{font-size:17px;font-weight:650;line-height:1}.linkzi-page-tool-bold{font-weight:800}.linkzi-page-tool-italic{font-style:italic;font-family:Georgia,serif}.linkzi-page-tool-list{font-size:12px;font-weight:600}
.linkzi-page-editor button{min-height:36px;padding:6px 8px;border:1px solid #d4d4d4;border-radius:6px;background:transparent;font:inherit;cursor:pointer;max-width:100%;white-space:normal}
.linkzi-page-editor button:hover{background:#e0f2fe}.linkzi-page-editor button:focus-visible{outline:2px solid #0284c7;outline-offset:1px}
.linkzi-page-editable{min-height:160px;padding:10px;line-height:1.65;outline:none}.linkzi-page-editable:focus{box-shadow:inset 0 0 0 2px #0284c7;border-radius:4px}
.linkzi-page-link{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border-bottom:1px solid #d4d4d4}
.linkzi-page-link input{flex:1 1 160px;min-width:0;max-width:100%;padding:8px;border:1px solid #a3a3a3;border-radius:6px;background:inherit;color:inherit}
.linkzi-page-required{position:absolute;width:1px;height:1px;opacity:0;bottom:0;left:0;pointer-events:none}
.linkzi-page-error{color:#e11d48;padding:8px;font-size:12px}
.dark .linkzi-page-editor{background:#262626;color:#f5f5f5;border-color:#525252}.dark .linkzi-page-editor [role=toolbar],.dark .linkzi-page-editor button,.dark .linkzi-page-link{border-color:#525252}.dark .linkzi-page-editor button:hover{background:#404040}
