/* Shared customization controls; only ui.home is registered for this release. */
.home-settings-page{max-width:1800px;margin:auto;min-width:0}.home-settings-page .page-header{gap:14px;margin-bottom:14px}.home-settings-page .page-header h1{font-size:24px}.home-settings-page .page-header p{font-size:12px;margin-top:6px}.home-save-controls{display:flex;gap:7px;flex-wrap:wrap}.home-settings-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 0}.home-settings-toolbar>label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--secondary)}.home-settings-toolbar select{max-width:280px}.home-setting-tabs{display:flex;gap:4px}.home-setting-tabs button.active{background:var(--primary);color:white;border-color:var(--primary)}.home-dirty-label{font-size:11px;color:var(--muted)}.home-settings-notice:empty{display:none}.home-settings-notice{border:1px solid var(--warning);border-radius:8px;padding:10px;color:var(--warning);font-size:12px;margin-bottom:8px}.home-help{font-size:12px;color:var(--muted);line-height:1.5;margin:8px 0 12px}.home-editor-layout{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(300px,1.1fr);gap:18px;margin:16px 0 80px;align-items:start}.home-editor-controls{min-width:0;display:flex;flex-direction:column;gap:12px}.home-settings-preview-panel{position:sticky;top:0;min-width:0;max-height:calc(100dvh - 140px);overflow:auto;background:var(--sidebar);padding:12px;border:1px solid var(--border);border-radius:8px}.home-settings-preview-panel>.panel-heading{margin:0 0 6px;display:flex;gap:7px;flex-wrap:wrap}.home-settings-preview-panel>.panel-heading select{font-size:11px;max-width:175px}.home-settings-preview-panel>small{display:block;font-size:11px}.home-presets{display:flex;gap:6px;flex-wrap:wrap}.home-presets select{min-width:115px;flex:1}.home-presets button{font-size:11px;padding:4px 7px}.home-composition{padding:12px}.home-block-search{display:flex;gap:7px;align-items:center;margin:10px 0}.home-block-search svg{width:17px;height:17px;flex-shrink:0;color:var(--muted)}.home-block-search input{width:100%;min-width:0}.home-block-list{display:flex;flex-direction:column;gap:4px}.home-block-setting{display:flex;align-items:center;gap:6px;border:1px solid transparent;border-radius:7px;min-height:52px;padding:3px 5px;position:relative}.home-block-setting.active{background:var(--raised);border-color:var(--border)}.home-block-setting.is-hidden{background:var(--canvas)}.home-block-setting.is-hidden .home-block-label{color:var(--muted)}.home-block-label{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;border:0;background:transparent;text-align:left;padding:4px 0;gap:2px}.home-block-label strong{font-size:12px;overflow-wrap:anywhere}.home-block-label small{font-size:10px}.home-drag{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;padding:4px;flex:0 0 26px;width:26px;background:transparent;border:0;font-size:20px;min-height:40px}.home-drag:active{cursor:grabbing}.home-visibility{display:flex;min-width:32px;min-height:40px;align-items:center;justify-content:center}.home-visibility input{width:16px;height:16px;accent-color:var(--primary)}.home-move-buttons{display:flex;gap:2px;flex-shrink:0}.home-move-buttons button{font-size:13px;min-width:26px;width:26px;padding:1px}.home-drop-target{outline:2px dashed var(--primary);outline-offset:-2px}.home-appearance{padding:12px}.home-appearance summary{cursor:pointer;font-weight:600}.home-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.home-setting-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px}.home-setting-field>span{color:var(--secondary)}.home-setting-field input,.home-setting-field select,.home-setting-field textarea{width:100%;min-width:0}.home-setting-field small{font-size:11px}.home-setting-field:has(textarea),.home-option-list,.home-image-settings{grid-column:1/-1}.home-toggle{display:flex;align-items:center;gap:7px;font-size:12px;min-height:36px}.home-toggle input{width:16px;height:16px;flex-shrink:0;accent-color:var(--primary)}.home-option-list{padding:10px;border:1px solid var(--border);border-radius:6px;min-width:0;margin:0}.home-option-list legend{font-size:12px;color:var(--secondary);padding:0 5px}.home-option-list>div{display:flex;gap:4px;align-items:center;min-height:34px}.home-option-list>div>label{flex:1;min-width:0;display:flex;align-items:center;gap:7px;font-size:12px}.home-option-list label input{accent-color:var(--primary);flex-shrink:0}.home-option-list button{min-width:26px;width:26px;padding:3px;font-size:12px}.home-component-editor,.home-common{padding:12px}.home-component-editor>.panel-heading{gap:8px;flex-wrap:wrap;margin:0 0 10px}.home-component-editor .panel-heading h2{font-size:15px}.home-layout-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-bottom:1px solid var(--border-subtle);padding-bottom:12px}.home-image-settings{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--border-subtle);padding-top:12px;font-size:12px;min-width:0}.home-upload{display:flex;flex-direction:column;gap:8px;border:1px dashed var(--border);border-radius:6px;padding:12px}.home-upload input{width:100%;min-width:0;font-size:11px}.home-image-sample{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.home-image-sample img{width:140px;max-height:80px;object-fit:cover;border-radius:7px}.home-settings-footer{position:fixed;bottom:12px;left:calc(var(--rail) + 18px);right:20px;max-width:1760px;margin:auto;z-index:15;border:1px solid var(--border);border-radius:9px;background:var(--sidebar);box-shadow:var(--shadow);padding:9px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.application-shell:not(.collapsed)~* .home-settings-footer{left:calc(var(--rail) + var(--context) + 18px)}.application-shell:not(.collapsed) .home-settings-footer{left:calc(var(--rail) + var(--context) + 18px)}.home-settings-footer>div{display:flex;gap:6px}.home-settings-footer button{font-size:12px}.home-common .home-fields-grid>p{grid-column:1/-1}.home-common h2{font-size:16px}#home-preview-stage{position:relative;width:100%;overflow:hidden;margin-top:12px;min-height:140px;background:var(--canvas);border-radius:6px}#home-preview-canvas{transform-origin:top left;padding:10px;position:absolute;left:0;top:0}.home-settings-preview-panel .home-page-header [data-action=home-settings]{display:none}.home-settings-preview-panel .custom-home{pointer-events:none}
@media(max-width:1050px){.home-editor-layout{grid-template-columns:minmax(330px,1fr) minmax(250px,.85fr);gap:12px}.home-fields-grid{grid-template-columns:1fr}.home-layout-fields{grid-template-columns:1fr 1fr}.home-settings-page .page-header{flex-direction:column;align-items:flex-start}.home-settings-preview-panel{padding:8px}}
@media(max-width:760px){.home-editor-layout{display:flex;flex-direction:column}.home-editor-controls{width:100%}.home-settings-preview-panel{position:static;width:100%;max-height:650px}.home-settings-page .page-header h1{font-size:23px}.home-settings-page .page-header p{max-width:100%;line-height:1.4}.home-settings-toolbar{gap:8px}.home-settings-toolbar>label{width:100%;justify-content:space-between}.home-settings-toolbar>label select{max-width:235px;min-width:0}.home-move-buttons button{min-width:34px;width:34px;height:38px}.home-block-setting{gap:5px;padding:4px}.home-block-label strong{font-size:13px}.home-block-label small{font-size:11px}.home-setting-tabs button{min-height:40px}.home-presets button{font-size:12px;min-height:38px}.home-toggle{min-height:44px}.home-option-list>div{min-height:40px}.home-option-list button{min-width:34px;width:34px;height:36px}.home-setting-field input,.home-setting-field select,.home-setting-field textarea,.home-block-search input{font-size:16px;min-height:40px}.home-setting-field{font-size:13px}.home-settings-page .home-save-controls{width:100%}.home-save-controls button{flex:1;font-size:12px}.home-settings-footer{left:10px;right:10px;bottom:calc(64px + env(safe-area-inset-bottom));padding:8px}.application-shell:not(.collapsed) .home-settings-footer{left:10px}.home-settings-footer>.home-dirty-label{display:none}.home-settings-footer>div{width:100%;justify-content:space-between}.home-settings-footer button{min-height:38px;font-size:12px;padding:5px 9px}.home-presets{gap:5px}.home-presets select{font-size:13px}.home-block-search{margin:12px 0}.home-common .home-fields-grid{grid-template-columns:1fr}.home-settings-page{padding-bottom:70px}.home-common{padding:12px}.home-block-label{min-height:44px}.home-drag{min-height:44px}.home-image-sample img{width:120px}.home-upload input{font-size:12px}.home-layout-fields{grid-template-columns:1fr}.home-settings-notice{font-size:12px}}
@media(min-width:1200px){.home-editor-layout{grid-template-columns:220px minmax(290px,.9fr) minmax(290px,1.1fr);gap:12px}.home-editor-controls{display:contents}.home-composition{grid-column:1;grid-row:1;position:sticky;top:0;max-height:calc(100dvh - 185px);overflow:auto;padding:8px}.home-appearance{grid-column:1;grid-row:2}.home-component-editor{grid-column:2;grid-row:1/3}.home-settings-preview-panel{grid-column:3;grid-row:1/3}.home-common{grid-column:1/3}.home-block-setting{padding:2px;gap:2px}.home-block-label strong{font-size:11px}.home-block-label small{font-size:10px}.home-move-buttons{flex-direction:column}.home-move-buttons button{min-height:20px;height:20px;width:24px;min-width:24px;font-size:11px}.home-drag{flex-basis:20px;width:20px;font-size:17px}.home-visibility{min-width:20px}.home-fields-grid{grid-template-columns:1fr}.home-presets{gap:4px}.home-presets button{font-size:10px}.home-appearance .home-fields-grid{gap:7px}}
@media(max-width:430px){.home-settings-footer [data-action=home-back]{display:none}}
@media(min-width:1200px){.home-composition{max-height:calc(100dvh - 330px)}.home-block-label strong{font-size:12px}}
