body.creator-center-page .modal-view-iframe .modal-view-top-tools { display: flex; align-items: stretch; gap: 6px; padding: 8px; border-radius: 8px; max-width: calc(100% - 48px); }
body.creator-center-page .modal-view-iframe .preview-icon-tool { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; flex: 0 0 64px; width: 64px; height: 64px; padding: 8px 4px; border-radius: 6px; color: #34445e; font: inherit; }
body.creator-center-page .modal-view-iframe .preview-icon-tool > i { font-size: 21px; line-height: 22px; }
body.creator-center-page .modal-view-iframe .preview-icon-tool > span:last-child { display: block; width: 100%; font-size: 11px; line-height: 16px; white-space: nowrap; text-align: center; }
body.creator-center-page .modal-view-iframe .preview-phone-glyph { display: block; width: 12px; height: 20px; border: 2px solid currentColor; border-radius: 3px; }
body.creator-center-page .modal-view-iframe .preview-panel-record .preview-record-dot { margin: 4px 0; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-card { box-sizing: border-box; position: absolute; z-index: 18; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px; width: 350px; max-width: calc(100% - 48px); padding: 16px; border: 1px solid #dce3ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px #10182720; color: #26354d; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-card.is-hidden { display: none; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-code { flex: 0 0 auto; background: #fff; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-quiet { padding: 16px; background: #fff; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-code img, body.creator-center-page .modal-view-iframe .preview-ar-qr-code canvas { width: 165px; height: 165px; max-width: none; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-copy { min-width: 0; display: grid; gap: 8px; padding-right: 4px; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-copy strong { font-size: 14px; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-copy small { color: #71809a; font-size: 12px; line-height: 1.7; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-close { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; background: transparent; color: #71809a; font-size: 20px; cursor: pointer; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-reopen { display: none; position: absolute; left: 24px; bottom: 24px; z-index: 18; padding: 10px 16px; border: 1px solid #dce3ee; border-radius: 6px; background: #fff; color: #315cff; cursor: pointer; }
body.creator-center-page .modal-view-iframe .preview-ar-qr-reopen.is-visible { display: block; }
@media(max-width:700px){
  body.creator-center-page .modal-view-iframe .modal-view-top-tools { top: 88px; left: 16px; right: 16px; justify-content: space-between; max-width: none; gap: 3px; padding: 5px; }
  body.creator-center-page .modal-view-iframe .preview-icon-tool { flex-basis: 0; flex-grow: 1; width: auto; min-width: 0; height: 54px; gap: 4px; }
  body.creator-center-page .modal-view-iframe .preview-icon-tool > span:last-child { font-size: 10px; }
  body.creator-center-page .modal-view-iframe .preview-ar-qr-card { width: 290px; left: 16px; bottom: 16px; padding: 10px; gap: 10px; }
  body.creator-center-page .modal-view-iframe .preview-ar-qr-quiet { padding: 12px; }
}

/* Align drawer cards with the toolbar; keep a clear gap and one scroll area. */
@media(min-width:701px){
 body.creator-center-page .modal-view-iframe .modal-view-top-tools{top:20px!important;left:auto!important;right:20px!important;width:420px!important;max-width:calc(100% - 40px)!important;box-sizing:border-box;gap:4px!important;padding:8px!important}
 body.creator-center-page .modal-view-iframe .modal-view-top-tools .preview-icon-tool{flex:1 1 0!important;min-width:0!important;height:56px!important}
 body.creator-center-page .modal-view-iframe .modal-view-side-card{top:108px!important;right:20px!important;width:420px!important;max-width:calc(100% - 40px)!important;max-height:calc(100% - 128px)!important;box-sizing:border-box;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:auto!important;scrollbar-width:thin;scrollbar-gutter:stable}
 body.creator-center-page .modal-view-iframe .modal-view-side-card[data-side-card-type="light"]{width:420px!important}
}
body.creator-center-page .modal-view-side-card .preview-annotation-panel,
body.creator-center-page .modal-view-side-card .preview-light-shell{box-sizing:border-box;width:100%!important;max-width:100%!important;margin:0!important;padding:20px!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important}
body.creator-center-page .modal-view-side-card .preview-light-panel{width:100%!important;min-width:0!important;padding:0!important;box-sizing:border-box}
body.creator-center-page .modal-view-side-card .preview-light-grid{grid-template-columns:minmax(0,1fr)!important}
body.creator-center-page .modal-view-side-card .preview-light-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.creator-center-page .modal-view-side-card .preview-card-head strong{font-size:24px!important;line-height:1.2!important}
body.creator-center-page .modal-view-side-card .preview-light-row{gap:12px}
body.creator-center-page .modal-view-side-card .preview-light-meter{min-width:0}
body.creator-center-page .modal-view-side-card input[type=range]{min-width:0;max-width:100%}
@media(max-width:700px){body.creator-center-page .modal-view-iframe .modal-view-side-card{top:164px!important;right:12px!important;width:calc(100% - 24px)!important;max-height:calc(100% - 180px)!important;padding:0!important}}
/* Compact scene controls with room for both lighting and background tuning. */
body.creator-center-page .modal-view-side-card .preview-light-presets{display:none!important}
body.creator-center-page .modal-view-top-tools .preview-icon-tool.active{background:#e8efff!important;color:#2459ef!important;box-shadow:inset 0 0 0 1px #98b4ff}
@media(min-width:1000px){
body.creator-center-page .modal-view-iframe .modal-view-side-card[data-side-card-type="light"]{width:620px!important}
body.creator-center-page .modal-view-side-card[data-side-card-type="light"] .preview-light-shell{padding:18px!important}
body.creator-center-page .modal-view-side-card .preview-light-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.creator-center-page .modal-view-side-card .preview-background-combined{grid-column:1/-1;padding:12px!important}
body.creator-center-page .modal-view-side-card .preview-light-control{padding:12px!important;border-radius:12px!important}
body.creator-center-page .modal-view-side-card .preview-light-bg-list{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}
body.creator-center-page .modal-view-side-card .preview-light-bg-list button{min-width:0!important;height:42px!important;padding:5px!important;font-size:11px!important}
body.creator-center-page .modal-view-side-card .preview-background-tuning{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px;row-gap:8px}
body.creator-center-page .modal-view-side-card .preview-background-tuning>.preview-light-row:nth-child(1){grid-column:1;grid-row:1}
body.creator-center-page .modal-view-side-card .preview-background-tuning>input:nth-child(2){grid-column:1;grid-row:2}
body.creator-center-page .modal-view-side-card .preview-background-tuning>.preview-light-row:nth-child(3){grid-column:2;grid-row:1}
body.creator-center-page .modal-view-side-card .preview-background-tuning>input:nth-child(4){grid-column:2;grid-row:2}
body.creator-center-page .modal-view-side-card .preview-background-tuning>.preview-light-row:nth-child(5){grid-column:1;grid-row:3}
body.creator-center-page .modal-view-side-card .preview-background-tuning>input:nth-child(6){grid-column:1;grid-row:4}
body.creator-center-page .modal-view-side-card .preview-background-tuning>.preview-light-row:nth-child(7){grid-column:2;grid-row:3}
body.creator-center-page .modal-view-side-card .preview-background-tuning>input:nth-child(8){grid-column:2;grid-row:4}
body.creator-center-page .modal-view-side-card .preview-light-row{margin-bottom:5px!important}
body.creator-center-page .modal-view-side-card .preview-light-row small{display:none!important}
body.creator-center-page .modal-view-side-card .preview-background-divider{margin:10px 0!important}
body.creator-center-page .modal-view-side-card .preview-light-actions{margin-top:8px!important}
}
