.product-host .nav nav[hidden],.product-host .nav-actions[hidden],.product-host .tabbar[hidden]{display:none!important}
#code-field[hidden]{display:none!important}
.auth-shell{width:100%;max-width:680px;margin-inline:auto;padding:clamp(24px,5vw,64px) 20px}
.auth-shell .panel{padding:clamp(24px,5vw,48px);min-width:0}
.auth-shell h1{font-size:clamp(30px,6vw,44px);overflow-wrap:anywhere}
.auth-shell input{min-width:0;width:100%;font-size:16px}
.auth-shell .field small{color:var(--muted);font-size:13px;line-height:1.45}
.auth-switch{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px;margin-top:20px}
.auth-footer{margin:24px auto 0;max-width:640px;padding:14px 18px 16px;text-align:center;background:rgba(255,255,255,.76);border:1px solid rgba(100,22,43,.12);border-radius:24px;box-shadow:0 18px 42px rgba(100,22,43,.08);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.auth-footer nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center}
.auth-footer-primary{gap:2px 20px}
.auth-footer-primary a{white-space:nowrap}
.auth-footer-more{max-width:440px;margin:10px auto 0;padding:6px;border:1px solid transparent;border-radius:22px;transition:background .2s,border-color .2s}
.auth-footer-more summary{display:flex;align-items:center;justify-content:center;gap:12px;width:fit-content;max-width:100%;min-height:46px;margin-inline:auto;padding:11px 18px;color:var(--wine,#64162b);background:linear-gradient(135deg,#fff,#fff0f4);border:1px solid #ebccd5;box-shadow:0 4px 14px #64162b08,inset 0 1px 0 #fff;font-size:13px;font-weight:700;line-height:1.4;cursor:pointer;border-radius:16px;list-style:none;transition:background .2s,border-color .2s,box-shadow .2s}
.auth-footer-more summary::-webkit-details-marker{display:none}
.auth-footer-more summary::before{content:'';flex:none;width:15px;height:18px;border:1.5px solid currentColor;border-radius:4px;opacity:.75;background:linear-gradient(currentColor,currentColor) center 5px/7px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center 9px/7px 1.5px no-repeat}
.auth-footer-more summary::after{content:'';flex:none;width:8px;height:8px;margin-left:2px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .25s ease}
.auth-footer-more[open]{background:#fff4f7;border-color:#edd5dd}
.auth-footer-more[open] summary{background:#fff;box-shadow:none}
.auth-footer-more[open] summary::after{transform:translateY(2px) rotate(225deg)}
.auth-footer-more summary:hover{border-color:#dba3b3;box-shadow:0 5px 18px #64162b12}
.auth-footer-more summary:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.auth-footer-more nav{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:10px;padding:10px 0 0;border-top:1px solid #edd5dd}
.auth-footer-more nav a{display:flex;justify-content:space-between;gap:14px;min-height:48px;padding:12px 14px;text-align:left;border:1px solid #f0dfe5;border-radius:13px;background:#ffffffd9;transition:background .18s,border-color .18s}
.auth-footer-more nav a::after{content:'↗';flex:none;color:#a55b70;font-size:16px}
.auth-footer-more nav a:hover{background:#fff;border-color:#dba3b3;text-decoration:none}
.auth-footer-more nav a:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.auth-footer-more[open] nav{animation:auth-legal-reveal .22s ease-out}
@keyframes auth-legal-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.auth-footer-more,.auth-footer-more summary,.auth-footer-more summary::after,.auth-footer-more nav a{transition:none}.auth-footer-more[open] nav{animation:none}}
.auth-footer a{display:inline-flex;align-items:center;min-height:38px;color:var(--wine,#64162b);font-size:13px;line-height:1.3;text-decoration:none;text-underline-offset:4px}
.auth-footer a:hover,.auth-footer a:focus-visible{text-decoration:underline}
.auth-footer button[aria-pressed="true"]{background:#f7e9ed}
@media(max-width:520px){.auth-shell{padding-inline:14px}.auth-footer{padding:12px 10px 14px;border-radius:20px}.auth-footer-primary{gap:0 13px}.auth-footer-primary a{font-size:12px}.auth-footer a{justify-content:center;text-align:center}}
.unified-navigation{position:fixed;bottom:0;left:0;right:0;z-index:50;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fff;border-top:1px solid #eadde1}
.unified-navigation a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:8px 4px;color:#64162b;text-decoration:none;border-radius:12px;font-size:clamp(11px,3vw,13px);font-weight:650;line-height:1.25;text-align:center}
.unified-navigation a[aria-current]{background:var(--red-soft);color:var(--red-ink);box-shadow:inset 0 -2px var(--red)}
@media(max-width:999px){.unified-navigation{gap:2px}.unified-navigation a{padding-inline:0;font-size:11px}}
.app-host #app{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
.management-navigation{max-width:1100px;margin:24px auto;display:flex;gap:12px;flex-wrap:wrap}
.management-navigation h2{flex-basis:100%;font-size:20px}
@media(min-width:1000px){
  .unified-navigation{top:110px;bottom:auto;right:auto;left:24px;width:170px;display:flex;flex-direction:column;border:0;background:transparent;padding:0}
  .unified-navigation a{justify-content:flex-start;font-size:16px;padding:14px 20px}
  .app-host:has(.unified-navigation) #app{margin-left:200px}
  .app-host .ops-layout{grid-template-columns:200px minmax(0,1fr)}
}
@media(max-width:600px){.app-host .ops-layout{display:block}.app-host .ops-layout>aside{display:flex;flex-direction:row;overflow-x:auto;overscroll-behavior-inline:contain;max-width:100%;margin:0 0 20px;gap:8px}.app-host .ops-layout>aside button{flex:0 0 auto;min-height:44px}.management-navigation{margin:16px}}
@media(max-width:380px){.unified-navigation a{padding-inline:0;font-size:11px}}

.auth-shell .field{width:100%;min-width:0}.auth-shell .field>input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:52px;appearance:none;-webkit-appearance:none}.auth-shell input[type=date]::-webkit-date-and-time-value{text-align:left}

.auth-footer-primary .consent-settings-link{font:inherit;font-size:12px;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;box-shadow:none;min-height:0}
/* festl-v367: Datenschutz-Einstellungen sits inside „Weitere Informationen“ (app and website), styled like the other rows. */
.auth-footer-more nav .consent-settings-link{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;min-height:48px;padding:12px 14px;text-align:left;font:inherit;font-size:13px;line-height:1.3;color:var(--wine,#64162b);border:1px solid #f0dfe5;border-radius:13px;background:#ffffffd9;box-shadow:none;cursor:pointer;text-decoration:none;white-space:normal;transition:background .18s,border-color .18s}
.auth-footer-more nav .consent-settings-link::after{content:'›';flex:none;color:#a55b70;font-size:18px}
.auth-footer-more nav .consent-settings-link:hover{background:#fff;border-color:#dba3b3;text-decoration:none}
.auth-footer-more nav .consent-settings-link:focus-visible{outline:3px solid var(--red);outline-offset:2px}
/* v512 login fits one iPhone screen (375x667 .. 430x932): compact card, legal links joined into the card bottom */
@media(max-width:540px){
 html body .auth-shell{padding:12px 12px 8px!important}
 html body .auth-shell>.panel{padding:18px 20px 12px!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;margin:0!important}
 html body .auth-shell>.panel>.eyebrow{display:none!important}
 html body .auth-shell h1{font-size:25px!important;line-height:1.15!important;margin:0 0 4px!important}
 html body .auth-shell>.panel>p,html body .auth-shell .auth-intro{font-size:15px!important;line-height:1.35!important;margin:0 0 12px!important}
 html body .auth-shell .field,html body .auth-shell label{margin:0 0 8px!important;gap:4px!important}
 html body .auth-shell input{min-height:44px!important;height:44px!important;padding-block:8px!important}
 html body .auth-shell :is(button,.button){min-height:44px!important}
 html body .auth-shell .federated-auth{gap:8px!important;margin-top:8px!important}
 html body .auth-shell .federated-auth>*{margin-block:0!important}
 html body .auth-shell :is(.auth-divider,.federated-divider,.divider){margin:8px 0!important}
 html body .auth-shell small{font-size:12px!important;line-height:1.35!important}
 html body .auth-shell>.auth-footer{margin:0!important;padding:8px 14px 10px!important;border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:.5px solid rgba(100,22,43,.12)!important;box-shadow:none!important;font-size:12.5px}
 html body .auth-shell>.auth-footer .auth-footer-more{margin:2px auto 0!important;padding:0!important}
 html body .auth-shell>.auth-footer .auth-footer-more summary{min-height:30px!important;padding:2px 10px!important;font-size:12.5px;border:0!important;background:transparent!important}
}
@media(max-width:540px){
 html body main:has(>.auth-shell){padding-bottom:max(8px,env(safe-area-inset-bottom))!important;min-height:0!important}
 html body .auth-shell>.auth-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 12px}
 html body .auth-shell>.auth-footer>nav{gap:2px 14px!important}
 html body .auth-shell>.auth-footer .auth-footer-more{margin:0!important}
 html body .auth-shell>.auth-footer .auth-footer-more summary::before{display:none}
}
/* v518 one login everywhere (iOS app, mobile web, desktop web): the same compact card with the legal links joined into its
   bottom, max 420pt wide, centred vertically between the header and the bottom safe area; top-aligned (never scrolling)
   when it doesn't fit. */
html body:has(>main>.auth-shell){display:flex!important;flex-direction:column!important;min-height:100dvh!important}
html body:has(>main>.auth-shell)>main{flex:1 0 auto!important;display:flex!important;flex-direction:column!important;justify-content:safe center!important;min-height:0!important;margin:0!important;padding:0 0 max(8px,env(safe-area-inset-bottom))!important}
html body .auth-shell{box-sizing:border-box!important;width:100%!important;max-width:444px!important;margin:0 auto!important;padding:12px 12px 8px!important}
html body .auth-shell>.panel{padding:18px 20px 12px!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;margin:0!important}
html body .auth-shell>.panel>.eyebrow{display:none!important}
html body .auth-shell h1{font-size:25px!important;line-height:1.15!important;margin:0 0 4px!important;letter-spacing:-.01em}
html body .auth-shell>.panel>p,html body .auth-shell .auth-intro{font-size:15px!important;line-height:1.35!important;margin:0 0 12px!important}
html body .auth-shell .field,html body .auth-shell label{margin:0 0 8px!important;gap:4px!important}
html body .auth-shell input{min-height:44px!important;height:44px!important;padding-block:8px!important}
html body .auth-shell :is(button,.button){min-height:44px!important}
html body .auth-shell .federated-auth{gap:8px!important;margin-top:8px!important}
html body .auth-shell .federated-auth>*{margin-block:0!important}
html body .auth-shell :is(.auth-divider,.federated-divider,.divider){margin:8px 0!important}
html body .auth-shell small{font-size:12px!important;line-height:1.35!important}
html body .auth-shell>.auth-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 12px;margin:0!important;padding:8px 14px 10px!important;border-top-left-radius:0!important;border-top-right-radius:0!important;border-top:.5px solid rgba(100,22,43,.12)!important;box-shadow:none!important;font-size:12.5px}
html body .auth-shell>.auth-footer>nav{gap:2px 14px!important}
html body .auth-shell>.auth-footer .auth-footer-primary a{font-size:12.5px!important}
html body .auth-shell>.auth-footer .auth-footer-more{margin:0!important;padding:0!important}
html body .auth-shell>.auth-footer .auth-footer-more summary{min-height:30px!important;padding:2px 10px!important;font-size:12.5px;border:0!important;background:transparent!important}
html body .auth-shell>.auth-footer .auth-footer-more summary::before{display:none}
html body .auth-shell>.auth-footer>nav{flex:1 0 100%;justify-content:center}
html body .auth-shell>.auth-footer .auth-footer-more{flex:1 0 100%;display:flex;flex-direction:column;align-items:center}
html body .auth-shell>.panel{border-top-left-radius:39px!important;border-top-right-radius:39px!important}
html body .auth-shell>.auth-footer{border-bottom-left-radius:39px!important;border-bottom-right-radius:39px!important}
html body .auth-shell :is(input,.button,button.ghost){border-radius:20px}
/* v529 login, identical in the iOS app, the web (incl. mobile Safari) and the demo: no title bar anywhere; the app logo sits
   at the top of the login panel, centred above the greeting; the panel (footer links inside) is centred between the safe
   areas and fits without scrolling. */
html body:has(main .auth-shell) header.nav{display:none!important}
html body main:has(>.auth-shell):not(#fc-x){box-sizing:border-box;min-height:var(--fc-stable-h,100dvh)!important;display:flex!important;flex-direction:column;justify-content:center;padding-top:max(12px,var(--app-safe-top,env(safe-area-inset-top,0px)))!important;padding-bottom:max(8px,var(--app-safe-bottom,env(safe-area-inset-bottom,0px)))!important;margin-top:0!important}
html body .auth-shell>.panel::before{content:"";display:block;width:76px;height:76px;width:clamp(56px,calc((var(--fc-stable-h,100dvh) - 560px)/4),76px);height:clamp(56px,calc((var(--fc-stable-h,100dvh) - 560px)/4),76px);margin:2px auto 16px;border-radius:22.6%;background:url(/assets/icon-512.png?v=c.b015c6be) center/cover no-repeat;box-shadow:0 10px 28px #64162b33}
/* v533: logo size follows the stable height, not a max-height query (the keyboard shrank the viewport and the logo) */
/* v533: the keyboard never moves the login panel (stable height, see native-app.js); the browser only scrolls if the
   focused field would be covered. */
html body main:has(>.auth-shell) .auth-shell input{scroll-margin-block:24px}
/* v533 mobile Safari: the status-bar and toolbar areas are filled from the root (html) background, which was #fff6f7 and
   lighter than the app/login background (--app-background, ~#fae7ec at the top, ~#f5e8ee at the bottom). The root now
   carries the same tones, so the bars blend seamlessly with the login and the app screens. */
html:has(>body.product-host):not(.virtual-phone-client):not(.native-app){background:linear-gradient(180deg,#fae7ec 0,#f6e8ee 100%) #f8e7ed}
html body:has(main>.auth-shell):not(#fc-x){min-height:var(--fc-stable-h,100dvh)!important}
/* v535: iOS 26 Safari tints its bars from the page's background COLOUR (not the gradient image); body.product-host had
   #fff8fa under its gradient. Same tone as the root now (the opaque gradient on top keeps the look unchanged). */
html:has(>body.product-host):not(.virtual-phone-client):not(.native-app)>body.product-host{background-color:#f9e7ec}
