/* Scoped module surfaces; keep full images visible at every breakpoint. */
.module-dialog{width:min(760px,94vw);max-height:90dvh;overflow:auto;border:1px solid #dfe4e9;border-radius:20px;padding:24px;background:white;color:#202632;font:inherit;box-sizing:border-box}
.module-dialog::backdrop{background:#18213266}.module-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.module-dialog h2{margin:0 0 12px;font-size:24px}.module-dialog header button{border:0;background:#f1f4f7;border-radius:50%;width:36px;height:36px;font-size:24px;flex-shrink:0}.module-dialog p{line-height:1.7;overflow-wrap:anywhere}.module-dialog label{display:block;margin:14px 0}.module-dialog input:not([type=checkbox]),.module-dialog textarea,.module-dialog select{width:100%;max-width:100%;box-sizing:border-box;padding:11px;border:1px solid #dce1e8;border-radius:8px;font:inherit}.module-dialog input[type=checkbox]{width:auto;margin-right:8px}.module-dialog button{cursor:pointer}.module-dialog button:disabled{opacity:.5;cursor:default}.module-status{color:#394d88;min-height:24px}.module-dialog fieldset,.extra-modules fieldset{border:1px solid #e3e8ed;border-radius:12px;padding:14px;margin:15px 0}.module-body a{display:inline-block;overflow-wrap:anywhere}.module-log-list p{padding:10px 0;border-bottom:1px solid #e3e8ed;font-size:13px}.extra-modules{padding-bottom:20px;border-bottom:1px solid #e3e8ed}.extra-modules .module-picker{margin:14px 0}.extra-modules .module-picker button{min-width:0}.extra-modules .module-picker small{display:block;line-height:1.6}.extra-modules button[hidden]{display:none}.image-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.image-library-card{border:1px solid #e3e8ed;border-radius:12px;background:#fff;padding:10px;text-align:left;min-width:0}.image-library-card img{width:100%;height:130px;object-fit:contain;background:#f7f8fa;border-radius:8px}.image-library-card span,.image-library-card small{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.6}.image-library-card span{margin-top:8px;font-weight:600}.image-library-card[hidden]{display:none}
.site-timeline{list-style:none;padding:0;margin:32px 0}.site-timeline li{display:grid;grid-template-columns:minmax(70px,150px) minmax(0,1fr);gap:24px;padding:0 0 30px 24px;border-left:2px solid var(--brand,#5268d9);position:relative}.site-timeline li:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--brand,#5268d9);position:absolute;left:-6px;top:5px}.site-timeline time{font-weight:700}.site-timeline h3{margin:0 0 10px}.site-timeline p{white-space:pre-line;margin:0}
.site-popup{width:min(480px,90vw);border:0;border-radius:16px;padding:24px;color:#202632;background:#fff;box-sizing:border-box;max-height:90dvh;overflow:auto}.site-popup::backdrop{background:#13203666}.site-popup img{width:100%;max-height:48dvh;object-fit:contain}.site-popup h2{font-size:24px}.site-popup p{white-space:pre-line}.site-popup button{float:right;border:0;background:#f0f2f5;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer}.site-popup label{display:block;margin-top:24px;font-size:13px;clear:both}
.catalog-module-sample .board-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.catalog-module-sample .board-gallery-card{display:flex;flex-direction:column;gap:12px;min-width:0}.catalog-module-sample .board-gallery-card img{width:100%;height:210px;object-fit:contain}.catalog-module-sample .board-gallery-card strong{font-size:18px}.catalog-module-sample .board-gallery-card small{line-height:1.6;color:#667080}.catalog-module-sample .board-list{border-top:1px solid #dce2e8}.catalog-module-sample .board-row{display:flex;gap:24px;align-items:center;padding:22px 12px;border-bottom:1px solid #dce2e8}.catalog-module-sample .board-row strong{flex:1;font-size:17px}.catalog-module-sample .board-row small{color:#667080}
[data-board-style="2"] .board-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:0}[data-board-style="2"] .board-row{display:flex;flex-wrap:wrap;gap:12px;border:1px solid #dfe4e9;border-radius:14px;padding:22px}[data-board-style="2"] .board-row strong{width:100%}
[data-board-style="3"] .board-row{border:0;border-left:3px solid var(--brand,#53664e);margin-bottom:16px;background:#f8f9f7;padding:20px}[data-board-style="4"] .board-row{background:#f5f6fc;border:0;border-radius:12px;margin-bottom:12px;padding:24px}[data-board-style="4"] .board-row strong{font-size:20px}[data-board-style="5"] .board-row{padding:12px 8px;font-size:13px}[data-board-style="5"] .board-row small{font-size:11px}
[data-board-style] .board-gallery img{object-fit:contain;background:#f7f8f9}[data-board-style="2"] .board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}[data-board-style="2"] .board-gallery-card{padding:14px;border:1px solid #e0e5e9;border-radius:16px}[data-board-style="3"] .board-gallery{display:block;columns:3;column-gap:20px}[data-board-style="3"] .board-gallery-card{display:block;break-inside:avoid;margin-bottom:20px}[data-board-style="3"] .board-gallery-card img{height:auto;aspect-ratio:auto}[data-board-style="4"] .board-gallery{grid-template-columns:1fr}[data-board-style="4"] .board-gallery-card{display:grid;grid-template-columns:minmax(80px,200px) minmax(0,1fr);column-gap:24px;text-align:left}[data-board-style="4"] .board-gallery-card img{grid-row:span 2;height:140px}[data-board-style="5"] .board-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}[data-board-style="5"] .board-gallery-card h3{font-size:14px}
@media(max-width:600px){.module-dialog{padding:18px}.image-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-library-card img{height:110px}.site-timeline li{grid-template-columns:70px minmax(0,1fr);gap:14px;padding-left:16px}[data-board-style="2"] .board-list{grid-template-columns:1fr}[data-board-style="3"] .board-gallery{columns:2}[data-board-style="5"] .board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}[data-board-style="4"] .board-gallery-card{grid-template-columns:100px minmax(0,1fr);gap:12px}}
.editor-sidebar .tool-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:2px}.editor-sidebar .tool-tabs button{white-space:normal;word-break:keep-all;min-width:0;padding:9px 4px;line-height:1.4}.editor-body #properties fieldset{min-width:0;border:1px solid #e1e5eb;border-radius:10px;padding:12px;margin:12px 0}.editor-body #properties [data-posts] input[type=checkbox]{width:auto}
/* 3.96 design variants: identical selectors in editor preview and public modules. */

[data-board-style="6"] .board-list{border:0;counter-reset:posts}[data-board-style="6"] .board-row{padding:30px 0;border-bottom:2px solid #25354a;display:grid;grid-template-columns:1fr auto}[data-board-style="6"] .board-row strong{font-size:clamp(20px,3vw,30px);font-weight:800;letter-spacing:-.04em}
[data-board-style="7"] .board-list{counter-reset:posts;border:0}[data-board-style="7"] .board-row{display:grid;grid-template-columns:56px minmax(0,1fr);padding:22px 12px;border-bottom:1px dashed #c8d3df}[data-board-style="7"] .board-row:before{counter-increment:posts;content:counter(posts,decimal-leading-zero);font-size:26px;color:var(--brand,#5368aa);font-weight:800;grid-row:span 2}[data-board-style="7"] .board-row small{grid-column:2}
[data-board-style="8"] .board-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;border:0}[data-board-style="8"] .board-row{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:26px 0;border-top:3px solid #192b45;border-bottom:1px solid #dae1ea}[data-board-style="8"] .board-row strong{font-size:22px}
[data-board-style="9"] .board-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0}[data-board-style="9"] .board-row{display:flex;flex-direction:column;align-items:flex-start;gap:25px;padding:30px 22px;background:#eef1ff;border:0;border-radius:0 24px 0 24px}[data-board-style="9"] .board-row:nth-child(3n+2){background:#eaf7f0}[data-board-style="9"] .board-row:nth-child(3n){background:#fff4e5}
[data-board-style="10"] .board-list{border-top:1px solid #202b3c}[data-board-style="10"] .board-row{padding:32px 6px;background:transparent;border-bottom:1px solid #202b3c;gap:36px}[data-board-style="10"] .board-row strong{font-weight:400;font-size:19px}[data-board-style="10"] .board-row:after{content:'↗';font-size:22px}
[data-board-style="6"] .board-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}[data-board-style="6"] .board-gallery-card img{height:320px;object-fit:contain;background:#edf0f4}[data-board-style="6"] .board-gallery-card strong,[data-board-style="6"] .board-gallery-card h3{font-size:24px}
[data-board-style="7"] .board-gallery{display:flex;overflow-x:auto;gap:18px;scroll-snap-type:x proximity;padding:16px 0 24px}[data-board-style="7"] .board-gallery-card{flex:0 0 280px;scroll-snap-align:start;border-top:10px dotted #2d3545;border-bottom:10px dotted #2d3545;padding:18px 10px;background:#f1f3f7}[data-board-style="7"] .board-gallery-card img{height:200px}
[data-board-style="8"] .board-gallery{display:grid;grid-template-columns:1fr;gap:34px}[data-board-style="8"] .board-gallery-card{display:grid;grid-template-columns:1fr 1fr;gap:18px 36px;align-items:center;border-bottom:1px solid #dde4ee;padding:0 0 34px}[data-board-style="8"] .board-gallery-card img{grid-row:span 2;height:280px}[data-board-style="8"] .board-gallery-card:nth-child(even) img{grid-column:2}[data-board-style="8"] .board-gallery-card:nth-child(even) strong,[data-board-style="8"] .board-gallery-card:nth-child(even) small,[data-board-style="8"] .board-gallery-card:nth-child(even) h3{grid-column:1}[data-board-style="8"] .board-gallery-card:nth-child(even) strong,[data-board-style="8"] .board-gallery-card:nth-child(even) h3{grid-row:1}
[data-board-style="9"] .board-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding:20px;background:#f3f0eb}[data-board-style="9"] .board-gallery-card{background:white;padding:14px 14px 28px;box-shadow:0 8px 20px #24314515;transform:rotate(-2deg);text-align:center}[data-board-style="9"] .board-gallery-card:nth-child(even){transform:rotate(2deg)}[data-board-style="9"] .board-gallery-card img{height:190px;object-fit:contain}
[data-board-style="10"] .board-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}[data-board-style="10"] .board-gallery-card{background:#182236;color:#fff;padding:12px;gap:10px}[data-board-style="10"] .board-gallery-card img{height:170px;background:#25334b;object-fit:contain}[data-board-style="10"] .board-gallery-card small{color:#d5dced}
@media(max-width:700px){[data-board-style] .board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}[data-board-style="3"] .board-gallery{columns:2}[data-board-style="7"] .board-gallery{display:flex}[data-board-style="8"] .board-gallery{grid-template-columns:1fr}[data-board-style="8"] .board-gallery-card{gap:12px;grid-template-columns:1fr}[data-board-style="8"] .board-gallery-card:nth-child(even)>*{grid-column:1;grid-row:auto}[data-board-style="8"] .board-gallery-card img{grid-row:auto;height:220px}[data-board-style="9"] .board-list,[data-board-style="8"] .board-list{grid-template-columns:1fr}.catalog-module-sample .board-row{flex-wrap:wrap}.catalog-module-sample .board-gallery-card img{max-height:220px}}


.popup-position-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:300px}.popup-position-grid button{aspect-ratio:1.6;border:1px solid #d6cbea;border-radius:5px;background:#f8f6fc;color:#6246bd}.popup-position-grid button[aria-pressed=true]{background:#6246bd;color:white}.popup-rich img{max-width:100%;height:auto}.popup-rich p{white-space:pre-wrap}.module-dialog .ql-editor{min-height:140px}
