/* FEBRY.OPS V504 — ONLY after server-confirmed unauthenticated session. */
html.fo-guest-v504 :is(.cl-nav,.fo-v474-row,.febry-services-nav,.fo-public-header,.fa-top-inner,.site-header .nav,header.topbar,nav.nav){gap:7px!important;box-sizing:border-box!important;min-width:0!important}
html.fo-guest-v504 :is(.cl-nav,.fo-v474-row,.febry-services-nav,.fo-public-header,.fa-top-inner,.site-header .nav,header.topbar,nav.nav) :is(.febry-font-scale,.febry-lang-trigger,.fo-hide-v457-mount,#foThemeSwitch,#theme-toggle,.fo-theme-switch){display:none!important}
html.fo-guest-v504 .fo-v459-shell.fo-v462-inline{min-width:0!important}
html.fo-guest-v504 .fo-v459-category>summary{font-size:11px!important;padding:7px 7px!important;gap:4px!important;white-space:nowrap}
html.fo-guest-v504 .fo-v459-chevron{width:12px!important;height:12px!important}
html.fo-guest-v504 .fo-v459-groups{gap:1px!important}
html.fo-guest-v504 :is(.cl-brand,.fa-brand,.febry-brand-logo,.fo-public-brand){flex-shrink:1!important;min-width:0!important}
html.fo-guest-v504 .cl-brand img{max-width:145px!important;width:auto!important;height:auto!important;max-height:36px!important}
html.fo-guest-v504 .fa-account{flex:0 0 auto!important;margin-left:auto!important}
html.fo-guest-v504 .fa-guest{display:flex;align-items:center;gap:5px}
html.fo-guest-v504 .fa-guest a{font-size:11px!important;min-height:34px!important;padding:8px 11px!important;white-space:nowrap!important}
/* Settings live inside the existing Beranda dropdown, never in the desktop header. */
html.fo-guest-v504 .fo-v459-dropdown>.fo-v504-guest-panel{display:grid;gap:7px;min-width:210px;margin-top:5px;padding:11px 6px 4px;border-top:1px solid #36503b}
html.fo-guest-v504 .fo-v504-guest-panel>.fo-v491-settings{display:flex!important;flex-direction:column!important;gap:7px!important;padding:0!important;margin:0!important;background:none!important;border:0!important}
html.fo-guest-v504 .fo-v504-panel-heading{font-size:10px;font-weight:800;color:#b6ff40;letter-spacing:.045em}
html.fo-guest-v504 :is(.fo-v504-lang,.fo-v504-font-row){display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;width:100%;border:1px solid #37503a;border-radius:8px;padding:6px 9px;background:#111c14;color:#f5f9f3;font:700 11px/1.3 system-ui,sans-serif}
html.fo-guest-v504 .fo-v504-lang{cursor:pointer;text-align:left}
html.fo-guest-v504 .fo-v504-lang span:nth-child(2){flex:1}
html.fo-guest-v504 .fo-v504-lang b{color:#b6ff40;font-size:10px}
html.fo-guest-v504 .fo-v504-font-row{min-height:37px}
html.fo-guest-v504 .fo-v504-font-options{display:inline-flex;gap:3px}
html.fo-guest-v504 .fo-v504-font-options button{cursor:pointer;border:1px solid #4b624b;border-radius:6px;background:transparent;color:inherit;min-width:32px;min-height:28px;font-size:11px;font-weight:750;padding:4px 6px}
html.fo-guest-v504 .fo-v504-font-options button[aria-pressed="true"]{background:#b6ff40!important;color:#090d0b!important;border-color:#b6ff40!important}
html.fo-guest-v504 .fo-v504-guest-panel :is(.fo-v491-theme,.fo-v491-hide){min-height:34px!important;padding:7px 9px!important;border-radius:8px!important;font-size:11px!important}
html.fo-guest-v504 .fo-v504-guest-panel .fo-v491-settings-title{display:none!important}
html.fo-guest-v504 .fo-v504-guest-panel :is(button,select):focus-visible{outline:2px solid #b6ff40;outline-offset:2px}
html.fo-guest-v504 .fo-v459-category:first-child>.fo-v459-dropdown{max-height:min(75dvh,600px)!important;overflow-y:auto!important}
/* Independent mobile drawer uses the SAME Beranda settings content. */
@media(max-width:1050px){
 html.fo-guest-v504 :is(.cl-nav,.fo-v474-row,.febry-services-nav,.fo-public-header,.fa-top-inner,.site-header .nav,header.topbar,nav.nav){padding-inline:10px!important;min-height:54px!important}
 html.fo-guest-v504 .fo-v459-mobile-trigger{min-width:42px!important;width:42px!important;height:42px!important;min-height:42px!important;padding:9px!important}
 html.fo-guest-v504 .fo-v459-category>summary{font-size:12px!important;min-height:36px!important;padding:7px 10px!important}
 html.fo-guest-v504 body>.fo-v459-groups.fo-v488-portal .fo-v504-guest-panel{min-width:0!important}
 html.fo-guest-v504 body>.fo-v459-groups.fo-v488-portal>.fo-v491-settings{display:none!important}
}
@media(max-width:390px){
 html.fo-guest-v504 .fa-guest a{font-size:10px!important;padding:7px 8px!important;min-height:32px!important}
 html.fo-guest-v504 :is(.cl-nav,.fo-v474-row,.febry-services-nav,.fo-public-header,.fa-top-inner,.site-header .nav,header.topbar,nav.nav){gap:4px!important;padding-inline:7px!important}
}
:root.fo-guest-v504:is([data-theme="light"],[data-fo-theme="light"]) .fo-v504-panel-heading{color:#46770b!important}
:root.fo-guest-v504:is([data-theme="light"],[data-fo-theme="light"]) :is(.fo-v504-lang,.fo-v504-font-row){background:#fff!important;border-color:#bdcbbf!important;color:#18231b!important;-webkit-text-fill-color:#18231b!important}
:root.fo-guest-v504:is([data-theme="light"],[data-fo-theme="light"]) .fo-v504-lang b{color:#46770b!important;-webkit-text-fill-color:#46770b!important}
:root.fo-guest-v504:is([data-theme="light"],[data-fo-theme="light"]) .fo-v504-font-options button{color:#18231b!important;-webkit-text-fill-color:#18231b!important}

/* V504 mobile uses the canonical V501 drawer, not the hidden legacy navigation. */
@media(max-width:1050px){
 html.fo-guest-v504 .fo-v493-topbar{height:56px!important;min-height:56px!important;padding:7px 12px!important;gap:7px!important}
 html.fo-guest-v504 .fo-v493-topbar :is(.fa-login,.fa-register){height:40px!important;min-height:40px!important;font-size:11px!important;padding:7px 12px!important}
 html.fo-guest-v504 .fo-v493-topbar .fo-v493-trigger{min-width:40px!important;width:40px!important;height:40px!important;min-height:40px!important}
 html.fo-guest-v504 .fo-v493-groups .fo-v493-group>summary{min-height:39px!important;padding:8px 10px!important;font-size:13px!important}
 html.fo-guest-v504 .fo-v493-groups .fo-v493-group>div>.fo-v504-guest-panel{padding:10px 5px 4px!important;margin-top:6px!important;max-width:100%!important;min-width:0!important}
 html.fo-guest-v504 .fo-v504-guest-panel>.fo-v493-settings{display:flex!important;flex-direction:column!important;gap:7px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important}
 html.fo-guest-v504 .fo-v504-guest-panel>.fo-v493-settings>strong{display:none!important}
 html.fo-guest-v504 .fo-v504-guest-panel>.fo-v493-settings>button{min-height:36px!important}
 html.fo-guest-v504 .fo-v493-topbar.is-open .fo-v493-groups{top:64px!important;max-height:calc(100dvh - 76px)!important}
 html.fo-guest-v504 .fo-v493-backdrop:not([hidden]){top:64px!important}
}
@media(max-width:380px){
 html.fo-guest-v504 .fo-v493-topbar{padding-inline:8px!important}
 html.fo-guest-v504 .fo-v493-topbar :is(.fa-login,.fa-register){padding-inline:9px!important}
}
/* Keep the guest navigation clickable: overlay must remain behind its header stacking context. */
@media(max-width:1050px){html.fo-guest-v504 .fo-v493-backdrop{z-index:2147482000!important}}

html.fo-guest-v504 .fo-v504-lang select{min-width:92px;max-width:132px;border:1px solid #425847;border-radius:6px;padding:5px 7px;background:#0b130f;color:#f5f9f3;font:700 11px/1.3 system-ui,sans-serif;cursor:pointer}
:root.fo-guest-v504:is([data-theme="light"],[data-fo-theme="light"]) .fo-v504-lang select{background:#fff!important;color:#18231b!important;border-color:#bdcbbf!important}

/* Header-injected legacy controls may be docked directly on <body> on older service pages. */
html.fo-guest-v504 body>:is(.fo-theme-floating,.fo-hide-v457-mount,.febry-font-fallbackbar,.febry-v317-fallbackbar){display:none!important}
html.fo-guest-v504 .fo-home-rail :is(.fo-theme-switch,.fo-hide-v457,.febry-font-scale,.febry-lang-trigger){display:none!important}
