/* Applied only while an old settings module is inside the new V13 Settings page. */
@media screen{
html[data-settings-embed="1"],html[data-settings-embed="1"] body{background:#fff!important;margin:0!important;min-height:0!important;color:#172033!important;font-family:'Segoe UI',system-ui,sans-serif!important}
html[data-settings-embed="1"] body>#nav,html[data-settings-embed="1"] .settingsSidebar,html[data-settings-embed="1"] #rmptSoftwareFooter,html[data-settings-embed="1"] .rmptSoftwareFooter,html[data-settings-embed="1"] .settingsBreadcrumb,html[data-settings-embed="1"] #adminCache,html[data-settings-embed="1"] .settingsTopbar,html[data-settings-embed="1"] .adminHeader,html[data-settings-embed="1"] .settingsTop{display:none!important}
html[data-settings-embed="1"] .wrap,html[data-settings-embed="1"] .bulkWrap,html[data-settings-embed="1"] .devWrap{max-width:none!important;width:100%!important;margin:0!important;padding:0 1px 8px!important;box-sizing:border-box!important}
html[data-settings-embed="1"] .settingsShell{display:block!important;margin:0!important;max-width:none!important;width:100%!important;gap:0!important}
html[data-settings-embed="1"] .settingsMain{display:block!important;min-width:0!important;padding:0!important;width:100%!important;background:#fff!important}
html[data-settings-embed="1"] .adminContent,html[data-settings-embed="1"] .adminSection,html[data-settings-embed="1"] .panel,html[data-settings-embed="1"] .bulkPanel,html[data-settings-embed="1"] .bulkCard,html[data-settings-embed="1"] .devCard{border:1px solid #e6eaf0!important;border-radius:17px!important;padding:21px!important;background:#fff!important;box-shadow:none!important;margin:0 0 16px!important;min-width:0!important}
html[data-settings-embed="1"] .adminContent.hidden,html[data-settings-embed="1"] [hidden]{display:none!important}
html[data-settings-embed="1"] h1,html[data-settings-embed="1"] h2{font-size:25px!important;font-weight:700!important;letter-spacing:-.03em!important;line-height:1.3!important;margin:0 0 13px!important;color:#172033!important}
html[data-settings-embed="1"] h3{font-size:15px!important;font-weight:650!important;margin:9px 0 12px!important;color:#253249!important}
html[data-settings-embed="1"] .sectionIntro,html[data-settings-embed="1"] .bulkHero p,html[data-settings-embed="1"] .devHead p{font-size:12px!important;line-height:1.6!important;color:#7b8698!important;margin:0 0 18px!important}
html[data-settings-embed="1"] .quickSection,html[data-settings-embed="1"] .overviewStat,html[data-settings-embed="1"] .quickCard{box-shadow:none!important;border-color:#e6eaf0!important;border-radius:13px!important}
html[data-settings-embed="1"] .overviewStats{gap:12px!important;margin:0 0 16px!important}
html[data-settings-embed="1"] .overviewStat{padding:15px!important;min-height:94px!important}
html[data-settings-embed="1"] .overviewStat .value{font-size:24px!important}
html[data-settings-embed="1"] .overviewStat strong{font-size:12px!important}
html[data-settings-embed="1"] .overviewIcon svg,html[data-settings-embed="1"] .miniIcon svg{width:20px!important;height:20px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html[data-settings-embed="1"] .overviewIcon,html[data-settings-embed="1"] .miniIcon{width:39px!important;height:39px!important;border-radius:11px!important}
html[data-settings-embed="1"] .quickCard b{font-size:12px!important}
html[data-settings-embed="1"] .quickCard{min-height:70px!important;padding:13px!important}
html[data-settings-embed="1"] .quickCard small{font-size:10px!important}
html[data-settings-embed="1"] button,html[data-settings-embed="1"] .btn{font-family:inherit!important;font-size:11px!important;border-radius:9px!important;line-height:1.5!important;box-shadow:none!important;min-height:34px!important}
html[data-settings-embed="1"] .btn.primary{background:#172033!important;border:1px solid #172033!important;color:#fff!important}
html[data-settings-embed="1"] .btn.soft,html[data-settings-embed="1"] .miniBtn{background:#fff!important;color:#536175!important;border:1px solid #dfe5ed!important}
html[data-settings-embed="1"] label{font-size:11px!important;font-weight:600!important;color:#46546b!important;line-height:1.5!important}
html[data-settings-embed="1"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),html[data-settings-embed="1"] select,html[data-settings-embed="1"] textarea{font-family:inherit!important;font-size:12px!important;border:1px solid #dfe5ed!important;border-radius:9px!important;max-width:100%!important;box-sizing:border-box!important;min-width:0!important;color:#223149!important}
html[data-settings-embed="1"] input[type=color]{min-height:35px;border:1px solid #dfe5ed!important;border-radius:8px}
html[data-settings-embed="1"] table{width:100%!important;font-size:11px!important;border-collapse:collapse!important}
html[data-settings-embed="1"] table td,html[data-settings-embed="1"] table th{padding:11px 8px!important;border-bottom:1px solid #edf0f4!important}
html[data-settings-embed="1"] .settings-table-scroll{overflow-x:auto;width:100%;margin-top:15px}
html[data-settings-embed="1"] .fontAdminLayout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
html[data-settings-embed="1"] .fontPreviewCard{min-width:0!important;overflow:hidden!important;background:#fafbfc!important;border:1px solid #e6eaf0!important;border-radius:14px!important;padding:14px!important}
html[data-settings-embed="1"] #adminFontPreview{min-height:0!important;height:auto!important;overflow:hidden!important}
html[data-settings-embed="1"] .emptyState{font-size:12px!important;color:#778295!important;padding:20px!important;border-radius:12px!important;background:#fafbfc!important}
html[data-settings-embed="1"] .settings-module-notice{border:1px solid #e8d9b6;background:#fffaf0;border-radius:10px;padding:10px 12px;font-size:11px;color:#816222;line-height:1.6;margin:0 0 13px}
html[data-settings-embed="1"] .builtin-badge{font-size:9px;color:#7977a2;white-space:nowrap}
html[data-settings-embed="1"] .settings-dialog{border:1px solid #dfe5ee;border-radius:15px;max-width:500px;width:calc(100% - 26px);padding:21px;color:#172033;background:#fff}
html[data-settings-embed="1"] .settings-dialog::backdrop{background:#18223c55}
html[data-settings-embed="1"] .settings-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-settings-embed="1"] .settings-form-field{display:grid;gap:4px;font-size:11px}
html[data-settings-embed="1"] .settings-form-field input,html[data-settings-embed="1"] .settings-form-field select{width:100%;padding:8px}
html[data-settings-embed="1"] .settings-dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}
html[data-settings-embed="1"] .settings-inline-error{color:#9f3848;font-size:11px;line-height:1.5;margin:10px 0}
html[data-settings-embed="1"] .bulkHero,html[data-settings-embed="1"] .devHead{padding:3px 2px 10px!important;background:#fff!important;box-shadow:none!important;min-height:0!important}
html[data-settings-embed="1"][data-settings-page="builder"] #users,html[data-settings-embed="1"][data-settings-page="builder"] #devices,html[data-settings-embed="1"][data-settings-page="builder"] #defaults,html[data-settings-embed="1"][data-settings-page="builder"] #sizes,html[data-settings-embed="1"][data-settings-page="builder"] #photos,html[data-settings-embed="1"][data-settings-page="builder"] .adminMenu{display:none!important}
}
@media screen and (max-width:900px){html[data-settings-embed="1"] .overviewStats,html[data-settings-embed="1"] .quickGrid{grid-template-columns:1fr!important}html[data-settings-embed="1"] .bulkGrid,html[data-settings-embed="1"] .devGrid{grid-template-columns:1fr!important}html[data-settings-embed="1"] .row{flex-wrap:wrap!important}html[data-settings-embed="1"] .grid4,html[data-settings-embed="1"] .grid3{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media screen and (max-width:520px){html[data-settings-embed="1"] .adminContent,html[data-settings-embed="1"] .adminSection,html[data-settings-embed="1"] .bulkCard,html[data-settings-embed="1"] .devCard{padding:16px 12px!important}html[data-settings-embed="1"] .grid4,html[data-settings-embed="1"] .grid3,html[data-settings-embed="1"] .settings-form-grid{grid-template-columns:1fr!important}html[data-settings-embed="1"] h1,html[data-settings-embed="1"] h2{font-size:22px!important}html[data-settings-embed="1"] table{min-width:510px!important}}

@media screen{html[data-settings-embed="1"] #adminStatus:empty{display:none!important}
html[data-settings-embed="1"][data-settings-page="builder"] .builderControls,html[data-settings-embed="1"][data-settings-page="builder"] .builderGroup{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important}
html[data-settings-embed="1"][data-settings-page="builder"] .builderGrid{min-width:0!important;max-width:100%!important}
html[data-settings-embed="1"][data-settings-page="builder"] .grid2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-settings-embed="1"][data-settings-page="builder"] .field{min-width:0!important;max-width:100%!important}
html[data-settings-embed="1"][data-settings-page="builder"] input[type=range]{max-width:100%!important;width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}}
@media screen and (max-width:700px){html[data-settings-embed="1"][data-settings-page="builder"] .builderGrid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}
html[data-settings-embed="1"][data-settings-page="builder"] .builderCheckGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:100%!important}
html[data-settings-embed="1"][data-settings-page="builder"] .builderPreview{max-width:100%!important;overflow:auto!important;min-width:0!important}}
