/* Shared geometry and restrained navigation. Loaded after the theme. */
html:root:root:root body#fernus-ui .cabinet-nav{--ff-nav-inset:8px;padding:var(--ff-nav-inset)!important;gap:6px!important}
html:root:root:root body#fernus-ui .cabinet-nav>.cabinet-nav-link:not([data-cabinet-notices-toggle]){border-radius:max(12px,calc(var(--ff-glass-radius,32px) - var(--ff-nav-inset)))!important}
@media(min-width:761px){
 html:root:root:root body#fernus-ui :is(.site-header .nav-links,.cabinet-header .cabinet-public-nav){gap:clamp(10px,1.4vw,24px)!important}
 html:root:root:root body#fernus-ui :is(.site-header .nav-links,.cabinet-header .cabinet-public-nav)>a{font-size:14px!important;min-height:38px!important;padding:8px 10px!important;gap:8px!important;line-height:1.25!important}
 html:root:root:root body#fernus-ui :is(.site-header .nav-links,.cabinet-header .cabinet-public-nav)>a svg{width:20px!important;height:20px!important;min-width:20px!important}
}
html:root:root:root body#fernus-ui .profile-bio-trigger{border-radius:14px!important;padding:8px 10px!important;margin:4px -10px -8px!important;transition:background .18s ease!important}@media (hover:hover) and (pointer:fine){
html:root:root:root body#fernus-ui .profile-bio-trigger:is(:hover,:focus-visible){background:#ffffff0c!important}}
html:root:root:root body#fernus-ui #profileStatistics :is(.profile-character-stats,.profile-time-stat,.profile-stat-tile){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;border-radius:0!important}
html:root:root:root body#fernus-ui #profileStatistics .profile-character-stats{padding:0!important}
html:root:root:root body#fernus-ui #profileStatistics .p-modal-body{padding:24px 30px 32px!important}
html:root:root:root body#fernus-ui #profileStatistics .profile-stat-tile>span{white-space:nowrap!important;flex-wrap:nowrap;gap:8px!important;font-size:14px!important}
html:root:root:root body#fernus-ui #profileStatistics .profile-stat-tile{padding:16px 10px!important;overflow-wrap:normal!important;word-break:normal!important}
html:root:root:root body#fernus-ui #profileBiography .p-modal-card{padding:16px!important;max-width:min(780px,calc(100vw - 40px))!important}
html:root:root:root body#fernus-ui #profileBiography .p-modal-head{padding:20px 24px!important}
html:root:root:root body#fernus-ui #profileBiography .p-modal-body{padding:20px 24px 32px!important;line-height:1.7;overflow-wrap:anywhere}
html:root:root:root body#fernus-ui :is(.bank-finance-panel,.treasury-finance-panel){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important}
/* Text artwork already has transparency; keep the original image pixels. */
html:root:root:root body#fernus-ui :is(.hero-promo-card,.community-banner-image){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important}
html:root:root:root body#fernus-ui :is(.hero-promo-card,.community-banner-image)::after{display:none!important}
html:root:root:root body#fernus-ui .feature-card{transition:scale .42s cubic-bezier(.2,1.6,.35,1),transform .42s cubic-bezier(.2,1.6,.35,1)!important;outline:0!important}
@media(hover:hover){@media (hover:hover) and (pointer:fine){html:root:root:root body#fernus-ui .feature-card:hover{scale:1.025!important;border-color:transparent!important;outline:0!important;box-shadow:inset 0 1px 0 #ffffff20!important}}}
/* Tint the existing glass instead of replacing its optical filters. */
html:root:root:root body#fernus-ui :is(.social-app-card,.profile-social-links>a,.social-icon-btn,.social-chip){--ff-social-rgb:36 144 230}
html:root:root:root body#fernus-ui :is(.social-app-card.youtube,.profile-social-links>a[aria-label=YouTube],.social-icon-btn.youtube){--ff-social-rgb:230 28 35}
html:root:root:root body#fernus-ui :is(.social-app-card.tiktok,.profile-social-links>a[aria-label=TikTok],.social-icon-btn.tiktok){--ff-social-rgb:0 0 0}@media (hover:hover) and (pointer:fine){
html:root:root:root body#fernus-ui :is(.social-app-card,.profile-social-links>a,.social-icon-btn,.social-chip):is(:hover,:focus-visible){background:rgb(var(--ff-social-rgb) / .68)!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff45!important}}
html:root:root:root[data-ff-theme=glass] body#fernus-ui :is(.step-card,.join-notice){background:rgb(26 36 29 / .5)!important;backdrop-filter:blur(var(--ff-glass-blur,0px)) saturate(135%)!important;-webkit-backdrop-filter:blur(var(--ff-glass-blur,0px)) saturate(135%)!important;border:1px solid #ffffff15!important;box-shadow:inset 0 1px 0 #ffffff2b!important}
html:root:root:root body#fernus-ui .public-avatar-toggle .account-reveal{gap:8px!important;padding:0 12px 0 16px!important}
html:root:root:root body#fernus-ui .public-avatar-toggle .account-label{padding:0!important;margin:0!important}
html:root:root:root body#fernus-ui .public-avatar-toggle .account-arrow{margin:0!important;width:18px!important;height:18px!important;flex:0 0 18px!important}
html:root:root:root body#fernus-ui .profile-body-v6{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important;align-items:stretch!important;gap:18px!important}
html:root:root:root body#fernus-ui .profile-main-v6,html:root:root:root body#fernus-ui .profile-side-v6{display:grid!important;align-content:stretch!important;min-width:0!important}
html:root:root:root body#fernus-ui .profile-about,html:root:root:root body#fernus-ui .profile-side-v6>.profile-mini-card{height:auto!important;min-height:0!important;margin:0!important;box-sizing:border-box!important}
html:root:root:root body#fernus-ui .profile-body-v6>.cabinet-shortcuts{display:contents!important}
html:root:root:root body#fernus-ui .profile-business-shortcut{grid-column:1!important}
html:root:root:root body#fernus-ui .profile-stats-shortcut{grid-column:2!important}
html:root:root:root body#fernus-ui .profile-bank-shortcut{grid-column:1!important;grid-row:2!important}
html:root:root:root body#fernus-ui .profile-is-own .profile-business-shortcut{grid-row:3!important}
html:root:root:root body#fernus-ui .profile-is-own .profile-stats-shortcut{grid-row:2/4!important}
html:root:root:root body#fernus-ui .profile-friend-grid{grid-template-columns:repeat(auto-fill,48px)!important;gap:12px!important}
html:root:root:root body#fernus-ui .profile-friend-grid img{width:48px!important;height:48px!important}
/* Equal outer widths for rules navigation; no overlap with the top header. */
html:root:root:root body#fernus-ui .rules-chapter-curtain{width:calc(100% - 2 * var(--ff-glass-gap,20px))!important;max-width:1180px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;box-sizing:border-box!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;top:auto!important;transition:translate .55s cubic-bezier(.2,1.35,.35,1),opacity .3s ease!important}
html:root:root:root body#fernus-ui .rules-chapter-links{flex:1;justify-content:space-around;gap:6px!important;min-width:0}
html:root:root:root body#fernus-ui .rules-chapter-links a{flex:0 1 auto!important;min-width:0!important;white-space:normal!important;text-align:center;line-height:1.3!important;font-size:12px!important;padding:9px 10px!important}
html:root:root:root body#fernus-ui .rules-chapter-curtain.ff-scroll-away{translate:0 calc(100% + 50px)!important;opacity:0!important;pointer-events:none!important}
/* One document scroll area. A mobile map is explicitly activated for gestures. */
html:root:root:root body#fernus-ui.map-body{height:auto!important;min-height:100svh!important;overflow-x:clip!important;overflow-y:visible!important;touch-action:pan-y!important}
html:root:root:root body#fernus-ui.map-body .map-main{height:auto!important;overflow:visible!important;flex:none!important}
html:root:root:root body#fernus-ui.map-body .map-frame-fullscreen{height:72svh!important;min-height:420px!important;overflow:hidden!important;isolation:auto!important}
html:root:root:root body#fernus-ui.map-body .map-frame-shell::before{display:none!important}
.ff-map-activate{display:none}
@media(pointer:coarse){.ff-map-activate{display:flex;position:absolute;inset:0;z-index:3;align-items:center;justify-content:center;pointer-events:auto;touch-action:pan-y}.ff-map-activate>button,.ff-map-release{border:1px solid #ffffff30;border-radius:24px;background:#1b241ed9;color:#fff;padding:12px 18px;font:inherit;backdrop-filter:blur(10px)}.map-frame-shell:not(.ff-map-active)>iframe{pointer-events:none!important}.map-frame-shell.ff-map-active .ff-map-activate{display:none}.ff-map-release{position:absolute;z-index:4;top:16px;right:16px}.ff-map-release[hidden]{display:none}}
@media(max-width:760px){html:root:root:root body#fernus-ui .profile-body-v6{grid-template-columns:minmax(0,1fr)!important}html:root:root:root body#fernus-ui .profile-body-v6 :is(.profile-bank-shortcut,.profile-business-shortcut,.profile-stats-shortcut){grid-column:auto!important;grid-row:auto!important}html:root:root:root body#fernus-ui #profileStatistics .p-modal-body{padding:20px 14px 28px!important}html:root:root:root body#fernus-ui #profileStatistics .profile-stat-tile>span{font-size:13px!important}html:root:root:root body#fernus-ui .rules-chapter-links{justify-content:flex-start}.rules-chapter-links a{flex-shrink:0!important}html:root:root:root body#fernus-ui #profileBiography .p-modal-card{padding:8px!important}html:root:root:root body#fernus-ui #profileBiography :is(.p-modal-head,.p-modal-body){padding:20px!important}}
@media(prefers-reduced-motion:reduce){html:root:root:root body#fernus-ui :is(.feature-card,.rules-chapter-curtain){transition:none!important;scale:1!important}}
html[data-ff-route-loading] body{filter:blur(6px);pointer-events:none}
#ffRouteLoader{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;background:#070d0b40;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
#ffRouteLoader[hidden]{display:none}
#ffRouteLoader>div{display:flex;align-items:center;gap:14px;padding:20px 28px;border:1px solid #ffffff30;border-radius:30px;background:#1c281edb;color:#f2f4ed;font:500 16px system-ui;box-shadow:0 16px 60px #0005}
.ff-route-spinner{width:24px;height:24px;border:2px solid #ffffff28;border-top-color:#ffc247;border-radius:50%;animation:ff-route-spin .65s linear infinite}
@keyframes ff-route-spin{to{rotate:360deg}}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .cabinet-nav.ff-segmented{position:relative;isolation:isolate}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .cabinet-nav.ff-segmented>.ff-segment-indicator{z-index:0;border-radius:max(12px,calc(var(--ff-glass-radius,32px) - 8px))!important;pointer-events:none;transition:transform .62s cubic-bezier(.22,1.18,.35,1),width .45s ease,height .45s ease!important}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .cabinet-nav.ff-segmented>a.active{background:transparent!important;box-shadow:none!important;border:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:root:root:root body#fernus-ui .government-app :is(.gov-case-layout,.gov-two-columns,.gov-summary-grid,.gov-case-grid){min-width:0;gap:20px}
html:root:root:root body#fernus-ui .government-app :is(.gov-case-tabs,.gov-form-actions,.gov-filters){gap:8px;align-items:center;flex-wrap:wrap}
html:root:root:root body#fernus-ui :is(.gov-form,.gov-dialog,.gov-panel,.gov-case-card){min-width:0;overflow-wrap:anywhere}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .government-app :is(.gov-panel,.gov-case-summary,.gov-case-card){background:#1b241ee8!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root:root:root body#fernus-ui .government-app .gov-navigation{position:relative!important;top:auto!important;display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px!important;padding:8px!important;margin-bottom:24px!important;max-width:100%!important;box-sizing:border-box}
html:root:root:root body#fernus-ui .government-app .gov-navigation>a{flex:1 1 130px!important;white-space:normal!important;min-width:0!important;min-height:42px!important;font-size:13px!important;padding:10px 12px!important;gap:7px!important;box-sizing:border-box}
html:root:root:root body#fernus-ui .gov-dialog{padding:28px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 40px)!important;overflow:auto!important;box-sizing:border-box}
@media(max-width:1000px){html:root:root:root body#fernus-ui .gov-case-layout{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:600px){html:root:root:root body#fernus-ui :is(.gov-case-grid,.gov-two-columns,.gov-case-summary,.gov-summary-grid){grid-template-columns:minmax(0,1fr)!important}html:root:root:root body#fernus-ui .gov-panel{padding:20px!important}html:root:root:root body#fernus-ui .government-app .gov-navigation>a{flex-basis:calc(50% - 6px)!important}html:root:root:root body#fernus-ui .gov-dialog{padding:20px!important}html:root:root:root body#fernus-ui .gov-case-summary-status{border-left:0!important;padding-left:0!important}}
/* Restore background detail with only a gentle dark veil. */
html:root:root:root[data-ff-theme=glass] body#fernus-ui .fernus-ambient{filter:brightness(.88) saturate(1)!important}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .global-banner-media::after{background:linear-gradient(180deg,#080b0914,#080b0938 65%,#080b095c)!important}
html:root:root:root[data-ff-theme=glass] body#fernus-ui [data-profile-banner-theme] .profile-cover-v6::after{background:linear-gradient(to bottom,rgb(var(--profile-surface-rgb) / .04),rgb(var(--profile-surface-rgb) / .12) 48%,rgb(var(--profile-surface-rgb) / .32) 74%,rgb(var(--profile-surface-rgb) / .64) 91%,var(--profile-surface))!important}

@media(min-width:761px){@media (hover:hover) and (pointer:fine){html:root:root:root body#fernus-ui .site-header .header-actions .public-avatar-toggle:is(:hover,:focus-visible,[aria-expanded=true]){width:194px!important}}html:root:root:root body#fernus-ui .public-avatar-toggle .account-reveal{gap:6px!important;padding:0 10px!important}html:root:root:root body#fernus-ui .public-avatar-toggle .account-label{font-size:13px!important}}
@media(min-width:761px) and (max-width:1100px){html:root:root:root body#fernus-ui .site-header .nav-links>a{font-size:0!important;width:36px!important;height:36px!important;min-height:36px!important;padding:6px!important;gap:0!important}html:root:root:root body#fernus-ui .cabinet-public-nav>a>span{display:none!important}}
html:root:root:root body#fernus-ui .rules-chapter-curtain{max-width:1280px!important}
@media(max-width:760px){html:root:root:root body#fernus-ui .rules-chapter-links>a{flex:1 1 0!important;min-width:0!important;padding:8px 4px!important;font-size:10px!important;overflow-wrap:anywhere!important}html:root:root:root body#fernus-ui .rules-chapter-mark{display:none!important}}
html:root:root:root body#fernus-ui .social-app-card{--social-fill:rgb(var(--ff-social-rgb) / .68)!important}
/* The menu is closed before JavaScript upgrades it into a bottom sheet. */
html body#fernus-ui #mobileMenu:not(.open){display:none!important;visibility:hidden!important;pointer-events:none!important}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .cabinet-nav.ff-segmented>[data-cabinet-notices-toggle]{background:rgb(93 77 30 / .65)!important;color:#ffc247!important;box-shadow:inset 0 1px 0 #ffffff2b!important;z-index:3}
html:root:root:root[data-ff-theme=glass] body#fernus-ui .cabinet-nav.ff-segmented>[data-cabinet-notices-toggle].has-unread{background:rgb(255 194 71 / .88)!important;color:#14140e!important}

html:root:root:root[data-ff-theme=glass] body#fernus-ui #profileStatistics>.p-modal-card{background:rgb(var(--ff-glass-rgb,24 29 25) / .74)!important;backdrop-filter:blur(10px) saturate(125%)!important;-webkit-backdrop-filter:blur(10px) saturate(125%)!important;box-shadow:inset 0 1px 0 #ffffff2b!important}
@media(hover:hover){@media (hover:hover) and (pointer:fine){html:root:root:root body#fernus-ui#fernus-ui .feature-card:hover{scale:1.025!important;transform:none!important;border-color:transparent!important;outline:0!important;box-shadow:inset 0 1px 0 #ffffff20!important}}}@media (hover:hover) and (pointer:fine){
html:root:root:root body#fernus-ui#fernus-ui :is(.social-app-card,.profile-social-links>a,.social-icon-btn,.social-chip):is(:hover,:focus-visible){background:rgb(var(--ff-social-rgb) / .68)!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff45!important}}
html:root:root:root body#fernus-ui .gov-filters>.p-btn{width:auto!important;min-width:max-content!important;flex:1 1 auto!important;white-space:nowrap!important;gap:6px!important;padding:10px 12px!important;font-size:12px!important;min-height:40px!important}
html:root:root:root body#fernus-ui .gov-filters>.p-btn>span{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;flex-shrink:0!important}
html:root:root:root body#fernus-ui .gov-filters>.p-btn>svg{width:16px!important;height:16px!important;flex:0 0 16px!important}
html:root:root:root body#fernus-ui .gov-panel .gov-empty{background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:24px 8px!important}
html:root:root:root body#fernus-ui[data-page=home] :is(.info-card,.feature-card,.step-card){transition:scale .42s cubic-bezier(.2,1.6,.35,1)!important}
@media(hover:hover){@media (hover:hover) and (pointer:fine){html:root:root:root body#fernus-ui#fernus-ui[data-page=home] :is(.info-card,.feature-card,.step-card):hover{scale:1.025!important;transform:none!important;border-color:transparent!important;outline:0!important;box-shadow:inset 0 1px 0 #ffffff20!important}}}
@media(prefers-reduced-motion:reduce){@media (hover:hover) and (pointer:fine){html:root:root:root body#fernus-ui#fernus-ui[data-page=home] :is(.info-card,.feature-card,.step-card):hover{scale:1!important;transition:none!important}}}
@media(prefers-reduced-motion:reduce){html:root:root:root[data-ff-theme=glass] body#fernus-ui .cabinet-nav.ff-segmented>.ff-segment-indicator{transition:none!important}}
/* Government sections stay in one horizontal swipe rail. */
html:root:root:root body#fernus-ui .government-app .gov-navigation{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;justify-content:flex-start!important;scrollbar-width:none!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-padding-inline:8px;touch-action:pan-x pan-y}
html:root:root:root body#fernus-ui .government-app .gov-navigation::-webkit-scrollbar{display:none}
html:root:root:root body#fernus-ui .government-app .gov-navigation>a{flex:0 0 auto!important;min-width:max-content!important;white-space:nowrap!important}
html:root:root:root body#fernus-ui .government-app .gov-navigation>a>span{white-space:nowrap!important}

/* Guide: one outer glass surface for each content block. */
html:root:root:root[data-ff-theme=glass] body#fernus-ui#fernus-ui :is(.guide-block,.guide-intro-card,.guide-section-content>.guide-callout){border-radius:var(--ff-glass-radius,32px)!important;background:rgb(var(--ff-glass-rgb,24 29 25) / var(--ff-glass-card-opacity,.52))!important;box-shadow:inset 0 1px 0 #ffffff2b!important;border:1px solid #ffffff18!important;backdrop-filter:blur(var(--ff-glass-blur,0px)) saturate(130%)!important;-webkit-backdrop-filter:blur(var(--ff-glass-blur,0px)) saturate(130%)!important}
html:root:root:root body#fernus-ui#fernus-ui .guide-block :is(.guide-command-row,.guide-command-copy,.guide-mini-card,.guide-step,.guide-table-wrap,.guide-faq,.guide-faq details){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important}
html:root:root:root body#fernus-ui .guide-block .guide-command-copy{border-radius:12px!important}@media (hover:hover) and (pointer:fine){
html:root:root:root body#fernus-ui .guide-block .guide-command-copy:is(:hover,:focus-visible){background:#ffffff0b!important}}
html:root:root:root body#fernus-ui :is(.guide-block-title,.guide-intro-card h1,.guide-section-heading h2,.guide-block h3,.guide-section-content>.guide-callout h3){text-align:center!important}
html:root:root:root body#fernus-ui .guide-section-heading{grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;text-align:center!important}
html:root:root:root body#fernus-ui .guide-section-heading p{margin-inline:auto!important}
/* Solid phone sheets attach to the viewport, rather than floating like glass. */
@media(max-width:760px){
 html:root:root:root body#fernus-ui#fernus-ui :is(.p-modal,.cabinet-notice-sheet,.v7-overlay){padding:0!important;align-items:flex-end!important;justify-content:center!important}
 html:root:root:root body#fernus-ui#fernus-ui :is(.p-modal>.p-modal-card,.cabinet-notice-sheet>.cabinet-notice-panel,.menu-sheet-panel,.v7-overlay>.v7-dialog,.gov-dialog.is-mobile-sheet){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;inset:auto!important;bottom:0!important;border-radius:28px 28px 0 0!important;border:0!important;max-height:calc(100dvh - env(safe-area-inset-top) - 12px)!important;box-sizing:border-box!important;background:var(--fu-surface,#171d18)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
 html:root:root:root body#fernus-ui#fernus-ui #profileBiography>.p-modal-card{padding:0!important}
 html:root:root:root body#fernus-ui#fernus-ui :is(.p-modal-card,.cabinet-notice-panel,.menu-sheet-panel)>.p-modal-body{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-notice-scroll{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
}
/* The design sample owns one matching, clipped glass skin. */
html:root:root:root body#fernus-ui#fernus-ui :is(.design-card-v5>.bank-card,.bank-open-preview){position:relative!important;isolation:isolate;overflow:hidden!important}
html:root:root:root body#fernus-ui#fernus-ui .ff-card-glass-overlay{position:absolute!important;inset:0!important;z-index:4!important;display:block!important;border-radius:inherit!important;pointer-events:none!important;box-sizing:border-box!important;border:1px solid #ffffff24!important;background:linear-gradient(135deg,#ffffff18,transparent 42%,#ffffff08)!important;box-shadow:inset 0 1px 0 #ffffff52,inset 0 -1px 0 #ffffff24!important;backdrop-filter:blur(.5px) saturate(115%)!important;-webkit-backdrop-filter:blur(.5px) saturate(115%)!important}
@media(max-width:760px){
 html:root:root:root body#fernus-ui#fernus-ui .bank-operations-dialog .finance-operation>.bank-transaction-delete{background:rgb(161 54 48 / .82)!important;color:#fff3f0!important;box-shadow:inset 0 1px 0 #ffffff28!important}
 html:root:root:root body#fernus-ui#fernus-ui .bank-operations-dialog .finance-operation:not(.is-swipe-open):not(.is-swipe-dragging) .bank-transaction-swipe-content{background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;outline-color:transparent!important}
 html:root:root:root body#fernus-ui#fernus-ui .bank-operations-dialog .finance-operation:is(.is-swipe-open,.is-swipe-dragging) .bank-transaction-swipe-content{background:rgb(51 65 54 / .42)!important;backdrop-filter:blur(8px) saturate(135%)!important;-webkit-backdrop-filter:blur(8px) saturate(135%)!important;box-shadow:inset 0 1px 0 #ffffff38,inset 0 -1px 0 #ffffff20!important;outline-color:#ffffff20!important}
 html:root:root:root body#fernus-ui#fernus-ui .bank-operations-dialog .finance-mobile-chart{background:rgb(51 65 54 / .38)!important;border-radius:var(--ff-glass-radius,32px)!important;backdrop-filter:blur(8px) saturate(135%)!important;-webkit-backdrop-filter:blur(8px) saturate(135%)!important;box-shadow:inset 0 1px 0 #ffffff38,inset 0 -1px 0 #ffffff20!important;border:1px solid #ffffff18!important}
}
@media(max-width:760px){html:root:root:root body#fernus-ui#fernus-ui .bank-design-toolbar{height:auto!important;min-height:0!important;padding-bottom:20px!important;align-content:start!important}html:root:root:root body#fernus-ui#fernus-ui .bank-design-toolbar .bank-history-head{margin-bottom:0!important;padding-bottom:0!important;min-height:0!important}html:root:root:root body#fernus-ui#fernus-ui .bank-design-toolbar>.bank-carousel-actions{margin-bottom:0!important}}
.treasury-finance-period{display:flex;position:relative;isolation:isolate;gap:6px;padding:6px;border-radius:999px;background:#ffffff05;margin:0 0 18px}
.treasury-finance-period>a{flex:1;display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px;border-radius:999px;text-decoration:none;color:inherit;font-size:13px}
.treasury-finance-period>a.active{color:#ffd475;background:#b193394d}
@media(max-width:760px){html:root:root:root body#fernus-ui#fernus-ui .treasury-finance-desktop{display:none!important}html:root:root:root body#fernus-ui#fernus-ui .treasury-finance-open{margin:0!important}html:root:root:root body#fernus-ui#fernus-ui #treasuryOperations [data-treasury-kind][hidden]{display:none!important}html:root:root:root body#fernus-ui#fernus-ui #treasuryOperations .treasury-history{margin:0!important}html:root:root:root body#fernus-ui#fernus-ui #treasuryOperations .data-row-main{display:flex;align-items:center;gap:12px;min-width:0}html:root:root:root body#fernus-ui#fernus-ui #treasuryOperations [data-treasury-kind]{padding:18px 0!important;gap:14px!important}html:root:root:root body#fernus-ui#fernus-ui #treasuryOperations .treasury-history small{line-height:1.6!important;margin-top:8px!important}html:root:root:root body#fernus-ui#fernus-ui #treasuryOperations .treasury-history .amount{white-space:nowrap!important;font-size:12px!important}}
.rules-chapter-short{display:none}.rules-chapter-link>svg{width:18px;height:18px;flex:0 0 18px}
@media(max-width:760px){
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-curtain{min-height:0!important;height:auto!important;padding:4px!important}
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-inner{width:100%!important;min-height:0!important;padding:0!important;gap:0!important}
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-links{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;overflow:hidden!important;width:100%!important;padding:0!important}
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-links>a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important;width:100%!important;min-height:44px!important;padding:4px 2px!important;box-sizing:border-box!important;white-space:nowrap!important;line-height:1.15!important}
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-links .rules-chapter-full{display:none!important}
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-short{display:block!important;font-size:10px!important;white-space:nowrap!important;color:inherit!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 html:root:root:root body#fernus-ui#fernus-ui .rules-chapter-link>svg{display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important}
}
@media(min-width:761px){
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-body-v6{grid-template-columns:minmax(0,.7fr) minmax(0,.7fr) minmax(0,1fr)!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-main-v6{grid-column:1/3!important;grid-row:1!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-side-v6{grid-column:3!important;grid-row:1!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-bank-shortcut{grid-column:1!important;grid-row:2!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-business-shortcut{grid-column:2!important;grid-row:2!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-stats-shortcut{grid-column:3!important;grid-row:2!important;min-height:0!important;height:auto!important}
}
@media(max-width:760px){
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-body-v6{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own :is(.profile-main-v6,.profile-side-v6){grid-column:1/-1!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-bank-shortcut{grid-column:1!important;grid-row:3!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-business-shortcut{grid-column:2!important;grid-row:3!important}
 html:root:root:root body#fernus-ui#fernus-ui .profile-is-own .profile-stats-shortcut{grid-column:1/-1!important;grid-row:4!important;min-height:0!important}
}
/* Continue the purple banner beneath the map fade, rather than exposing ambient gold. */
html:root:root:root body#fernus-ui#fernus-ui.map-body .map-main{position:relative!important;margin-top:-48px!important;z-index:0!important;isolation:isolate}
html:root:root:root body#fernus-ui#fernus-ui.map-body .map-main::before{content:'';position:absolute;left:0;right:0;top:-130px;height:330px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#25192f44,#25192f66),url('/assets/banners/global-banner.jpg') center 40%/cover no-repeat;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 62%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 62%,transparent 100%)}
html:root:root:root body#fernus-ui#fernus-ui.map-body .map-frame-shell>iframe{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#0006 28px,#000c 62px,#000 96px)!important;mask-image:linear-gradient(to bottom,transparent 0%,#0006 28px,#000c 62px,#000 96px)!important}

/* v112: compact, centered header groups and rules-style cabinet tabs. */
.cabinet-nav-short-label{display:none}
html:root:root:root body#fernus-ui#fernus-ui :is(.site-header .nav-links,.cabinet-header .cabinet-public-nav){justify-content:center!important;justify-self:center!important;gap:4px!important}
@media(max-width:760px){
 html:root:root:root body#fernus-ui#fernus-ui .site-header .phone-section-nav{justify-content:center!important;gap:3px!important}
 html:root:root:root body#fernus-ui#fernus-ui :is(.site-header .phone-section-nav,.cabinet-header .cabinet-public-nav)>a{flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:40px!important;min-height:40px!important;padding:0!important}
 html:root:root:root body#fernus-ui#fernus-ui :is(.site-header .phone-section-nav,.cabinet-header .cabinet-public-nav)>a svg{width:21px!important;height:21px!important;min-width:21px!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav{grid-template-columns:repeat(var(--ff-mobile-nav-count,5),minmax(0,1fr))!important;padding:4px!important;gap:3px!important;min-height:0!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav>.cabinet-nav-link:not([data-cabinet-notices-toggle]){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;height:44px!important;min-height:44px!important;min-width:0!important;padding:4px 2px!important;gap:3px!important;line-height:1.15!important;box-sizing:border-box!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav>.cabinet-nav-link:not([data-cabinet-notices-toggle])>svg{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav>.cabinet-nav-link:not([data-cabinet-notices-toggle])>span{display:block!important;font-size:10px!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav>.cabinet-nav-link:not([data-cabinet-notices-toggle])>span:is(.cabinet-nav-long-label,.cabinet-admin-full){display:none!important}
}
@media(max-width:760px){
 html:root:root:root[data-ff-theme=glass] body#fernus-ui#fernus-ui .cabinet-nav.ff-segmented>.ff-segment-indicator{background:#34432c!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;opacity:1!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav>.cabinet-nav-link.active{color:#f3d28c!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav:not(.ff-segmented)>.cabinet-nav-link.active{background:#34432c!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html:root:root:root body#fernus-ui#fernus-ui .cabinet-nav.ff-segmented>.ff-segment-indicator>canvas{display:none!important}
}
