/* Restore the readable original type system and navigation geometry. */
body:not(.fd-auth){font-family:var(--body,'DM Sans',Arial,sans-serif)!important}body:not(.fd-auth) h1,body:not(.fd-auth) h2,body:not(.fd-auth) h3{font-family:var(--display,'Outfit',Arial,sans-serif)!important;letter-spacing:-.3px}.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar .brand{display:flex!important;justify-content:center!important;width:100%;padding:23px 12px!important;margin:0!important}.sidebar #nav{display:flex;flex-direction:column;gap:3px}.sidebar #nav button{font-family:var(--body)!important;font-size:14px!important;font-weight:500;line-height:1.3;min-height:40px;gap:10px;white-space:nowrap;padding:9px 12px!important}.sidebar #nav button>span{width:24px;flex:0 0 24px;font-size:19px!important}.sidebar #nav button.active{font-weight:700}.sidebar .side-bottom{display:none}.sidebar .profile{margin:10px 16px 16px!important}.sidebar .nav-label{margin-top:12px}.fd13-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fd13-menu button{font:500 13px/1.3 var(--body)!important;min-width:0;min-height:48px;padding:11px 8px!important;gap:8px!important}.fd13-menu button>span{flex:0 0 23px;font-size:19px!important}.fd13-brand{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;max-width:100%;text-decoration:none}.fd13-brand>img{display:block;width:160px;max-width:100%;height:auto}.fd13-brand>small{font:500 9px/1.4 var(--body,'DM Sans',Arial,sans-serif);color:#e8d8b1;letter-spacing:.1px;text-align:center}.portal-header .fd13-brand>small,.fg-footer .fd13-brand>small{color:#566950}.portal-header .fd13-brand>img,.fg-footer .fd13-brand>img{width:153px}.mobile-brand .fd13-brand>img{width:132px}.mobile-brand .fd13-brand>small{display:none}.mission-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;overflow:visible!important;white-space:normal!important}.mission-tabs button{min-width:0!important;white-space:normal!important;padding:12px 8px!important;font:600 13px/1.35 var(--body)!important;justify-content:center;border-radius:12px!important}.mission-tabs #mission-tab-prizes{grid-column:1/-1;background:linear-gradient(100deg,#fff8e6,#f5e7bd)!important;color:#62491d!important;border:1px solid #d6b770!important;padding:11px!important;box-shadow:0 3px 9px #a2792320}.mission-tabs #mission-tab-prizes[aria-selected=true]{background:linear-gradient(100deg,#285341,#153d30)!important;color:#ffe7a6!important;border-color:#ad8b46!important}.fd-first h2{font-size:22px!important;margin-bottom:16px}.fd-prize-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fd-prize-grid article{display:block;padding:16px}.fd-prize-grid h3{font-size:16px;margin:6px 0 8px}.fd-prize-grid article>strong{font-size:26px}.fd-prize-status{font-size:10px;font-weight:700;letter-spacing:.5px;color:#7a632c}.fd13-race{list-style:none;margin:13px 0 0;padding:0;border-top:1px solid #e4dbc6}.fd13-race li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:5px 7px;padding:10px 0;border-bottom:1px solid #ede5d5}.fd13-race .race-rank{grid-row:span 2;font-size:14px}.fd13-race b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fd13-race small{font-size:10px;white-space:nowrap}.fd13-race progress{grid-column:2/-1;display:block;height:5px;width:100%;margin:0}.fd13-own-progress{font-size:11px;margin:12px 0 0!important;color:#527043}.fd13-race-empty{font-size:12px;margin-top:12px!important}.fd-first .fd13-winner{font-size:12px;margin-top:8px;color:#385c33}.farm{background:#a8ce76 url('farm.webp') center/cover!important}.fd13-menu [onclick="navigate('admin')"]{grid-column:1/-1;border:1px solid #d5b367!important;background:#faf1d8!important}.sidebar #nav [onclick="navigate('admin')"]{margin-top:10px;border-top:1px solid #ffffff30;padding-top:13px!important;color:#f4d88e!important}
@media(max-width:700px){.mission-tabs button{font-size:11px!important;padding:11px 4px!important}.fd-prize-grid{grid-template-columns:1fr}.fd-first h2{font-size:19px!important}.fd13-brand>img{width:130px}.portal-header .fd13-brand>img{width:140px}.fg-footer{padding-bottom:155px!important}.fd-prize-grid article{padding:14px}.sidebar #nav button{white-space:normal}}

.portal-header .fd13-brand>img,.fg-footer .fd13-brand>img,.mobile-brand .fd13-brand>img{content:url('assets/farmday-logo-dark-192.png?v=192')}
/* 1.4: horizontal identity and clear status feedback */
.fd13-brand>img{width:184px;max-height:56px;object-fit:contain}.sidebar .brand{padding:15px 12px!important}.fd13-brand>small{font-size:8px}.mobile-brand .fd13-brand>img{width:135px;height:38px}.portal-header .fd13-brand>img,.fg-footer .fd13-brand>img{width:165px}.fd-game-lock{display:inline-flex;align-items:center;gap:3px;font:500 10px/1.2 var(--body);margin-left:auto;opacity:.8;white-space:nowrap}.menu-grid .fd-game-lock{font-size:9px;margin-left:0}.fd-email-result{padding:15px 18px;border-radius:11px;font-size:14px;font-weight:600;line-height:1.6}.fd-email-result.is-success{background:#e4f4e7;color:#205b32;border:1px solid #8fc69c;border-left:4px solid #3b9252}.fd-email-result.is-error{background:#fff0ed;color:#922f26;border:1px solid #e3aaa4}.fd-email-result.is-success:before{content:'✓ ';font-weight:800}
/* FarmDay 1.5: compact layouts and stable image geometry. */
.fd-auth-rewards{display:grid!important;grid-template-columns:1fr!important;gap:0!important;border:1px solid #c6a55f66!important;background:linear-gradient(120deg,#244738,#17382d)!important;border-radius:14px!important;padding:9px 15px!important;box-shadow:0 8px 24px #071f2420}
.fd-auth-rewards>span{display:block!important;padding:7px 0!important;color:#f5e5bd!important;font-size:13px!important;line-height:1.4!important}
.fd-auth-rewards>span+span{border-top:1px solid #ffffff16}.fd-auth-rewards>span:first-child{font-size:16px!important;font-weight:700}
.fd13-brand,.fd-auth .fd13-brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;width:auto!important;min-width:0!important;min-height:0!important}
.fd13-brand>img{background:transparent!important;border-radius:0!important;padding:0!important}
#main .farm .plots>.plot{translate:none!important;scale:1!important}
.boost-option608{grid-template-columns:minmax(0,1fr) minmax(130px,170px)!important;gap:8px!important}.boost-buy15{display:grid;gap:5px;text-align:right}.boost-price15{font-weight:700;font-size:15px}.boost-buy15 button{width:100%;white-space:normal}
.fd-development-boosts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.fd-development-boosts>span{font-size:12px;padding:8px;border:1px solid #d5b46b55;border-radius:8px;background:#ffffff12}.fd-development-boosts>span:last-child{grid-column:1/-1}
#main .production-card .fd-machine-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;grid-column:1/-1;font-size:12px}
#main .fd-machine-summary .machine-total604{display:inline-flex!important;align-items:center;gap:5px;background:transparent!important;font-size:12px!important;padding:0!important}
#main .fd-machine-summary .machine-total604 b{font-size:14px!important}#main .fd-machine-summary .collection-xp{font-size:12px!important;margin:0!important}
.fd-prize-category{margin:22px 0}.fd-prize-category>h3{font-size:17px!important;padding:0 0 10px;border-bottom:1px solid #bba56a55}.fd-prize-grid article h3{display:flex;gap:7px;align-items:center}.fd-ruby-icon{width:21px;height:21px;object-fit:contain;vertical-align:middle}
@media(max-width:700px){.mobile-brand .fd13-brand>img{width:132px!important;height:37px!important}.fd-auth .fd13-brand>img{width:154px!important;height:43px!important}.fd-auth header{min-height:0!important;padding-top:10px!important;padding-bottom:10px!important}.fd-prize-grid{grid-template-columns:1fr!important}.fd-prize-category{margin:18px 0}.topbar .mobile-brand{padding:0!important;min-height:0!important;background:transparent!important}}

.fd-prize-tabs16{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.fd-prize-tabs16 button{border:1px solid #c9bd95;border-radius:10px;padding:12px 8px;background:#f4f1e5;color:#34503b;font:600 13px/1.4 var(--body);cursor:pointer}.fd-prize-tabs16 button[aria-selected=true]{background:#214e3b;color:#ffe4a0;border-color:#ba9550;box-shadow:0 3px 10px #183d2525}.fd-prize-category .fd-prize-grid{display:grid!important;grid-template-columns:1fr!important}.fd-prize-category .fd-prize-grid article{width:100%;box-sizing:border-box}html[data-theme=dark] .fd-prize-tabs16 button{background:#233b2d;color:#e8e6ce}html[data-theme=dark] .fd-prize-tabs16 button[aria-selected=true]{background:#426445;color:#ffe4a0}@media(max-width:700px){.fd-prize-tabs16{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.fd-prize-tabs16 button{padding:10px 6px;font-size:12px}}
/* 1.5.3 — prices match the barn; compact mobile header. */
#main .boost-buy15{align-items:center;text-align:center;gap:9px}#main .boost-buy15 .boost-price15,#main .boost-buy15 .boost-price15 strong{font-size:28px!important;line-height:1.2!important;font-weight:800!important;color:var(--dark,#214c3b)}#main .boost-buy15 .fd-ruby-icon,#main .boost-buy15 img{width:28px!important;height:28px!important;vertical-align:middle}#main .boost-buy15 .boost-price15 del{font-size:14px!important}html[data-theme=dark] #main .boost-buy15 .boost-price15 strong{color:#f4e7bd}
@media(max-width:700px){.topbar{padding:10px 14px!important;gap:8px!important;align-items:start!important}.topbar .mobile-brand{align-self:start!important;margin:5px 0 0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;height:38px!important;min-height:0!important;width:fit-content!important}.topbar .mobile-brand .fd13-brand{height:38px!important;gap:0!important;margin:0!important}.topbar .mobile-brand .fd13-brand>img{width:132px!important;height:37px!important}.topbar .header-profile{gap:3px!important}.topbar .header-profile .fg-profile-controls{gap:5px!important}.topbar .account-badge,.topbar .fg-theme-toggle{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}.topbar #header-level{font-size:12px!important;line-height:1.2!important}.topbar #header-xp{font-size:10px!important;line-height:1.2!important}.topbar #header-xpbar{height:4px!important;margin:2px 0!important}.topbar .wallet{margin:0!important}.topbar .fg-lang-switch{margin-top:3px!important}}

/* 1.5.4 compact shop */
#main .boost-buy15 .boost-price15,#main .boost-buy15 .boost-price15 strong{font-size:20px!important}#main .boost-buy15 img,#main .boost-buy15 .fd-ruby-icon{width:21px!important;height:21px!important}#main .boost-buy15{gap:5px;grid-template-columns:auto minmax(110px,1fr);text-align:center}#main .boost-option608{padding-top:7px!important;grid-template-columns:42px minmax(0,1fr)!important}#itemshop-products .boost-card608{padding:12px!important}.boost-options608{gap:6px!important}.extra-title608 p{margin-bottom:3px!important}.fd-development-boosts{gap:5px!important;margin:8px 0!important}.fd-development-boosts>span{padding:7px!important;font-size:11px!important;line-height:1.4!important}.fd-development{gap:10px!important;padding:14px!important}.fd-development-copy h2{margin:4px 0!important}.fd-development-copy>p{margin:5px 0!important}.sidebar #nav button .fd-game-lock,.menu-grid button .fd-game-lock{font-size:12px!important;font-weight:500!important;margin-left:6px!important;gap:3px!important;flex:0 0 auto!important}.sidebar #nav button{justify-content:flex-start!important}
@media(max-width:700px){.fd-development-art{display:none!important}.fd-development{grid-template-columns:1fr!important}.fd-development-copy>small{font-size:9px!important}.fd-development-copy>p{font-size:12px!important}.fd-development-perks{gap:5px!important}.fd-development-perks span{padding:6px!important;font-size:11px!important}.fd-development-buy{padding-top:6px!important}.fd-development-boosts{grid-template-columns:repeat(2,minmax(0,1fr))!important}#main .boost-buy15 .btn{min-height:33px!important;padding:7px 5px!important;font-size:11px!important}}

/* 1.5.6: pair the two durations in a distinct shared container. */
#itemshop-products .fd-boost-group156{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;border:1px solid #bdcbaa;border-left:4px solid #61825b;border-radius:18px;background:#eaf0e0;box-shadow:0 3px 10px #25412c08;margin:0 0 5px;min-width:0}#itemshop-products .fd-boost-group156>.shop-horizontal604{margin:0!important;border-radius:12px!important}html[data-theme=dark] #itemshop-products .fd-boost-group156{background:#192f23;border-color:#466449;border-left-color:#91ad76}@media(max-width:700px){#itemshop-products .fd-boost-group156{padding:7px;gap:7px;border-radius:15px;border-left-width:3px}}
/* 1.6.2: use the full mobile header width instead of a tall right column. */
@media(max-width:760px){
.topbar{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;padding:10px 14px!important;gap:9px 10px!important;align-items:center!important}
.topbar .mobile-brand{grid-column:1!important;grid-row:1!important;align-self:center!important;margin:0!important;height:38px!important;padding:0!important;width:fit-content!important}
.topbar .mobile-brand .fd13-brand{height:38px!important;gap:0!important}.topbar .mobile-brand .fd13-brand>img{width:140px!important;height:38px!important}
.topbar .header-profile{display:grid!important;grid-column:1/-1!important;grid-row:2!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;justify-items:start!important;width:100%!important;max-width:none!important;gap:3px 12px!important;text-align:left!important}
.topbar .header-profile .fg-profile-controls{position:absolute!important;right:14px!important;top:12px!important;display:flex!important;gap:6px!important}
.topbar .header-profile .account-badge,.topbar .header-profile .fg-theme-toggle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
.topbar .header-profile #header-level{grid-column:1!important;grid-row:1!important;font-size:12px!important;line-height:1.2!important;margin:0!important}
.topbar .header-profile #header-xp{grid-column:1!important;grid-row:2!important;font-size:10px!important;max-width:none!important;line-height:1.2!important;margin:0!important}
.topbar .header-profile #header-xpbar{grid-column:1!important;grid-row:3!important;height:4px!important;width:100%!important;max-width:none!important;margin:1px 0!important}
.topbar .header-profile .language590{grid-column:2!important;grid-row:1/4!important;display:flex!important;gap:4px!important;margin:0!important;padding:0!important;align-self:center!important}
.topbar .header-profile .language590 button{min-width:0!important;min-height:30px!important;padding:6px 8px!important;font-size:10px!important;border-radius:8px!important}
.topbar .wallet{grid-column:1/-1!important;grid-row:3!important;width:100%!important;margin:0!important}
}
@media(max-width:760px){.topbar .header-profile .fg-profile-controls{left:auto!important;width:auto!important;justify-content:flex-end!important;transform:none!important;margin:0!important}.topbar .header-profile .account-badge{overflow:hidden!important;flex-shrink:0!important}}

/* 1.9.1: complete wordmark, compact first steps, one-row general ranking filters. */
.fd13-brand>img,.fd-auth .fd-logo img,.fd-admin-logo167 img{object-fit:contain!important;object-position:center; height:auto!important;aspect-ratio:390/96}
.fg-footer .fd13-brand>img{width:220px!important;max-width:100%!important}
.sidebar .fd13-brand>img{width:206px!important}
.mobile-brand .fd13-brand>img{width:174px!important}
.welcome-mission{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:8px 12px!important;align-items:start!important;min-height:0!important;padding:16px!important}
.welcome-mission>.mission-icon{grid-column:1!important;grid-row:1!important;width:42px!important;height:42px!important;min-width:0!important;display:flex!important;align-items:center;justify-content:center;font-size:25px!important}
.welcome-mission>.welcome-copy191{grid-column:2!important;min-width:0}
.welcome-mission .welcome-copy191>small{display:block;font-size:10px!important;line-height:1.3!important;letter-spacing:.4px;margin:0 0 5px!important}
.welcome-mission .welcome-copy191>h3{font-size:17px!important;line-height:1.25!important;margin:0 0 6px!important}
.welcome-mission .welcome-copy191>p{font-size:13px!important;line-height:1.45!important;margin:0!important}
.welcome-mission>.welcome-reward191{grid-column:2!important;margin:0!important;font-size:12px!important;line-height:1.4!important;font-weight:600}
.welcome-mission>.welcome-note191{grid-column:1/-1!important;margin:0!important;font-size:11px!important;line-height:1.4!important;text-align:left!important}
.welcome-mission>.welcome-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:2px 0 0!important;padding:0!important;width:100%!important}
.welcome-mission .welcome-actions>.btn{width:100%!important;min-width:0!important;padding:10px 7px!important;min-height:42px!important;font-size:12px!important;line-height:1.25!important;margin:0!important;white-space:normal!important;display:flex;align-items:center;justify-content:center}
.welcome-mission .welcome-actions>.btn:only-child{grid-column:1/-1}
#main .rank-tabs.rank-general191{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%;overflow:visible!important}
#main .rank-tabs.rank-general191>button{min-width:0!important;margin:0!important;padding:10px 5px!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important;display:flex;align-items:center;justify-content:center}
@media(min-width:701px){#main .rank-tabs.rank-general191>button{font-size:14px!important}.welcome-mission{padding:18px!important}}

/* 1.9.2 independent mobile logo box and first-steps card geometry. */
@media(max-width:760px){
.topbar .mobile-brand{width:clamp(140px,43vw,190px)!important;max-width:100%!important;height:auto!important;overflow:visible!important;min-width:0!important}
.topbar .mobile-brand .fd13-brand{display:block!important;width:100%!important;height:auto!important;overflow:visible!important}
.topbar .mobile-brand .fd13-brand>img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:390/96!important;object-fit:contain!important;content:normal!important}
}
.welcome-card192{position:relative;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:8px 12px!important;padding:18px!important;border:1px solid #dbe5d2!important;border-radius:18px!important;box-shadow:0 4px 14px #234c3210!important;background:linear-gradient(135deg,#fff,#f8fbf4)!important}
.welcome-card192>.mission-icon{grid-column:1!important;grid-row:1!important;width:46px!important;height:46px!important;border-radius:13px!important;background:#edf3e3!important;align-self:start!important;margin:0!important;padding:7px!important;box-sizing:border-box!important}
.welcome-card192>.welcome-copy191{grid-column:2!important;grid-row:1!important}
.welcome-card192>.welcome-copy191>h3{font-size:17px!important;line-height:1.3!important;margin:3px 0 7px!important}
.welcome-card192>.welcome-copy191>p{font-size:13px!important;line-height:1.5!important;color:#536653!important}
.welcome-card192>.welcome-reward191{grid-column:1/-1!important;grid-row:2!important;justify-self:start;background:#eff5e7;border:1px solid #dae8ce;border-radius:20px;padding:5px 10px!important;font-size:12px!important;color:#365b35!important}
.welcome-card192>.welcome-note191{grid-column:1/-1!important;grid-row:3!important;font-size:11px!important;color:#6a7a64!important;margin:0!important}
.welcome-card192>.welcome-actions{grid-column:1/-1!important;grid-row:4!important;padding-top:5px!important;align-items:stretch!important}
.welcome-card192 .welcome-actions>.btn{border-radius:11px!important;min-height:44px!important;box-shadow:none!important;font-weight:700!important}
@media(min-width:761px){.welcome-card192{grid-template-columns:50px minmax(0,1fr) auto!important;gap:8px 16px!important}.welcome-card192>.welcome-reward191{grid-column:3!important;grid-row:1!important;align-self:start!important;white-space:nowrap}.welcome-card192>.welcome-note191{grid-column:2!important;grid-row:2!important}.welcome-card192>.welcome-actions{grid-column:2/4!important;grid-row:3!important;justify-self:start;max-width:520px}}

.welcome-card192>.mission-icon{position:static!important;transform:none!important;float:none!important;inset:auto!important}.welcome-card192>.mission-icon>svg{display:block;width:30px;height:30px;flex-shrink:0}

/* 1.9.8 machine summary: same two-column cells as the first metrics row. */
#main .production-card.machine-card .fd-machine-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 12px!important;grid-column:1/-1!important;width:100%;font-size:11px!important}
#main .production-card.machine-card .fd-machine-summary>span{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:5px!important;padding:5px 7px!important;border-radius:8px!important;background:#f3f7ee!important;font-size:11px!important;font-weight:400!important;min-width:0}
#main .production-card.machine-card .fd-machine-summary>span b{font-size:inherit!important;font-weight:700!important;white-space:nowrap}
@media(max-width:700px){#main .production-card.machine-card .fd-machine-summary{gap:3px 6px!important}#main .production-card.machine-card .fd-machine-summary>span{padding:4px 5px!important;font-size:9.5px!important}}
html[data-theme=dark] #main .production-card.machine-card .fd-machine-summary>span{background:#28492e!important;color:#e5f0d8!important}

