/* HOME controls use the existing user editor palette and geometry. */
[hidden]{display:none!important}
:root{--home-line:rgba(255,255,255,.09);--home-line-strong:rgba(255,255,255,.16);--home-text:#f5f7fb;--home-muted:#8994a8;--home-surface:#0d1119;--home-control:#171c27}
:where(button){font:inherit;font-size:14px;font-weight:700;min-height:44px;padding:10px 15px;border:1px solid var(--home-line-strong);border-radius:11px;background:var(--home-control);color:var(--home-text);cursor:pointer;transition:background .15s,border-color .15s}
:where(button):hover{background:#202736;border-color:rgba(119,137,255,.35)}
:where(button):disabled{opacity:.55;cursor:wait}
:where(button,input,select,textarea,a):focus-visible{outline:2px solid #aab7ff;outline-offset:3px}
.home-button,.home-editor.home-editor button{font:inherit;font-size:14px;font-weight:750;min-height:44px;padding:10px 15px;border:1px solid var(--home-line-strong);border-radius:11px;background:var(--home-control);color:var(--home-text);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.home-button:hover,.home-editor.home-editor button:hover{background:#202736;border-color:rgba(119,137,255,.35)}
.home-button.primary,.home-editor.home-editor button.primary,.home-editor.home-editor button[type=submit]{border-color:transparent;background:linear-gradient(135deg,#7487ff,#a16fff);color:white}
.home-button.danger,.home-button.danger-soft,.home-editor.home-editor button.danger-soft{border-color:rgba(255,129,139,.24);background:rgba(255,129,139,.065);color:#ffc1c6}
.home-button:disabled,.home-editor.home-editor button:disabled{opacity:.55;cursor:wait}
.home-editor{width:min(1080px,calc(100vw - 56px));max-height:calc(100dvh - 56px);padding:0;border:1px solid rgba(255,255,255,.13);border-radius:23px;background:var(--home-surface);color:var(--home-text);font:inherit;box-shadow:0 34px 110px rgba(0,0,0,.55);overflow:auto}
.home-editor::backdrop{background:rgba(3,5,10,.78);backdrop-filter:blur(10px)}
.home-editor-head,.home-editor>form>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 21px;border-bottom:1px solid var(--home-line);background:#111620;position:sticky;top:0;z-index:5}
.home-editor-head h2,.home-editor>form>header h2{margin:5px 0 0;font-size:24px;letter-spacing:-.03em}
.home-editor-kicker{color:#aeb7ff;font-size:11px;font-weight:850;letter-spacing:.17em;text-transform:uppercase}
.home-editor-head .home-editor-close,.home-editor>form>header button{width:44px;height:44px;flex:0 0 44px;padding:0;font-size:24px;border:1px solid var(--home-line);border-radius:11px;background:#171c27;color:#d9dfeb}
.home-editor-body{padding:20px;min-width:0}
.home-editor-body>form{margin:0}
.home-editor.home-editor input,.home-editor.home-editor select,.home-editor.home-editor textarea{font:inherit;font-size:14px;color:#eef1f8;background:#090d14;border:1px solid var(--home-line);border-radius:11px;padding:12px 13px;min-height:46px;max-width:100%}
.home-editor.home-editor label{font:inherit;font-size:14px;font-weight:650;color:#aeb8c8}
.home-editor.home-editor label small,.home-editor.home-editor label em{font-size:12px;color:var(--home-muted);font-style:normal;font-weight:400}
.home-editor :is(input[type=checkbox],input[type=radio]){accent-color:#8c9bff;min-height:20px;width:20px;margin:0;flex:0 0 20px}
.home-editor .toggle-line,.home-editor .check{display:flex;align-items:center;gap:11px;min-height:54px;padding:10px 13px;border:1px solid var(--home-line);border-radius:12px;background:#090d14}
.home-editor-actions,.home-editor .modal-actions,.home-editor>form>footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--home-line);background:#0d1119;position:sticky;bottom:0;z-index:4;grid-column:1/-1}
.home-editor-error{padding:12px 14px;border:1px solid rgba(255,125,137,.18);border-radius:12px;background:rgba(255,125,137,.06);color:#ffc1c6;font-size:14px;line-height:1.5;grid-column:1/-1}
.home-editor-error:empty{display:none}
.home-editor-summary{padding:20px;margin:0 0 16px;border:1px solid var(--home-line);border-radius:20px;background:rgba(16,20,29,.88);display:flex;align-items:center;justify-content:space-between;gap:20px}
.home-editor-summary h2{margin:5px 0;font-size:23px;letter-spacing:-.03em}.home-editor-summary p{margin:7px 0 0;color:var(--home-muted);font-size:14px;line-height:1.5}
.home-editor .card-head{padding:0 0 16px}.home-editor .card-head h2{font-size:20px}.home-editor .form-grid{padding:0}
.home-editor .admin-card{background:transparent;border:0;border-radius:0;overflow:visible}.home-editor .media-service-row{padding:16px 0;border-bottom:1px solid var(--home-line)}
.home-ui-open{overflow:hidden}
.home-toast{position:fixed;right:24px;bottom:24px;z-index:250;padding:14px 18px;max-width:min(500px,calc(100vw - 40px));border:1px solid rgba(101,230,168,.25);border-radius:14px;background:#101a19;color:#b5f0d3;box-shadow:0 16px 60px #0006;font:inherit}
.home-toast.error{border-color:rgba(255,125,137,.24);background:#23151c;color:#ffc1c6}
.modal[data-pa-modal]{position:fixed;inset:0;z-index:150;padding:28px;display:flex;align-items:center;justify-content:center;background:rgba(3,5,10,.78);backdrop-filter:blur(10px)}
.modal[data-pa-modal] .modal-dialog{width:min(1080px,100%);max-height:calc(100dvh - 56px);overflow:auto;border:1px solid rgba(255,255,255,.13);border-radius:23px;background:#0d1119;box-shadow:0 34px 110px #0009}
.modal[data-pa-modal] .modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 21px;border-bottom:1px solid var(--home-line);background:#111620;position:sticky;top:0;z-index:5}
.modal[data-pa-modal] .modal-header h3{margin:5px 0 0;font-size:24px}.modal[data-pa-modal] .modal-header button{width:44px;padding:0;font-size:24px}
.modal[data-pa-modal] .modal-body{margin:0;padding:20px}.modal[data-pa-modal] .form-grid{padding:0}
@media(max-width:720px){.home-editor{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:19px}.home-editor-head,.home-editor>form>header{padding:15px 16px;gap:12px}.home-editor-head h2,.home-editor>form>header h2{font-size:21px}.home-editor-body{padding:16px}.home-editor-summary{align-items:flex-start;flex-direction:column;padding:17px}.home-editor-summary .home-button{width:100%}.modal[data-pa-modal]{padding:10px}.modal[data-pa-modal] .modal-dialog{max-height:calc(100dvh - 20px)}.home-editor-actions{padding:12px 16px}.home-editor-actions button{flex:1}.home-toast{right:12px;bottom:12px}}
@media(prefers-reduced-motion:reduce){.home-button{transition:none}}

.home-editor :is(.app-config-actions,.shopping-admin-footer):empty{display:none}.home-editor .permission-savebar,.home-editor .guest-savebar{position:static;box-shadow:none;margin:16px 0}.home-editor .home-editor-body>form>label{display:grid;gap:8px;margin-bottom:16px}

.modal[data-pa-modal] .modal-dialog{max-width:1080px}.modal[data-pa-modal] .presence-editor .modal-body{max-height:none;overflow:visible}.smart-modal .smart-modal-card.home-editor{width:min(1080px,calc(100vw - 56px));max-width:1080px;padding:0;overflow:auto}.smart-modal .home-editor-actions{margin-top:0}@media(max-width:720px){.smart-modal .smart-modal-card.home-editor{width:calc(100vw - 20px)}}

.home-editor.home-editor button.primary-modal{background:linear-gradient(135deg,#7487ff,#a16fff);border-color:transparent;color:white}
