/* PWA v233 mobile finishing: 2D navigation, support safety and compact markets.
   Presentation only. The server remains authoritative for all market terms/actions. */
/* Inline support links are a narrow-market fallback when a floating button yields. */
#app .storefront-support-links{display:none}
@media(max-width:700px){
 /* Keep seven real destinations visible; never reduce their Arabic names to 8.5px. */
 #app.screen:not(.auth-mode) .bottom{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  gap:2px;padding-inline:max(3px,env(safe-area-inset-right,0px)) max(3px,env(safe-area-inset-left,0px));
 }
 #app.screen:not(.auth-mode) .bottom button.mz-decorated{
  min-width:0;min-height:60px;padding:4px 0 5px;white-space:nowrap;overflow:hidden;
 }
 /* Render icon and Arabic label in distinct stacked cells at every phone width. */
 #app.screen:not(.auth-mode) .bottom button.mz-decorated .mz-nav-label{
  display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;
  width:100%;max-width:100%;min-width:0;gap:2px;overflow:visible;
  white-space:normal;line-height:1.1;letter-spacing:0;
 }
 #app.screen:not(.auth-mode) .bottom button.mz-decorated .mz-nav-label>.mz-emoji{
  display:block;flex:0 0 auto;min-width:0;font-size:21px;line-height:1.15;
 }
 #app.screen:not(.auth-mode) .bottom button.mz-decorated.center .mz-nav-label>.mz-emoji{font-size:23px}
 #app.screen:not(.auth-mode) .bottom button.mz-decorated .mz-nav-label>.mz-nav-text{
  display:block;flex:0 0 auto;width:auto;max-width:100%;min-width:0;
  white-space:nowrap!important;text-align:center;
  font-size:clamp(10px,2.75vw,11px);font-weight:800;letter-spacing:-.35px;line-height:1.25;
 }
 /* Reserve a real resting zone under the last CTA, outside both support controls. */
 #app.screen:not(.auth-mode)>.content{
  padding-bottom:calc(195px + env(safe-area-inset-bottom,0px));
  scroll-padding-bottom:calc(195px + env(safe-area-inset-bottom,0px));
 }
 #app .help-floating,.quick-report-float{
  width:44px;height:44px;min-width:44px;min-height:44px;
  bottom:calc(94px + env(safe-area-inset-bottom,0px));opacity:.88;
 }
 #app .help-floating{right:max(6px,env(safe-area-inset-right,0px))}
 .quick-report-float{left:max(6px,env(safe-area-inset-left,0px))}
 /* Do not squeeze the bag shopping button: floating support controls yield instead. */
 #app.bag-mode .vault-footer .bag-market-link{
  width:100%;max-width:100%;margin:0 auto;
  min-height:48px;white-space:normal;text-align:center;overflow-wrap:normal;
 }
 #app .help-floating.support-float-avoid-cta,
 .quick-report-float.support-float-avoid-cta{
  visibility:hidden!important;opacity:0!important;pointer-events:none!important;
 }
 #app.market-mode .storefront-support-links{
  display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;
 }
 #app.market-mode .storefront-support-links button{
  flex:1 1 110px;min-height:44px;border:1px solid #d6bb8552;
  border-radius:11px;background:#152d3c;color:#e7d5b3;
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;
 }
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet{
  margin-bottom:var(--city-wallet-collapse-compensation,10px);
 }
 /* The screen title and the selected shopping tab already identify the market. */
 #app.market-mode>.hero .hero-headline{margin-top:1px}
 #app.market-mode>.hero .hero-headline .sub{display:none}
 #app.market-mode .market-shopping-tabs{margin:0 0 5px;gap:5px}
 #app.market-mode .market-shopping-tabs button{min-height:44px;padding:3px 6px}
 #app.market-mode .market-shopping-tabs button small{display:none}
 #app.market-mode .storefront-masthead{display:none}
 #app.market-mode .storefront-overview{margin:2px 0 6px;gap:5px}
 #app.market-mode .storefront-overview>div,#app.market-mode .storefront-bag-link{min-height:48px;padding:4px 5px}
 #app.market-mode .storefront-overview>div strong{font-size:18px;line-height:1.15}
 #app.market-mode .storefront-guide{display:none}
 #app.market-mode .storefront-market-terms{
  margin:4px 0 9px;padding:0;border:1px solid #d4b8784d;
  border-radius:10px;background:#122b3b;color:#e9d8b4;
 }
 #app.market-mode .storefront-market-terms>summary{
  display:flex;align-items:center;min-height:40px;padding:7px 11px;
  cursor:pointer;font-size:11.5px;font-weight:750;line-height:1.45;
 }
 #app.market-mode .storefront-market-terms>p{
  margin:0;padding:0 11px 11px;font-size:11px;line-height:1.65;color:#d6e4e9;
 }
 #app.market-mode .storefront-product{margin-top:0}
}
@media(max-width:430px){
 /* The player wallet is two predictable rows; the city toolbar remains one row. */
 #app.screen:not(.auth-mode){--city-wallet-height:calc(88px + var(--city-safe-top))}
 #app.screen:not(.auth-mode)>.always-wallet{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:38px 38px;align-items:center;
  column-gap:6px;row-gap:4px;height:var(--city-wallet-height);min-height:var(--city-wallet-height);
  padding:calc(4px + var(--city-safe-top)) 9px 4px;
 }
 #app.screen:not(.auth-mode)>.always-wallet .always-wallet-name{
  display:block;grid-column:1;grid-row:1;max-width:100%;min-width:0;
  font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 #app.screen:not(.auth-mode)>.always-wallet .always-wallet-button{
  grid-column:2/4;grid-row:1;justify-self:end;margin:0;max-width:100%;min-height:36px;
 }
 #app.screen:not(.auth-mode)>.always-wallet .always-bag{
  grid-column:1;grid-row:2;justify-self:center;min-height:38px;
 }
 #app.screen:not(.auth-mode)>.always-wallet .always-notices{
  grid-column:2;grid-row:2;justify-self:center;min-height:38px;
 }
 #app.screen:not(.auth-mode)>.always-wallet .always-chat{
  grid-column:3;grid-row:2;justify-self:center;min-height:38px;
 }
 #app.screen.wallet-compact:not(.auth-mode){--city-wallet-height:calc(44px + var(--city-safe-top))}
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet{
  display:flex;height:var(--city-wallet-height);min-height:var(--city-wallet-height);
  margin-bottom:var(--city-wallet-collapse-compensation,44px);
  padding:calc(4px + var(--city-safe-top)) 8px 4px;gap:5px;
 }
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet .always-wallet-name,
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet .always-bag,
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet .always-chat{display:none!important}
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet .wallet-shortcuts{display:block}
 #app.screen:not(.auth-mode)>.hero .topline{
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;
  gap:5px;min-width:0;
 }
 #app.screen:not(.auth-mode)>.hero .brand{display:flex;align-items:center;gap:5px;min-width:0;flex:0 1 auto}
 #app.screen:not(.auth-mode)>.hero .brand img{width:31px;height:31px;flex:none}
 #app.screen:not(.auth-mode)>.hero .brand b{font-size:12px;white-space:nowrap}
 #app.screen:not(.auth-mode)>.hero .brand small{display:none}
 #app.screen:not(.auth-mode)>.hero .city-directory{flex:none;min-width:0}
 #app.screen:not(.auth-mode)>.hero .city-directory-toggle{min-height:38px;padding:4px 6px;gap:4px;font-size:11px;white-space:nowrap}
 #app.screen:not(.auth-mode)>.hero .launch-in-game-tools{display:flex;flex:none;gap:3px;margin:0}
 #app.screen:not(.auth-mode)>.hero .launch-in-game-tools button{min-width:38px;min-height:38px;padding:4px}
 #launch-dialog{
  box-sizing:border-box;
  width:calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
  max-width:calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
  max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  padding:0;overflow:hidden;margin:auto;
 }
 #launch-dialog .launch-dialog-panel{width:100%;max-width:100%;min-width:0;overflow:hidden}
 #launch-dialog .launch-dialog-head-slot{padding:12px 11px 10px}
 #launch-dialog .launch-dialog-head{padding-inline-start:43px;gap:7px;min-width:0}
 #launch-dialog .launch-dialog-head h2{font-size:18px;overflow-wrap:anywhere}
 #launch-dialog .launch-dialog-close{inset-inline-start:9px;top:10px;min-width:40px;min-height:40px}
 #launch-dialog .launch-dialog-content{min-width:0;max-width:100%;padding:12px 11px 16px;overflow-x:hidden}
 #launch-dialog .launch-setting{
  min-width:0;max-width:100%;grid-template-columns:34px minmax(0,1fr) auto;
  gap:7px;padding:9px;min-height:72px;
 }
 #launch-dialog .launch-setting>*{min-width:0}
 #launch-dialog .launch-volume-options{gap:4px}
}
@media(max-width:350px){
 /* Give longer Arabic labels their measured width while retaining all seven tabs. */
 #app.screen:not(.auth-mode) .bottom{
  grid-template-columns:minmax(0,1.05fr) minmax(0,.88fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.23fr) minmax(0,.99fr) minmax(0,.85fr);
  gap:1px;
 }
 #app.screen:not(.auth-mode) .bottom button.mz-decorated .mz-nav-label>.mz-nav-text{
  font-size:10px;letter-spacing:-.4px;
 }
 #app.screen:not(.auth-mode)>.hero .city-directory-toggle>span{font-size:0;line-height:0}
 #app.screen:not(.auth-mode)>.hero .city-directory-toggle .mz-emoji{display:inline-grid;font-size:23px;line-height:1.2}
 #app.screen:not(.auth-mode)>.hero .city-directory-toggle{min-width:40px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .bottom button.mz-decorated,
 #app .help-floating,.quick-report-float{transition:none!important;animation:none!important}
}

/* PWA v234: readable job-contract status and direct return-to-work path. */
#app.jobs-mode .work-status-guide{display:grid;gap:4px;margin-bottom:10px;padding:12px 14px;border:1px solid #c7d5dc4a;border-radius:14px;background:#142939;color:#e9f2f2;min-width:0}
#app.jobs-mode .work-status-guide>span{font-size:11px;color:#bdccd5;font-weight:700}
#app.jobs-mode .work-status-guide>strong{font-size:18px;line-height:1.4;color:#ffe3b0}
#app.jobs-mode .work-status-guide>p{font-size:12.5px;line-height:1.75;color:#d8e5ed;margin:0}
#app.jobs-mode .work-status-guide>.button{width:100%;min-height:46px;margin-top:7px;font-size:13.5px}
#app.jobs-mode .work-status-guide.is-expired{border-color:#d8b78766}
#app.jobs-mode .work-idle-expired .work-idle-state{color:#ffe2b4;background:#5a40264a;border-color:#e9bf8e70}
#app.jobs-mode .work-career-return{margin-bottom:12px;padding:12px 14px;background:#142b3c;border:1px solid #bed3dc4f;border-radius:13px}
#app.jobs-mode .work-career-return strong{display:block;font-size:15px;color:#f6dba7}
#app.jobs-mode .work-career-return p{margin:4px 0 0;color:#d7e6ed;font-size:12.5px;line-height:1.7}
@media(max-width:430px){#app.jobs-mode .work-status-guide{padding:11px 12px}#app.jobs-mode .work-status-guide>strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){#app.jobs-mode .work-status-guide,#app.jobs-mode .work-career-return{animation:none!important;transition:none!important}}

/* PWA v235: profession switching next to verified career opportunities. */
#app.jobs-mode .profession-switch-panel{margin:0 0 12px;padding:14px;border:1px solid #c6d9df61;background:linear-gradient(135deg,#183449,#11283a);border-radius:16px;min-width:0}
#app.jobs-mode .profession-switch-header{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
#app.jobs-mode .profession-switch-header>div{display:grid;gap:2px}
#app.jobs-mode .profession-switch-header span{font-size:11px;color:#c3d3df}
#app.jobs-mode .profession-switch-header strong{font-size:19px;line-height:1.4;color:#f4dba7}
#app.jobs-mode .profession-switch-label{padding:4px 8px;border:1px solid #e6c78e52;border-radius:999px;color:#ead4ac!important;font-size:10px!important}
#app.jobs-mode .profession-switch-details{margin-top:10px}
#app.jobs-mode .profession-switch-details>summary{list-style:none;display:flex;justify-content:center;align-items:center;min-height:46px;width:100%;border-radius:12px;background:#e9c992;color:#11283a;cursor:pointer;font-weight:850;font-size:15px}
#app.jobs-mode .profession-switch-details>summary::-webkit-details-marker{display:none}
#app.jobs-mode .profession-switch-details>summary:focus-visible{outline:3px solid #fce8bd;outline-offset:3px}
#app.jobs-mode .profession-switch-details>p,#app.jobs-mode .profession-switch-disabled{margin:9px 0 0;font-size:12.5px;color:#d5e3e9;line-height:1.75}
#app.jobs-mode .profession-switch-details>.profession-pick-flow{margin-top:13px}
#app.jobs-mode .profession-switch-details .profession-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#app.jobs-mode .profession-switch-details .profession-choice-card{min-height:190px;padding:11px}
#app.jobs-mode .profession-switch-details .profession-choice-card.selected{padding:10px}
#app.jobs-mode .profession-switch-details .profession-confirm-box{position:static;transform:none;width:100%;max-width:none;box-shadow:none}
@media(max-width:600px){#app.jobs-mode .profession-switch-details .profession-choice-grid{grid-template-columns:1fr}
#app.jobs-mode .profession-switch-details .profession-choice-card{min-height:148px;padding:11px}
#app.jobs-mode .profession-switch-details .profession-choice-card.selected{padding:10px}}
@media(prefers-reduced-motion:reduce){#app.jobs-mode .profession-switch-details>summary{transition:none!important;animation:none!important}}

/* PWA v236: distinguish live employees, ended-by-date contracts and employer action. */
#app.business-mode .team-past-contracts{margin:11px 0 16px;padding:11px;border:1px solid #c8d6dc47;border-radius:15px;background:#102638}
#app.business-mode .team-past-contracts>summary{cursor:pointer;min-height:42px;padding:7px 9px;font-weight:800;color:#edd5a8}
#app.business-mode .team-past-contracts>summary:focus-visible{outline:2px solid #f2d29c;outline-offset:2px}
#app.business-mode .team-past-contracts>p{font-size:12px;line-height:1.7;color:#cbd9e0;margin:5px 8px 10px}
#app.business-mode .team-past-contracts .owner-staff-card{opacity:.95}
#app.business-mode .owner-staff-action{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#app.business-mode .owner-staff-action button{min-height:40px;white-space:normal}
@media(max-width:430px){#app.business-mode .owner-staff-action{width:100%}#app.business-mode .owner-staff-action button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){#app.business-mode .team-past-contracts{transition:none!important;animation:none!important}}


/* Football-first City Zero v237. Legacy work routes are still available by choice. */
#app.home-mode .football-portal{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:23px;border:1px solid #6bcbad94;border-radius:20px;background:radial-gradient(circle at 95% 0%,#2a866638,transparent 45%),linear-gradient(120deg,#133e43,#102535);box-shadow:0 16px 34px #001c2780}
#app.home-mode .football-portal-copy{min-width:0}
#app.home-mode .football-portal-copy>span{display:block;font-size:12px;font-weight:800;color:#94edc0}
#app.home-mode .football-portal-copy h2{margin:7px 0;font-size:clamp(19px,3vw,27px);line-height:1.35;color:#fff7d9}
#app.home-mode .football-portal-copy p{margin:0 0 8px;font-size:13px;color:#d7e5e6;line-height:1.65}
#app.home-mode .football-portal-copy small{font-size:11px;color:#b8c7d1}
#app.home-mode .football-portal-cta{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;flex:none;padding:13px 19px;border-radius:13px;text-decoration:none;background:#99f0c0;color:#082d27;font-size:14px;font-weight:900}
#app.home-mode .football-portal-cta:focus-visible,.launch-football-entry:focus-visible{outline:3px solid #f4d48e;outline-offset:4px}
#app .launch-football-entry{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;min-height:67px;justify-content:center;padding:12px 16px;margin:8px auto 18px;max-width:560px;border-radius:17px;background:linear-gradient(120deg,#1a694f,#15506a);border:1px solid #b3e6ba;text-decoration:none;color:#f8f5df;box-shadow:0 10px 30px #06141f70}
#app .launch-football-entry>span{font-size:17px;font-weight:900}
#app .launch-football-entry small{font-size:11px;color:#d7f2df}
#app .city-directory-football{border:1px solid #6dcca196;background:#12504154}
@media(max-width:600px){#app.home-mode .football-portal{flex-direction:column;align-items:stretch;padding:15px;gap:12px}#app.home-mode .football-portal-cta{width:100%}#app.home-mode .football-portal-copy h2{font-size:21px}#app .launch-football-entry{margin-inline:10px}}
@media(prefers-reduced-motion:reduce){#app.home-mode .football-portal-cta,#app .launch-football-entry{animation:none!important;transition:none!important}}
