/* Cabinet chrome is kept out of transformed/scrolling content containers. */
:root{--cabinet-safe-top:env(safe-area-inset-top,0px);--cabinet-safe-bottom:env(safe-area-inset-bottom,0px);--cabinet-nav-bottom:max(4px,var(--cabinet-safe-bottom));--cabinet-nav-height:calc(61px + var(--cabinet-nav-bottom))}
.layout .topbar{padding-top:calc(14px + var(--cabinet-safe-top));height:auto}
.session-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:24px;padding:18px 0;border-top:1px solid var(--line)}
.session-actions p{margin:0;color:var(--muted);font-size:14px}
#cabinet-notices{position:fixed;z-index:100;inset:calc(12px + var(--cabinet-safe-top)) 16px auto auto;width:min(440px,calc(100vw - 32px));max-height:45dvh;overflow:auto;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}
#cabinet-notices:empty{display:none}
#cabinet-notices .browser-updates,#cabinet-notices .cabinet-guide{position:static;inset:auto;width:100%;max-width:none;margin:0;padding:14px;border:1px solid #69716c;border-radius:16px;background:var(--black);color:var(--ink);box-shadow:0 6px 24px #0004}
#cabinet-notices .browser-updates[hidden]{display:none}
.browser-updates button{white-space:normal;min-height:44px}.browser-updates .updates-hide{margin-left:auto}
.cabinet-guide p{margin:8px 0 12px;font-size:14px}.cabinet-guide .toolbar{display:flex;flex-wrap:wrap;gap:8px}
.panel .info-help{margin:12px 0 18px}.info-help summary{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;cursor:pointer;color:var(--accent);font-size:14px;list-style:none}.info-help summary::-webkit-details-marker{display:none}.info-help summary::before{content:'i';display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:22px;height:22px;flex-shrink:0;font-weight:800;font-style:normal}.info-help[open] summary::before{content:'−'}.info-help p{font-size:14px;line-height:1.6;margin:8px 0 12px;color:var(--muted)}
.delivery-pause-panel{margin-block:24px}.delivery-pause-panel .pause-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.delivery-pause-panel h2{margin:0;font-size:20px}.delivery-pause-panel [data-status]{margin:10px 0 0;font-size:14px}.delivery-pause-panel .info-help{margin-bottom:0}
label:has(>input[type=checkbox]){line-height:1.5;overflow-wrap:anywhere}label:has(>input[type=checkbox]):not(.field){display:flex;align-items:flex-start;gap:10px;min-width:0}label>input[type=checkbox]{margin:2px 0 0!important;flex:0 0 22px}label:has(>input[type=checkbox])>span{min-width:0}
.form-grid>*{min-width:0}.form-grid input,.form-grid select,.form-grid textarea{max-width:100%}.panel fieldset{min-width:0}.panel button{max-width:100%;overflow-wrap:anywhere}.panel .toolbar,.subscription-actions{gap:12px}.stack{gap:18px}input[type=file]{width:100%;min-width:0;white-space:normal;overflow:hidden}
@media(max-width:700px){
 html{background:var(--black);scrollbar-gutter:auto;scroll-padding-top:calc(20px + var(--cabinet-safe-top));scroll-padding-bottom:calc(var(--cabinet-nav-height) + 12px)}
 body{min-height:100svh}.layout,.owner-layout{padding-bottom:var(--cabinet-nav-height);min-height:100dvh}
 .sidebar,.owner-layout .sidebar{position:fixed;inset:auto 0 0 0;width:100%;height:auto;min-height:0;max-height:none;margin:0;padding:4px max(4px,env(safe-area-inset-right)) var(--cabinet-nav-bottom) max(4px,env(safe-area-inset-left));z-index:80;overflow:visible;transform:none;contain:layout style}
 .sidebar .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0!important;margin:0;gap:2px;width:100%;height:auto;min-height:0}
 .sidebar .mobile-nav .nav-item{min-height:56px;padding:6px 2px;gap:4px;line-height:1.2;border-radius:12px}.sidebar .mobile-nav .nav-item span{font-size:10px;line-height:1.2}.sidebar .mobile-nav .nav-item svg{width:23px;height:23px}
 .layout .topbar{padding:calc(12px + var(--cabinet-safe-top)) 16px 12px;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-areas:'brand' 'switch' 'demo';gap:10px}.topbar .cabinet-switch{max-width:100%}.topbar .mobile-brand{font-size:16px}
 main{padding:24px max(14px,env(safe-area-inset-right)) 24px max(14px,env(safe-area-inset-left))}.panel,.feature-card{padding:18px}.panel h2{font-size:22px}.form-grid{gap:18px}.checks label{padding:10px;min-height:44px}
 #toast{bottom:calc(var(--cabinet-nav-height) + 8px);z-index:110}#cabinet-notices{right:12px;width:calc(100vw - 24px)}
 .session-actions{align-items:flex-start}.session-actions button{min-height:44px}.delivery-pause-panel .pause-row{gap:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
[data-consent-detail]>.panel{margin-top:20px}[data-consent-detail] small{overflow-wrap:anywhere}[data-consent-detail] details form{margin-top:16px}

/* One text column per consent: document links never squeeze the label into slivers. */
.entry-screen{width:calc(100% - 28px);max-width:720px;margin:24px auto;padding:24px}
#entry-form{gap:20px}
.entry-consent{min-width:0}
.entry-screen .entry-check{display:flex;align-items:flex-start;gap:10px;margin:0;line-height:1.5}
.entry-check>span{display:block;flex:1;min-width:0;overflow-wrap:normal}
.entry-screen .entry-links{display:flex;flex-wrap:wrap;gap:2px 18px;margin:2px 0 0 32px}
.entry-screen .entry-links a,.entry-screen .entry-footer a{font-size:13px;line-height:1.5;font-weight:400;overflow-wrap:normal;word-break:normal;display:inline-flex;align-items:center;min-height:32px}
.entry-screen .entry-note{margin:2px 0 0 32px}
.entry-footer{display:flex;flex-wrap:wrap;gap:4px 20px}
@media(max-width:700px){.entry-screen{margin:16px auto;padding:20px}.entry-screen h1{font-size:28px}.entry-screen .entry-links{gap:0 14px}}

/* Reserve an observable feedback target without CSP-blocked inline styles. */
.casting-feedback { min-height: 1px; }
