/* Exact approved management-glass.html geometry, with real editor contracts. */
body[data-page=admin],body[data-page=menu-admin]{--glass-accent:#c0d1eb;--glass-fog:#466896;--glass-art:url('/glass-dome.webp')}
body[data-page=admin]:before,body[data-page=menu-admin]:before{background:radial-gradient(ellipse at 100% 30%,#46689670,transparent 70%),linear-gradient(#080b0deb,#080b0df5),url('/glass-dome.webp') center/cover!important}
body[data-page=admin] .app-v3,body[data-page=menu-admin] .app-v3{max-width:820px;padding-left:18px;padding-right:18px}
body[data-page=admin] .app-header,body[data-page=menu-admin] .app-header{padding:18px 4px 6px;min-height:67px}
body[data-page=admin] .brand,body[data-page=menu-admin] .brand{width:92px}
body[data-page=admin] .brand img,body[data-page=menu-admin] .brand img{width:92px;height:43px;object-fit:contain}
body[data-page=admin] .app-header .avatar,body[data-page=menu-admin] .app-header .avatar{width:38px;height:38px;min-width:38px;min-height:38px}
body[data-page=admin] .app-header:after,body[data-page=menu-admin] .app-header:after{width:26px;height:26px;right:55px;opacity:1}
body[data-page=admin] .page-heading,body[data-page=menu-admin] .page-heading{padding:8px 2px 18px;margin:0}
body[data-page=admin] .page-heading h1,body[data-page=menu-admin] .page-heading h1{font-size:30px;letter-spacing:-.025em;line-height:1.2}
.management-note{color:#b9c1ca;font-size:13px;line-height:1.5;margin:14px 3px;font-weight:400}
#management-hub-search{width:100%;min-height:46px;background:#090f15ba;border:1px solid #ffffff30;border-radius:14px;padding:12px;color:#eee;font-size:16px}
.management-workspaces{display:block;min-width:0}
.management-workspace{min-width:0;margin:22px 0 10px}
.management-workspace>h2{font-size:19px;font-weight:600;margin:0 4px 10px;letter-spacing:normal;line-height:1.2}
.management-zone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.management-workspaces .management-zone-grid>button{display:flex;align-items:flex-start;justify-content:flex-start;min-width:0;min-height:105px;padding:15px 16px;text-align:left;border:1px solid #ffffff22;border-radius:24px;background:#15202aae;box-shadow:none;color:#eee}
.management-zone-copy{display:block;min-width:0}
.management-zone-copy strong{display:block;font-size:16px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.management-zone-copy small{display:block;margin-top:4px;font-size:13px;line-height:1.45;color:#b9c1ca}
/* The same brand/header/main/footer shell stays visible through every editor. */
#dialog.management-editor[open]{display:flex;flex-direction:column;width:min(720px,calc(100vw - 40px));max-width:720px;height:min(880px,calc(var(--management-height,100dvh) - 56px));max-height:calc(var(--management-height,100dvh) - 56px);padding:0;border-radius:34px;border:0;overflow:hidden;background:radial-gradient(ellipse at 100% 30%,#46689670,transparent 70%),linear-gradient(#080b0deb,#080b0df5),url('/glass-dome.webp') center/cover;color:#eee;box-shadow:0 24px 65px #0003;isolation:isolate}
#dialog.management-editor::before{display:none}
.management-brand{display:flex;align-items:center;justify-content:space-between;flex:none;padding:18px 22px 6px;min-width:0}
.management-brand>img{width:92px;height:43px;object-fit:contain}
.management-identity{display:flex;align-items:center;gap:13px}
.management-identity>img:not(.avatar){width:26px;height:26px;object-fit:contain}
.management-identity .avatar,.management-row .avatar{width:38px;height:38px;min-width:38px;min-height:38px;flex:none;border-radius:50%;background:#40533a;color:#d6e5c4;border:0;display:inline-grid;place-items:center;font-size:14px}
#dialog.management-editor .dialog-head{display:block;flex:none;padding:8px 20px 18px;margin:0;border:0;background:none}
#dialog.management-editor .dialog-head h2{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:0;font-weight:600}
.management-editor .management-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.management-editor .management-topline>button:first-child{border:0;padding:4px 0;min-height:32px;background:none;color:#c0d1eb;font-size:16px;border-radius:0}
.management-editor .management-topline .close{min-height:32px;min-width:32px;padding:0;font-size:24px;border:0;background:none}
.management-editor .management-subtitle{display:none}
#dialog.management-editor #dialog-status:empty{display:none}
#dialog.management-editor #dialog-status:not(:empty){flex:none;margin:0 18px 12px;max-height:100px;overflow:auto}
#dialog.management-editor .management-body{padding:0 18px 22px;flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none;scrollbar-width:thin;scrollbar-color:#718078 transparent;scroll-padding:12px}
.management-body #management-form{display:block;margin:0}
.management-editor label{display:block;font-size:14px;color:#c4cdd3;margin:16px 0;min-width:0}
.management-editor label input,.management-editor label select,.management-editor label textarea{margin-top:7px}
.management-editor .management-body input,.management-editor .management-body textarea,.management-editor .management-body select{width:100%;min-height:46px;max-width:100%;min-width:0;padding:12px;background:#090f15ba;color:#eee;border:1px solid #ffffff30;border-radius:14px;font-size:16px}
.management-editor .management-body textarea{min-height:100px;resize:vertical;line-height:1.5}
.management-editor .management-body button{min-height:44px;font-size:16px;border-radius:16px;padding:12px;background:#ffffff09;border:1px solid #ffffff26;box-shadow:none;color:#eee}
.management-editor .management-body h3{font-size:19px;font-weight:600;margin:22px 0 10px}
.management-editor .management-body small,.management-editor .management-body .meta{color:#b9c1ca;font-size:13px;line-height:1.45}
.management-editor .management-body .meta{margin:14px 3px}
.management-editor .management-tabs{display:flex;gap:6px;overflow:auto;margin:15px 0;padding:0;border:0;border-radius:0;background:none;scrollbar-width:none}
.management-editor .management-tabs button{flex:1;white-space:nowrap;padding:10px;font-size:14px;min-width:max-content}
.management-editor .management-tabs button.active,.management-editor .management-chips button.active{background:#c0d1eb;color:#17222d;box-shadow:none}
.management-toolbar{display:flex;gap:8px;margin:14px 0;align-items:center;min-width:0}
.management-toolbar input{flex:1;min-width:0}
.management-toolbar button{flex:none;white-space:nowrap}
.management-editor .management-find{display:block;position:static;background:none;padding:0;margin:14px 0}
.management-editor .management-list{display:block;border:1px solid #ffffff20;border-radius:24px;overflow:hidden;background:#15202aae;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.management-editor .management-list:empty{display:none}
.management-editor .management-list .management-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:15px 16px;border:0;border-bottom:1px solid #ffffff16;border-radius:0;background:none;min-height:0;box-shadow:none}
.management-editor .management-row:last-child{border-bottom:0}
.management-row-copy{display:block;flex:1;min-width:0}
.management-editor .management-row strong{display:block;font-weight:600;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.management-editor .management-row small{display:block;overflow:visible;-webkit-line-clamp:unset;margin-top:4px;font-size:13px;line-height:1.45;color:#b9c1ca}
.management-editor .management-row>span:last-child:not(.management-row-copy){color:#a4b7ca}
.management-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.management-fields-stack{display:block}
.management-fields>label{margin-top:16px;margin-bottom:16px}
.management-editor .management-toggle{display:flex;align-items:center;gap:10px;min-height:0}
.management-editor .management-toggle input[type=checkbox]{width:20px;height:20px;min-width:20px;min-height:20px;flex:none;margin:0;accent-color:#bbcd8f}
.management-days{display:flex;gap:4px;flex-wrap:wrap}
.management-days label{margin:0;min-width:35px;flex:1}
.management-days span{border:1px solid #ffffff26;border-radius:16px;padding:8px;min-height:44px;font-size:13px}
.management-days input:checked+span{background:#bbcd8f;color:#1a291b;border-color:#bbcd8f}
.management-editor .management-week{display:flex;gap:6px;overflow:auto;margin:15px 0}
.management-editor .management-week button{flex:1;font-size:14px;padding:10px;min-width:44px;display:block}
.management-editor .management-week button small{display:none}
.management-editor .management-week button.active{background:#c0d1eb;color:#17222d}
.management-summary,.management-inline-item{padding:19px;border:1px solid #ffffff22;border-radius:24px;background:#16212aa8}
.management-summary{margin:22px 0 10px}
.management-summary.management-beam{background:linear-gradient(125deg,#213529aa 18%,#739c5566 48%,#1a2c26aa 72%);border-color:#bbcd8f55}
.management-inline-items{display:grid;gap:10px;margin:14px 0}
.management-inline-item>summary{font-size:16px;line-height:1.45;cursor:pointer;overflow-wrap:anywhere}
.management-inline-content{min-width:0}
.management-inline-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}
.management-editor .management-inline-actions button{font-size:13px;flex:1;padding:8px}
.management-editor .management-photos{background:none;border:1px solid #ffffff20;border-radius:16px;margin:16px 0;overflow:hidden}
.management-editor .management-photos summary{font-size:14px;padding:12px;min-height:44px;cursor:pointer}
.management-editor .management-photos>div{padding:0 12px 12px}
.management-editor .photo-editor{background:none;border:0;padding:0;margin:0}
.management-editor .photo-editor .avatar.large{width:64px;height:64px}
.management-editor .management-footer{flex:none;padding:12px 18px max(16px,env(safe-area-inset-bottom));background:#0e151dec;border-top:1px solid #ffffff20;display:block}
.management-editor .management-footer p{font-size:13px;color:#b9c1ca;line-height:1.45;margin:0 0 8px}
.management-editor .management-footer .gold{width:100%;min-height:44px;padding:12px;background:#c0d1eb;color:#17222d;font-size:16px;border:1px solid #ffffff26;border-radius:16px;box-shadow:none}
.management-editor[data-keyboard=true] .management-footer{display:none}
.management-chips{display:flex;gap:6px;overflow:auto;margin:14px 0}
.management-editor .management-chips button{white-space:nowrap;font-size:13px;flex:none}
.management-product-group{margin:0}
.management-grouphead{display:flex;align-items:center;justify-content:space-between;margin:22px 2px 8px;gap:8px}
.management-editor .management-grouphead h3{margin:0;font-size:19px;min-width:0;overflow-wrap:anywhere}
.management-product{display:grid;grid-template-columns:minmax(0,1fr) 94px;gap:10px;align-items:center;padding:14px 12px;border-bottom:1px solid #ffffff15}
.management-product:last-child{border-bottom:0}
#dialog.management-editor .management-product-name{display:block;text-align:left;border:0;background:none;padding:0;min-height:44px;min-width:0;box-shadow:none;border-radius:0}
.management-product-name strong{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.management-product-name small{display:block;margin-top:5px}
.management-editor .management-product select{padding:8px;font-size:14px}
.management-empty{padding:22px;color:#b9c1ca;font-size:14px;margin:0}
.management-filters{font-size:13px;color:#b9c1ca;margin:0 2px 14px}
.management-filters>summary{cursor:pointer;min-height:32px;display:flex;align-items:center}
.management-editor .management-filters input,.management-editor .management-filters select{font-size:14px}
/* Small product/filter controls must not trigger iOS focus zoom. */
@media(any-pointer:coarse){#dialog.management-editor .management-body input,#dialog.management-editor .management-body textarea,#dialog.management-editor .management-body select{font-size:16px}}
.management-editor .management-delete-template{margin-top:24px}
.management-editor .danger{color:#eeaaa5}
.management-editor .management-row-actions,.management-editor .management-step{gap:6px;flex-wrap:wrap}
/* Messages are separate cards; only the body preserves authored line breaks. */
#dialog.management-read-list .management-body{display:flex;flex-direction:column;overflow:hidden}
.management-read-list .management-find{flex:none}
.management-read-list .management-log-scroll{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none}
.management-read-list #management-log-list{border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible}
.management-editor .management-log-card{border:1px solid #ffffff25;border-radius:22px;margin:12px 0;background:#15202ab3;overflow:hidden}
.management-editor .management-log-card .management-row{padding:17px;border:0}
.management-editor .management-log-card .management-row small{margin-top:7px}
.management-editor .management-log-detail{padding:0 17px 18px;border-top:1px solid #ffffff15;white-space:normal}
.management-message-text{font-size:16px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap;margin:18px 0}
.management-log-detail label{margin-bottom:0}
.text-edit-bar{background:#38533488;padding:12px;border:1px solid #bbcd8f33;border-radius:16px;color:#d3e3c8;font-size:13px;line-height:1.45;box-shadow:none}
body[data-page=menu-admin] #content>.back{display:block;padding:4px 2px;min-height:32px;border:0;border-radius:0;background:none;color:#c0d1eb;font-size:16px;margin-bottom:10px}
body[data-page=menu-admin] #content>.card{padding:19px;border:1px solid #ffffff22;border-radius:24px;background:#16212aa8;margin:0 0 14px;gap:9px}
body[data-page=menu-admin] #content>.card h2{font-size:19px;margin:0}
body[data-page=menu-admin] #content>.note{padding:0 3px;border:0;background:none;color:#b9c1ca;font-size:13px;line-height:1.5}
body[data-page=menu-admin] .menu-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px}
@media(hover:hover) and (pointer:fine){.management-workspaces button:hover,.management-editor .management-body button:hover{background-color:#ffffff13}.management-editor .management-tabs button.active:hover,.management-editor .management-chips button.active:hover{background:#d1def0}}
@media(max-width:800px),(max-height:540px) and (orientation:landscape){#dialog.management-editor[open]{position:fixed;inset:auto 0 auto;top:var(--management-top,0px);margin:0;width:100%;max-width:100%;height:var(--management-height,100dvh);max-height:var(--management-height,100dvh);border-radius:0;box-shadow:none}.management-brand{padding-top:calc(18px + env(safe-area-inset-top));padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}#dialog.management-editor .dialog-head,#dialog.management-editor .management-body,#dialog.management-editor .management-footer{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}body[data-page=admin] .app-v3,body[data-page=menu-admin] .app-v3{max-width:none}}
@media(max-height:540px){.management-brand{padding-top:6px;padding-bottom:0}.management-brand>img{height:30px}#dialog.management-editor .dialog-head{padding-bottom:10px}html[data-pulse] #dialog.management-editor .dialog-head h2{font-size:24px}.management-editor .management-footer p{display:none}}
@media(prefers-reduced-motion:no-preference){.management-workspaces button,.management-editor button{transition:background-color 160ms ease-out,transform 120ms ease-out}.management-workspaces button:active,.management-editor button:active{transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){.management-workspaces button,.management-editor button{transition:none;transform:none}}
/* Schedule headers have a title and close button; editor frames stack the back row above their title. */
#dialog.management-editor.schedule-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#dialog.management-editor.schedule-dialog .dialog-head h2{flex:1;min-width:0}#dialog.management-editor.schedule-dialog .dialog-head .close{flex:none}
