/* Shared native controls: moved intact into Beginner quick options. */
.g7-builder-shell .g7c-surface-controls{box-sizing:border-box;min-width:0;max-width:100%;padding:16px;border:1px solid var(--e-line,#40546a);border-radius:14px;background:var(--e-card,#1e2d3b);color:var(--e-text,#e5edf6);margin:14px 0;container-type:inline-size;container-name:surface-style}
.g7-builder-shell .g7c-surface-controls h4{margin:0 0 6px;font:700 14px/1.4 system-ui,sans-serif}
.g7-builder-shell .g7c-surface-controls .g7c-help{margin:6px 0 14px;font:400 12px/1.5 system-ui,sans-serif;color:var(--e-muted,#afbdcc)}
.g7-builder-shell .g7c-surface-presets{margin-top:16px}
.g7-builder-shell .g7c-surface-presets h5{margin:0 0 9px;font:600 12px/1.4 system-ui,sans-serif}
.g7-builder-shell .g7c-surface-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.g7-builder-shell .g7c-surface-choices>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:80px;padding:13px 3px 8px;margin:0;border:1px solid var(--e-line,#40546a);border-radius:10px;background:var(--e-field,#14212d);color:var(--e-text,#e5edf6);font:600 11px/1.3 system-ui,sans-serif;white-space:normal;word-break:normal;overflow-wrap:normal;cursor:pointer}
.g7-builder-shell .g7c-surface-choices>button[aria-pressed=true]{border-color:var(--e-accent,#71d5cb);background:color-mix(in srgb,var(--e-accent,#71d5cb) 15%,var(--e-field,#14212d));box-shadow:0 0 0 1px var(--e-accent,#71d5cb);color:var(--e-accent,#71d5cb)}
.g7-builder-shell .g7c-surface-choices>button:focus-visible,.g7-builder-shell .g7c-surface-details>summary:focus-visible{outline:2px solid var(--e-accent,#71d5cb);outline-offset:3px}
.g7-builder-shell .g7c-surface-choices>button:disabled{opacity:.45;cursor:default}
.g7-builder-shell .g7c-surface-sample{display:block;flex:none;width:30px;height:23px;background:#a7d5d0;border:1px solid #78a9a5}
.g7-builder-shell .g7c-surface-presets:last-child .g7c-surface-sample{background:#e7f4f2;border-radius:5px}
.g7-builder-shell .g7c-surface-details{margin-top:18px;border-top:1px solid var(--e-line,#40546a);padding-top:12px}
.g7-builder-shell .g7c-surface-details>summary{padding:7px 0;cursor:pointer;font:600 12px/1.5 system-ui,sans-serif;color:var(--e-accent,#71d5cb)}
.g7-builder-shell .g7c-surface-details .g7c-field{min-width:0;margin:12px 0}
.g7-builder-shell .g7c-surface-details .g7c-input{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
.g7-builder-shell .g7c-surface-details label{font:500 12px/1.4 system-ui,sans-serif;color:var(--e-text,#e5edf6)}
.g7-builder-shell .g7c-surface-details input[type=checkbox]{width:20px;height:20px;accent-color:var(--e-accent,#71d5cb)}
.g7-builder-shell .g7c-surface-reset{width:100%;min-height:40px;margin:16px 0 0;padding:10px 12px;white-space:normal;font:600 12px/1.4 system-ui,sans-serif;border-radius:9px}
.g7-builder-shell .ib-beginner-quick-options .g7c-surface-controls{margin:0 0 16px;padding:14px}
@container surface-style (max-width:220px){.g7-builder-shell .g7c-surface-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container surface-style (min-width:340px){.g7-builder-shell .g7c-surface-corners,.g7-builder-shell .g7c-surface-shadow-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.g7-builder-shell .g7c-surface-shadow-fields>.g7c-help{grid-column:1/-1}}

/* A visual catalogue of edge treatments, shown above quick options and the canvas. */
.g7-builder-shell .g7c-surface-more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:58px;margin:18px 0 0;padding:12px;border:1px solid var(--e-accent);border-radius:10px;color:var(--e-accent);background:var(--e-tint);font:700 13px/1.4 system-ui;cursor:pointer}
.g7c-surface-more small{font:400 11px/1.4 system-ui;color:var(--e-muted)}
.g7-builder-shell dialog.g7c-surface-gallery{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--e-line);border-radius:20px;background:var(--e-panel);color:var(--e-ink);box-shadow:0 24px 90px #0006;overflow:hidden;font-family:system-ui}
.g7c-surface-gallery[open]{display:flex;flex-direction:column}.g7c-surface-gallery::backdrop{background:rgba(4,14,24,.65);backdrop-filter:blur(4px)}
.g7c-surface-gallery>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 26px 20px;border-bottom:1px solid var(--e-line)}
.g7c-surface-gallery-eyebrow{color:var(--e-accent);font:700 10px/1.4 system-ui;letter-spacing:.14em}.g7c-surface-gallery h2{margin:7px 0 8px;font:750 25px/1.2 system-ui;color:var(--e-ink)}.g7c-surface-gallery header p{margin:0;font:400 12px/1.6 system-ui;color:var(--e-muted)}
.g7-builder-shell .g7c-surface-gallery-close{display:grid;place-items:center;flex:none;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--e-line);border-radius:50%;font:400 26px/1 system-ui;color:var(--e-muted);background:var(--e-field)}
.g7c-surface-gallery-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 26px}.g7c-surface-gallery-tabs{display:flex;flex-wrap:wrap;gap:6px}
.g7-builder-shell .g7c-surface-gallery-tabs button{min-height:38px;padding:8px 12px;border:1px solid var(--e-line);border-radius:9px;background:var(--e-field)!important;color:var(--e-muted)!important;font:600 12px/1.3 system-ui}
.g7-builder-shell .g7c-surface-gallery-tabs button[aria-pressed=true]{border-color:var(--e-accent)!important;background:var(--e-tint)!important;color:var(--e-accent)!important}
.g7c-surface-gallery-colour{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;font:500 11px/1.4 system-ui;color:var(--e-muted)}.g7c-surface-gallery-colour input{box-sizing:border-box;width:36px;height:32px;padding:3px;border:1px solid var(--e-line);border-radius:7px;background:var(--e-field);cursor:pointer}
.g7c-surface-gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:12px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 26px 22px;scrollbar-gutter:stable}
.g7-builder-shell .g7c-surface-gallery .g7c-surface-style-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:5px 5px 10px;border:1px solid var(--e-line)!important;border-radius:12px;background:var(--e-field)!important;color:var(--e-ink)!important;text-align:left;white-space:normal;cursor:pointer;box-shadow:none}
.g7c-surface-style-card[hidden]{display:none!important}.g7-builder-shell .g7c-surface-gallery .g7c-surface-style-card[aria-pressed=true]{border-color:var(--e-accent)!important;box-shadow:0 0 0 1px var(--e-accent);background:var(--e-tint)!important}.g7c-surface-style-card:disabled{opacity:.4;cursor:not-allowed}
.g7c-surface-style-stage{display:flex;align-items:center;justify-content:center;flex:none;min-height:98px;height:98px;margin-bottom:9px;border-radius:8px;background:linear-gradient(145deg,#f3f7f8,#dae5e9);overflow:hidden}
.g7c-surface-style-demo{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:5px;width:70px;height:46px;min-width:0;min-height:0;padding:8px;background:#fff;object-fit:cover;flex:none}
img.g7c-surface-style-demo{padding:0}.g7c-surface-style-demo i{display:block;width:12px;height:7px;background:#91c6bf;border-radius:3px}.g7c-surface-style-demo b{display:block;width:82%;height:3px;background:#bccbd2;border-radius:2px}.g7c-surface-style-demo b:last-child{width:55%}
.g7c-surface-style-card>strong,.g7c-surface-style-card>small{display:block;margin:0 7px}.g7c-surface-style-card>strong{font:650 11px/1.4 system-ui}.g7c-surface-style-card>small{margin-top:2px;font:400 10px/1.4 system-ui;color:var(--e-muted)}
.g7c-surface-gallery>footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 26px;border-top:1px solid var(--e-line);background:var(--e-card)}
.g7c-surface-gallery-status{margin:0;color:var(--e-muted);font:400 11px/1.5 system-ui}.g7c-surface-gallery-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.g7c-surface-gallery-actions button{min-height:40px;padding:9px 12px;font:600 11px/1.4 system-ui;border-radius:8px}.g7-builder-shell .g7c-surface-gallery-done{color:var(--e-panel)!important;background:var(--e-accent)!important;border-color:var(--e-accent)!important}
.g7c-surface-gallery button:focus-visible,.g7c-surface-gallery input:focus-visible{outline:2px solid var(--e-accent);outline-offset:3px}
@media(max-width:700px){.g7c-surface-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:2px 18px 18px}.g7c-surface-gallery>header{padding:20px 18px 16px}.g7c-surface-gallery-tools{padding:12px 18px;align-items:flex-start;flex-direction:column}.g7c-surface-gallery>footer{padding:14px 18px;align-items:stretch;flex-direction:column;gap:10px}.g7c-surface-gallery-actions{justify-content:space-between}}
@media(max-width:420px){.g7c-surface-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.g7c-surface-gallery h2{font-size:22px}.g7c-surface-gallery-tabs button{padding:8px 9px}.g7c-surface-gallery-actions button{min-height:44px}.g7c-surface-style-stage{min-height:92px;height:92px}}

/* Simple, preview-first background blends. */
.g7-builder-shell .g7c-gradient-launch{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:10px;border:1px solid var(--e-line);border-radius:10px;background:var(--e-field);color:var(--e-ink);text-align:left;white-space:normal;cursor:pointer}
.g7c-gradient-launch-swatch{flex:none;width:48px;height:38px;border:1px solid #ffffff35;border-radius:8px}.g7c-gradient-launch>span:last-child{display:grid;gap:4px;min-width:0}.g7c-gradient-launch strong{font:650 12px/1.4 system-ui}.g7c-gradient-launch small{font:400 11px/1.4 system-ui;color:var(--e-muted)}
.g7-builder-shell .g7-colour-gradient-launch{grid-column:1/-1;display:block;width:100%;padding:10px;border:1px solid var(--e-line);border-radius:8px;background:linear-gradient(100deg,#132f3b,#146a60);color:#fff;font:650 12px/1.4 system-ui;cursor:pointer}
.g7-builder-shell dialog.g7c-gradient-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--e-line);border-radius:18px;background:var(--e-panel);color:var(--e-ink);box-shadow:0 24px 90px #0007;overflow:hidden;font-family:system-ui}
.g7c-gradient-dialog[open]{display:flex;flex-direction:column}.g7c-gradient-dialog::backdrop{background:#04101bb3;backdrop-filter:blur(4px)}
.g7c-gradient-dialog>header{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid var(--e-line)}
.g7c-gradient-eyebrow{font:750 10px/1.4 system-ui;letter-spacing:.15em;color:var(--e-accent)}.g7c-gradient-dialog h2{font:750 22px/1.3 system-ui;margin:5px 0 7px}.g7c-gradient-dialog header p{margin:0;color:var(--e-muted);font:400 12px/1.6 system-ui}
.g7-builder-shell .g7c-gradient-dialog button{box-sizing:border-box;cursor:pointer;font-family:system-ui;margin:0;white-space:normal}.g7-builder-shell .g7c-gradient-dialog .g7c-gradient-close{flex:none;width:34px;height:34px;padding:0;border:1px solid var(--e-line);border-radius:50%;background:var(--e-field);color:var(--e-ink);font-size:23px;line-height:1}
.g7c-gradient-body{overflow:auto;min-height:0;padding:20px 24px;overscroll-behavior:contain}.g7c-gradient-preview{display:flex;flex:none;min-height:104px;box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:20px;border-radius:12px;text-align:center;border:1px solid #ffffff20}.g7c-gradient-preview strong{font:750 22px/1.35 system-ui}.g7c-gradient-preview span{font:400 11px/1.4 system-ui;opacity:.85}.g7c-gradient-dialog h3{font:650 12px/1.4 system-ui;margin:20px 0 10px}
.g7c-gradient-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.g7-builder-shell .g7c-gradient-presets>button{display:grid;gap:7px;min-width:0;padding:6px 6px 8px;border:1px solid var(--e-line);border-radius:9px;background:var(--e-field);color:var(--e-ink);font:550 10px/1.4 system-ui}.g7c-gradient-swatch{display:block;height:32px;border-radius:5px;border:1px solid #ffffff25}
.g7c-gradient-colours{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;margin-top:22px}.g7c-gradient-colours label{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:7px;font:600 11px/1.4 system-ui;min-width:0}.g7c-gradient-colours label>span:first-child{grid-column:1/-1}.g7c-gradient-colour-value{font:500 11px/1.4 ui-monospace,monospace;color:var(--e-muted)}
.g7-builder-shell .g7c-gradient-colours input[type=color]{box-sizing:border-box;display:block;width:40px;min-width:40px;max-width:40px;height:36px;padding:3px;border:1px solid var(--e-line);border-radius:7px;background:var(--e-field);cursor:pointer}.g7-builder-shell .g7c-gradient-swap{min-height:36px;padding:8px 12px;border:1px solid var(--e-line);border-radius:8px;background:var(--e-field);color:var(--e-accent);font:600 11px/1.4 system-ui}
.g7c-gradient-directions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.g7-builder-shell .g7c-gradient-directions>button{display:grid;justify-items:center;gap:2px;min-height:55px;padding:6px;border:1px solid var(--e-line);border-radius:9px;background:var(--e-field);color:var(--e-ink)}.g7c-gradient-directions>button>span{font:500 21px/1.2 system-ui}.g7c-gradient-directions small{font:550 10px/1.4 system-ui}
.g7-builder-shell .g7c-gradient-dialog button[aria-pressed=true]{border-color:var(--e-accent);box-shadow:0 0 0 1px var(--e-accent);background:var(--e-tint)}
.g7c-gradient-fine{margin-top:14px}.g7c-gradient-fine summary{padding:8px 0;font:600 11px/1.4 system-ui;color:var(--e-accent);cursor:pointer}.g7c-gradient-fine label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding-top:10px;font:500 12px/1.4 system-ui}.g7c-gradient-fine input{grid-column:1/-1;width:100%;accent-color:var(--e-accent)}.g7c-gradient-note{margin:12px 0;font:400 11px/1.6 system-ui;color:var(--e-muted)}
.g7-builder-shell .g7c-gradient-solid{display:block;padding:5px 0;border:0;background:none;color:var(--e-accent);font:550 11px/1.5 system-ui;text-align:left;text-decoration:underline;text-underline-offset:3px}
.g7c-gradient-dialog>footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--e-line);background:var(--e-panel)}.g7c-gradient-dialog footer>div{display:flex;gap:8px}.g7-builder-shell .g7c-gradient-dialog footer button{min-height:40px;padding:9px 13px;border:1px solid var(--e-line);border-radius:9px;background:var(--e-field);color:var(--e-ink);font:650 12px/1.4 system-ui}.g7-builder-shell .g7c-gradient-dialog footer .g7c-gradient-apply{border-color:var(--e-accent);background:var(--e-accent);color:var(--e-accent-ink,#13343b)}
.g7-builder-shell .g7c-gradient-dialog button:focus-visible,.g7-builder-shell .g7c-gradient-launch:focus-visible,.g7-builder-shell .g7-colour-gradient-launch:focus-visible{outline:2px solid var(--e-accent);outline-offset:3px}.g7c-gradient-dialog button:disabled{opacity:.45;cursor:default}
@media(max-width:480px){.g7c-gradient-dialog>header{padding:17px}.g7c-gradient-dialog h2{font-size:20px}.g7c-gradient-body{padding:16px}.g7c-gradient-preview strong{font-size:18px}.g7c-gradient-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.g7c-gradient-colours{grid-template-columns:1fr 1fr;gap:10px}.g7c-gradient-colours .g7c-gradient-swap{grid-column:1/-1;justify-self:start}.g7c-gradient-dialog>footer{padding:12px;gap:8px;flex-wrap:wrap}.g7c-gradient-dialog footer button{padding:9px 10px;font-size:11px}}

.g7-builder-shell .g7c-carousel-launcher{margin:16px 0;min-width:0}.g7-builder-shell .g7c-carousel-launch{display:grid;gap:5px;width:100%;min-height:65px;padding:14px;text-align:left;border:1px solid var(--e-accent);border-radius:11px;background:var(--e-tint);color:var(--e-accent);font:700 13px/1.4 system-ui}.g7c-carousel-launch small{font:400 11px/1.4 system-ui;color:var(--e-muted)}
.g7-builder-shell dialog.g7c-carousel-panel{box-sizing:border-box;width:min(1320px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(880px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--e-line);border-radius:19px;background:var(--e-panel);color:var(--e-ink);box-shadow:0 25px 90px #0008;overflow:hidden;font-family:system-ui}.g7c-carousel-panel[open]{display:flex;flex-direction:column}.g7c-carousel-panel::backdrop{background:#06101dcc;backdrop-filter:blur(5px)}
.g7c-carousel-panel>header{display:flex;flex:none;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 25px;border-bottom:1px solid var(--e-line)}.g7c-carousel-eyebrow{font:750 10px/1.4 system-ui;letter-spacing:.14em;color:var(--e-accent)}.g7c-carousel-panel h2{font:750 25px/1.3 system-ui;margin:5px 0}.g7c-carousel-panel header p{font:400 12px/1.5 system-ui;margin:5px 0 0;color:var(--e-muted)}.g7-builder-shell .g7c-carousel-panel .g7c-carousel-close{width:35px;height:35px;min-width:35px;padding:0;margin:0;border:1px solid var(--e-line);border-radius:50%;background:var(--e-field);color:var(--e-ink);font-size:24px;line-height:1}
.g7c-carousel-workspace{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr);flex:1;min-height:0;overflow:hidden}.g7c-carousel-stage{display:flex;flex-direction:column;min-height:0;min-width:0;padding:20px;background:color-mix(in srgb,var(--e-field) 70%,var(--e-panel));border-right:1px solid var(--e-line)}.g7c-carousel-preview-heading{font:650 12px/1.4 system-ui;margin-bottom:12px;color:var(--e-muted)}.g7c-carousel-stage iframe{width:100%;height:100%;min-height:0;flex:1;border:1px solid var(--e-line);border-radius:12px;background:#fff}.g7c-carousel-preview-note{margin:12px 0 0;font:400 11px/1.5 system-ui;color:var(--e-muted)}.g7c-carousel-inspector{display:flex;flex-direction:column;min-width:0;min-height:0}.g7c-carousel-tabs{display:flex;flex:none;gap:5px;padding:14px;border-bottom:1px solid var(--e-line);background:var(--e-panel)}.g7-builder-shell .g7c-carousel-tabs>button{flex:1;min-height:40px;margin:0;padding:8px;border:1px solid var(--e-line);border-radius:8px;background:var(--e-field);color:var(--e-muted);font:650 12px/1.4 system-ui}.g7-builder-shell .g7c-carousel-tabs>button[aria-selected=true]{background:var(--e-tint);border-color:var(--e-accent);color:var(--e-accent)}
.g7c-carousel-fields{padding:20px;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;flex:1}.g7c-carousel-fields h3{font:750 17px/1.4 system-ui;margin:0 0 8px}.g7c-carousel-fields .g7c-help{font:400 12px/1.6 system-ui;color:var(--e-muted);margin:0 0 16px}.g7c-carousel-fields .g7c-field{margin:16px 0;min-width:0}.g7c-carousel-fields .g7c-field label{font:600 12px/1.5 system-ui}.g7c-carousel-fields :is(input,textarea,select){box-sizing:border-box;max-width:100%;min-width:0}.g7c-carousel-fields input:not([type=checkbox]):not([type=radio]):not([type=color]),.g7c-carousel-fields :is(textarea,select){width:100%}.g7c-carousel-fields textarea{min-height:95px}.g7c-carousel-fields .g7c-input{padding:10px;border:1px solid var(--e-line);border-radius:8px;background:var(--e-field);color:var(--e-ink)}
.g7c-carousel-designs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0 22px}.g7-builder-shell .g7c-carousel-designs>button{display:grid;gap:9px;min-width:0;min-height:110px;padding:7px 7px 10px;margin:0;border:1px solid var(--e-line);border-radius:11px;background:var(--e-field);color:var(--e-ink);text-align:center;white-space:normal}.g7c-carousel-designs strong{font:600 10px/1.4 system-ui}.g7-builder-shell .g7c-carousel-designs>button[aria-pressed=true]{border-color:var(--e-accent);box-shadow:0 0 0 1px var(--e-accent);background:var(--e-tint)}.g7c-carousel-design-sample{position:relative;display:block;height:63px;overflow:hidden;border-radius:6px;background:linear-gradient(135deg,#142e3b,#214f50)}.g7c-carousel-design-sample i{position:absolute;display:block;inset:8px 12px;background:#edf5f1;border-radius:4px;box-shadow:0 3px 6px #0004;overflow:hidden}.g7c-carousel-design-sample b{display:block;background:linear-gradient(130deg,#87bcb0,#dbe2bc);height:69%}.g7c-carousel-design-sample em{display:block;margin:5px 6px;width:52%;height:3px;background:#46766d;border-radius:2px}.g7c-carousel-design-sample i:nth-child(n+2){display:none}
.g7c-carousel-design-sample[data-look=cards] i{inset:12px auto 12px 5%;width:28%}.g7c-carousel-design-sample[data-look=cards] i:nth-child(2){display:block;left:36%}.g7c-carousel-design-sample[data-look=cards] i:nth-child(3){display:block;left:67%}.g7c-carousel-design-sample:is([data-look=spotlight],[data-look=editorial]) i{inset:10px 8px;display:grid;grid-template-columns:55% 1fr}.g7c-carousel-design-sample:is([data-look=spotlight],[data-look=editorial]) b{height:100%}.g7c-carousel-design-sample:is([data-look=spotlight],[data-look=editorial]) em{align-self:center;width:75%;margin-left:4px}.g7c-carousel-design-sample[data-look=editorial]{background:#acb7a5}.g7c-carousel-design-sample[data-look=thumbnails] i{inset:6px 17px 18px}.g7c-carousel-design-sample[data-look=thumbnails]:after{content:'';position:absolute;width:47%;height:7px;left:27%;bottom:6px;background:repeating-linear-gradient(90deg,#c5e8dc 0 20%,transparent 20% 26%);border-radius:2px}
.g7c-carousel-design-sample:is([data-look=stacked],[data-look=polaroid]) i{inset:12px 20px;z-index:3;transform:rotate(-3deg)}.g7c-carousel-design-sample:is([data-look=stacked],[data-look=polaroid]) i:nth-child(2){display:block;transform:rotate(10deg);z-index:2}.g7c-carousel-design-sample:is([data-look=stacked],[data-look=polaroid]) i:nth-child(3){display:block;transform:rotate(-12deg);z-index:1}.g7c-carousel-design-sample[data-look=polaroid]{background:#c3bdac}.g7c-carousel-design-sample[data-look=polaroid] i{border:3px solid #fff;border-bottom-width:8px;border-radius:0}.g7c-carousel-design-sample[data-look=cinema] i{inset:0;background:linear-gradient(120deg,#527c78,#143b45)}.g7c-carousel-design-sample[data-look=cinema] b{height:100%;background:linear-gradient(transparent,#081b2bb0)}.g7c-carousel-design-sample[data-look=cinema] em{position:absolute;bottom:8px;background:#eef4ef;height:5px;width:45%}.g7c-carousel-design-sample:is([data-look=coverflow],[data-look=gallery]) i{inset:10px 28px;z-index:2}.g7c-carousel-design-sample:is([data-look=coverflow],[data-look=gallery]) i:nth-child(2){display:block;transform:translateX(-75%) scale(.8);opacity:.6;z-index:1}.g7c-carousel-design-sample:is([data-look=coverflow],[data-look=gallery]) i:nth-child(3){display:block;transform:translateX(75%) scale(.8);opacity:.6;z-index:1}.g7c-carousel-design-sample[data-look=focus] i{inset:8px 26px 8px 8px}.g7c-carousel-design-sample[data-look=focus]:after{content:'';position:absolute;width:12px;height:75%;right:7px;top:13%;background:repeating-linear-gradient(#b7ded2 0 25%,transparent 25% 36%);border-radius:2px}
.g7c-carousel-slide-tools{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.g7-builder-shell .g7c-carousel-slide-tools>button{flex:1;min-width:90px;padding:9px 11px;white-space:normal;font:600 11px/1.4 system-ui}.g7c-carousel-slide-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 20px}.g7-builder-shell .g7c-carousel-slide-list>button{display:grid;gap:6px;min-width:0;padding:5px;margin:0;border:1px solid var(--e-line);border-radius:8px;background:var(--e-field);color:var(--e-ink);font:600 10px/1.4 system-ui}.g7c-carousel-slide-list img{width:100%;height:56px;border-radius:5px;object-fit:cover}.g7-builder-shell .g7c-carousel-slide-list>button[aria-pressed=true]{border-color:var(--e-accent);box-shadow:0 0 0 1px var(--e-accent)}
.g7c-carousel-panel>footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;padding:15px 24px;border-top:1px solid var(--e-line);background:var(--e-panel)}.g7c-carousel-panel footer p{margin:0;font:400 11px/1.5 system-ui;color:var(--e-muted)}.g7c-carousel-panel footer>div{display:flex;gap:8px}.g7-builder-shell .g7c-carousel-panel footer button{min-height:40px;min-width:64px;padding:10px 14px;margin:0;border:1px solid var(--e-line);border-radius:9px;background:var(--e-field);color:var(--e-ink);font:650 12px/1.4 system-ui}.g7-builder-shell .g7c-carousel-panel footer .g7c-carousel-done{background:var(--e-accent);border-color:var(--e-accent);color:var(--e-accent-ink,#14333a)}.g7c-carousel-panel button:disabled{opacity:.4;cursor:default}.g7c-carousel-panel :is(button,input,select,textarea):focus-visible{outline:2px solid var(--e-accent);outline-offset:3px}
@media(max-width:850px){.g7c-carousel-workspace{grid-template-columns:minmax(0,1fr);overflow:auto;display:block}.g7c-carousel-stage{height:310px;box-sizing:border-box;border-right:0;border-bottom:1px solid var(--e-line);padding:14px}.g7c-carousel-inspector{overflow:visible}.g7c-carousel-fields{overflow:visible;padding:17px}.g7c-carousel-tabs{position:sticky;top:0;z-index:2}.g7c-carousel-panel>header{padding:17px}.g7c-carousel-panel h2{font-size:21px}.g7c-carousel-panel>footer{padding:12px;gap:8px}.g7c-carousel-panel footer p{max-width:45%;font-size:10px}.g7c-carousel-designs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:420px){.g7c-carousel-panel footer p{display:none}.g7c-carousel-panel>footer{justify-content:flex-end}.g7c-carousel-designs{gap:7px}.g7c-carousel-design-sample{height:58px}.g7c-carousel-fields{padding:14px}.g7c-carousel-stage{height:270px}.g7c-carousel-slide-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

.g7c-carousel-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}.g7c-carousel-preview-tools{display:flex;gap:5px}.g7-builder-shell .g7c-carousel-preview-tools button{min-height:30px;padding:5px 9px;margin:0;border:1px solid var(--e-line);border-radius:7px;background:var(--e-field);color:var(--e-muted);font:600 10px/1.4 system-ui}.g7-builder-shell .g7c-carousel-preview-tools button[aria-pressed=true]{border-color:var(--e-accent);background:var(--e-tint);color:var(--e-accent)}.g7c-carousel-preview-viewport{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;border:1px solid var(--e-line);border-radius:11px;background:var(--e-field)}.g7c-carousel-preview-viewport iframe{position:absolute;left:0;top:0;transform-origin:top left;border:0;border-radius:0;max-width:none;min-width:0;display:block}

/* Keep the first popup compact; previews and sliders live in their own panel. */
.g7-builder-shell .g7c-surface-controls.g7c-surface-launcher{padding:0;margin:4px 0 12px;border:0;background:none;container-type:normal}
.g7-builder-shell .g7c-surface-launcher .g7c-surface-more{display:inline-flex;flex-direction:row;justify-content:flex-start;gap:8px;width:auto;max-width:100%;min-height:36px;padding:6px 0;margin:0;border:0;background:none;box-shadow:none;text-align:left;text-decoration:underline;text-underline-offset:4px;font:600 12px/1.5 system-ui}
.g7c-surface-launcher .g7c-surface-more::after{content:'\2197';font-size:16px;text-decoration:none}
.g7-builder-shell dialog.g7c-surface-gallery{width:min(1080px,calc(100vw - 24px))}
.g7c-surface-gallery>header,.g7c-surface-gallery-tools{flex:none}
.g7c-surface-gallery-body{display:grid;grid-template-columns:minmax(0,1fr) 290px;min-height:0;overflow:auto;overscroll-behavior:contain}
.g7c-surface-gallery-body .g7c-surface-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;scrollbar-gutter:auto}
.g7c-surface-adjustments{min-width:0;padding:0 20px 20px;border-left:1px solid var(--e-line)}
.g7c-surface-adjustments h3{margin:0 0 12px;font:650 14px/1.5 system-ui;color:var(--e-ink)}
.g7c-surface-adjust-preview{display:grid;place-items:center;min-height:100px;background:linear-gradient(145deg,#f3f7f8,#dae5e9);border-radius:10px;overflow:hidden}
.g7c-surface-adjust-preview .g7c-surface-style-demo{width:110px;height:65px;font:600 12px/1.4 system-ui;color:#243448}
.g7-builder-shell .g7c-surface-adjustments .g7c-surface-controls{padding:0;margin:10px 0 0;border:0;background:none;container-type:normal}
.g7c-surface-adjustments .g7c-surface-details{margin:0;border:0;padding:0}
.g7c-surface-adjustments .g7c-surface-details>summary{display:none}
.g7c-surface-adjustments .g7c-surface-corners,.g7c-surface-adjustments .g7c-surface-shadow-fields{display:block}
@media(max-width:700px){.g7c-surface-gallery-body{display:block}.g7c-surface-gallery-body .g7c-surface-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.g7c-surface-adjustments{border:0;padding:0 18px 20px}.g7c-surface-gallery-body[data-surface-panel=styles] .g7c-surface-adjustments,.g7c-surface-gallery-body[data-surface-panel=adjust] .g7c-surface-gallery-grid{display:none}}
@media(max-width:420px){.g7c-surface-gallery-body .g7c-surface-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.g7-builder-shell[data-mode-numbers=inputs] .g7c-surface-adjustments .g7c-size-slider{display:block!important}
.g7-builder-shell .g7c-surface-adjustments .g7c-size-slider-value{display:block!important;color:var(--e-muted);font-size:11px}

/* A compact style entry and a pinned, faithful preview beside scrolling values. */
.g7-builder-shell .g7c-surface-launcher .g7c-surface-more{display:flex;align-items:center;width:100%;min-height:42px;padding:8px 10px;gap:9px;border:1px solid var(--e-line);border-radius:9px;background:var(--e-field);text-decoration:none;line-height:1.4;color:var(--e-ink);font-weight:600;box-sizing:border-box;white-space:normal}
.g7-builder-shell .g7c-surface-launcher .g7c-surface-more:hover{border-color:var(--e-accent);background:var(--e-tint);color:var(--e-accent)}
.g7c-surface-link-icon{display:block;flex:none;width:20px;height:20px;color:var(--e-accent)}.g7c-surface-link-icon svg{display:block;width:100%;height:100%}
.g7c-surface-launcher .g7c-surface-more::after{content:'\203A';margin-left:auto;font-size:21px;line-height:1;color:var(--e-muted)}
.g7-builder-shell dialog.g7c-surface-gallery{height:min(880px,calc(100dvh - 24px))}
.g7c-surface-gallery-body{flex:1;overflow:hidden;grid-template-columns:minmax(0,1fr) 330px;min-height:0}
.g7c-surface-gallery-body .g7c-surface-gallery-grid{overflow-y:auto;min-height:0;height:100%;box-sizing:border-box;align-content:start;padding-bottom:22px}
.g7c-surface-adjustments{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0}
.g7c-surface-preview-dock{flex:none;padding:14px 18px 12px;background:var(--e-panel);border-bottom:1px solid var(--e-line)}
.g7c-surface-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.g7c-surface-preview-heading h3{margin:0;font-size:13px}.g7c-surface-preview-heading>span{font:700 8px/1.4 system-ui;letter-spacing:.1em;color:var(--e-accent);white-space:nowrap}
.g7c-surface-preview-dock>strong{display:block;margin:5px 0 10px;color:var(--e-muted);font:500 11px/1.4 system-ui}.g7c-surface-preview-dock>p{margin:8px 0 0;font:400 10px/1.4 system-ui;color:var(--e-muted)}
.g7c-surface-adjust-preview{display:block;position:relative;min-height:0;height:160px;overflow:hidden;background-color:#e8eff0;background-image:linear-gradient(45deg,#dce6e8 25%,transparent 25%),linear-gradient(-45deg,#dce6e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dce6e8 75%),linear-gradient(-45deg,transparent 75%,#dce6e8 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.g7c-surface-adjust-preview iframe{position:absolute;left:50%;top:50%;transform-origin:center;max-width:none;min-width:0;border:0;display:block;pointer-events:none;background:transparent}
.g7c-surface-adjust-fields{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 18px 18px}
@media(max-width:700px){.g7c-surface-gallery-body{display:block}.g7c-surface-adjustments{height:100%;padding:0}.g7c-surface-preview-dock{padding:10px 18px}.g7c-surface-adjust-preview{height:130px}.g7c-surface-preview-dock>p{margin-top:5px}.g7c-surface-gallery-body[data-surface-panel=adjust] .g7c-surface-adjustments{display:flex}.g7c-surface-gallery-body[data-surface-panel=styles] .g7c-surface-gallery-grid{height:100%;overflow:auto}}
@media(max-height:650px){.g7c-surface-adjust-preview{height:95px}.g7c-surface-preview-dock{padding-top:8px;padding-bottom:8px}.g7c-surface-preview-dock>p{display:none}.g7c-surface-gallery>header{padding-top:12px;padding-bottom:12px}.g7c-surface-gallery-tools{padding-top:8px;padding-bottom:8px}}

.g7-builder-shell .ib-beginner-quick-body>.g7c-surface-launcher{position:sticky;top:0;z-index:3;padding:0 0 8px;margin-bottom:8px;background:var(--e-panel);border-radius:0}

.g7-builder-shell .g7c-surface-adjust-preview iframe{background:transparent!important;box-shadow:none!important}

.g7-builder-shell .g7c-surface-adjust-preview{background:#e5edef}.g7-builder-shell .g7c-surface-adjust-preview iframe{background:#e5edef!important}

/* Carousel content has one editing route; retain normal history and structural actions. */
.g7-builder-shell .g7c-carousel-exclusive [data-selection-action]:not(:is([data-selection-action=carousel],[data-selection-action=undo],[data-selection-action=redo],[data-selection-action=duplicate],[data-selection-action=delete],[data-selection-action=parent],[data-selection-action=move-up],[data-selection-action=move-down],[data-selection-action=more])){display:none!important}

/* Real, paused carousel examples use the same renderer as the live preview. */
.g7c-carousel-design-sample[data-real-preview]{height:100px;background:var(--e-panel,#172b3c);border:1px solid var(--e-line,#436073);isolation:isolate}
.g7c-carousel-design-sample[data-real-preview]:after{display:none!important}
.g7-builder-shell .g7c-carousel-design-sample[data-real-preview]>iframe{position:absolute;display:block;width:1100px!important;max-width:none!important;min-width:0!important;height:800px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform-origin:top left;pointer-events:none;background:transparent;box-shadow:none!important}

/* Choose a slide first, then edit its words in one clearly labelled area. */
.g7c-carousel-slide-hint{margin-bottom:14px}
.g7c-carousel-slide-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 10px}
.g7-builder-shell .g7c-carousel-slide-list>button{position:relative;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto 1fr;gap:3px 10px;align-items:start;padding:9px;text-align:left;min-height:84px}
.g7c-carousel-slide-list img{grid-column:1;grid-row:1/3;width:64px;height:64px;object-fit:cover}
.g7c-carousel-slide-number{font:650 11px/1.3 system-ui;color:var(--e-muted)}
.g7c-carousel-slide-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 11px/1.4 system-ui;overflow-wrap:anywhere}
.g7c-carousel-slide-selected{position:absolute;bottom:7px;left:10px;padding:2px 5px;border-radius:4px;background:var(--e-accent);color:var(--e-accent-ink,#14333a);font:700 9px/1.3 system-ui}
.g7-builder-shell .g7c-carousel-slide-list>button[aria-pressed=true]{background:var(--e-tint)}
.g7-builder-shell .g7c-carousel-add-slide{width:100%;padding:9px 12px;margin:0 0 18px;border:1px dashed var(--e-line);border-radius:8px;background:transparent;color:var(--e-accent);font:600 12px/1.4 system-ui}
.g7c-carousel-slide-editor{padding:16px;border:1px solid var(--e-line);border-radius:12px;background:var(--e-field)}
.g7c-carousel-slide-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.g7c-carousel-slide-current{margin:0;font:700 14px/1.4 system-ui;color:var(--e-ink)}
.g7c-carousel-slide-navigation{display:flex;gap:5px}
.g7-builder-shell .g7c-carousel-slide-navigation>button{min-height:34px;padding:6px 9px;margin:0;border:1px solid var(--e-line);border-radius:7px;background:var(--e-panel);color:var(--e-ink);font:600 11px/1.4 system-ui}
.g7c-carousel-slide-picture{display:flex;align-items:center;gap:10px;margin:18px 0}
.g7c-carousel-slide-picture>img{width:56px;height:44px;object-fit:cover;border-radius:6px;flex:none}
.g7-builder-shell .g7c-carousel-slide-picture>button,.g7-builder-shell .g7c-carousel-all-images{min-height:36px;padding:8px 11px;margin:0;border:1px solid var(--e-line);border-radius:8px;background:var(--e-panel);color:var(--e-ink);font:600 11px/1.4 system-ui}
.g7c-carousel-slide-settings{margin-top:14px;border-top:1px solid var(--e-line);padding-top:12px}
.g7c-carousel-slide-settings>summary{cursor:pointer;color:var(--e-muted);font:600 11px/1.5 system-ui}
.g7c-carousel-slide-settings[open]>summary{margin-bottom:14px;color:var(--e-ink)}
.g7-builder-shell .g7c-carousel-all-images{width:100%;margin-top:14px}
@media(max-width:1100px){.g7c-carousel-slide-list img{width:48px;height:60px}.g7-builder-shell .g7c-carousel-slide-list>button{grid-template-columns:48px minmax(0,1fr);gap:3px 8px;padding:7px}.g7c-carousel-slide-selected{left:8px;bottom:8px;font-size:8px}.g7c-carousel-slide-editor{padding:12px}}
@media(max-width:420px){.g7c-carousel-slide-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.g7c-carousel-slide-list{max-height:208px;overflow-y:auto;overscroll-behavior:contain;padding:2px}

.g7c-carousel-navigation-settings{margin-top:22px;padding-top:20px;border-top:1px solid var(--e-line)}
.g7-builder-shell .g7c-carousel-navigation-reset{width:100%;min-height:36px;padding:8px 10px;margin-top:8px;border:1px solid var(--e-line);border-radius:8px;background:var(--e-field);color:var(--e-muted);font:600 11px/1.4 system-ui}

/* Design sidebar: consistent categories across editing levels and content types. */
.g7-builder-shell .g7c-organised-design .g7c-sidebar-category{margin:0 0 12px;padding:0;border:1px solid var(--e-line,#405a6b);border-radius:12px;background:var(--e-panel,#1c3040);min-width:0;overflow:clip}
.g7-builder-shell .g7c-organised-design .g7c-sidebar-category>summary{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:58px;padding:12px 32px 12px 13px;cursor:pointer;list-style:none;text-align:left;color:var(--e-ink,#edf3fa)}
.g7c-sidebar-category>summary::-webkit-details-marker{display:none}.g7-builder-shell .g7c-sidebar-category>summary:after{content:'+';position:absolute;right:13px;top:17px;color:var(--e-accent,#7bd4c7);font:500 17px/1 system-ui}.g7-builder-shell .g7c-sidebar-category[open]>summary:after{content:'\2212'}
.g7c-sidebar-category-title{font:650 12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}.g7c-sidebar-category-description{font:400 10px/1.45 system-ui,sans-serif;color:var(--e-muted,#afc4d3);overflow-wrap:anywhere}
.g7-builder-shell .g7c-sidebar-category[open]>summary{border-bottom:1px solid var(--e-line,#405a6b);margin-bottom:12px}
.g7-builder-shell .g7c-sidebar-category> :not(summary){margin-left:12px;margin-right:12px;max-width:calc(100% - 24px)}
.g7-builder-shell .g7c-sidebar-category> :last-child{margin-bottom:12px}
.g7-builder-shell .g7c-sidebar-group-body{padding:0;border:0;background:transparent;box-shadow:none;min-width:0}
.g7-builder-shell .g7c-sidebar-group-body>h4[hidden],.g7-builder-shell .g7c-sidebar-group-body>header h4[hidden]{display:none!important}
.g7-builder-shell .g7c-sidebar-category .g7c-width-controls,.g7-builder-shell .g7c-sidebar-category .g7c-whole-text,.g7-builder-shell .g7c-sidebar-category .g7c-design-manage,.g7-builder-shell .g7c-sidebar-category .g7c-design-additions{padding:0;border:0;background:transparent;box-shadow:none}
.g7-builder-shell .g7c-design-jump{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:10px 12px;border:1px solid var(--e-line,#405a6b);border-radius:10px;background:var(--e-field,#162b3a)}
.g7c-design-jump>label{font:600 11px/1.4 system-ui;color:var(--e-muted,#afc4d3)}.g7-builder-shell .g7c-design-jump>select{width:100%;min-height:36px;max-width:100%;font:500 12px/1.4 system-ui}
.g7-builder-shell .g7c-sidebar-primary{padding:14px;margin:0 0 14px;border:1px solid var(--e-line,#405a6b);border-radius:12px;background:var(--e-panel,#1c3040)}
.g7-builder-shell .g7c-sidebar-primary button{width:100%;min-height:44px;white-space:normal;text-align:left;border-radius:9px}
.g7-builder-shell .g7c-organised-design [hidden]{display:none!important}.g7-builder-shell .g7c-sidebar-category :is(input,select,textarea){max-width:100%;box-sizing:border-box}.g7c-sidebar-access-note{font:12px/1.5 system-ui}
.g7-builder-shell .g7c-sidebar-category>summary:focus-visible,.g7-builder-shell .g7c-design-jump select:focus-visible{outline:2px solid var(--e-accent,#7bd4c7);outline-offset:-3px}

.g7-builder-shell .g7c-organised-design{font-family:system-ui,sans-serif}
.g7-builder-shell .g7c-sidebar-category .g7c-background-image-actions>button{display:flex;align-items:center;justify-content:center;gap:8px;white-space:normal}
.g7-builder-shell .g7c-sidebar-category .g7c-background-image-actions>button svg{display:block;flex:none;width:16px;height:16px}
.g7-builder-shell .g7c-sidebar-category>[inert]{opacity:.75}
