/* Frontend vNext P13 — global production hardening. Presentation/accessibility only. */
html,body{max-width:100%;overflow-x:clip}img,svg,video,canvas{max-width:100%}:focus-visible{outline:3px solid var(--penqo-color-focus-ring,#007B45);outline-offset:3px;border-radius:6px}.production-network-status{position:fixed;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:120;max-width:min(92vw,520px);padding:8px 12px;border-radius:999px;background:rgba(26,42,47,.92);color:var(--penqo-color-text-inverse,#FFFFFF);font-size:12px;font-weight:700;box-shadow:0 8px 24px rgba(16,42,67,.2);pointer-events:none}.production-network-status[data-state="online"]{background:rgba(8,123,107,.94)}.production-network-status[hidden]{display:none!important}@media(min-width:901px){.production-network-status{bottom:20px}}@media(pointer:coarse){.mobile-bottom-nav button,.pond-mobile-dock button,.daily-quick button,.geo-layer{min-height:44px}}@media(max-width:760px){.content{font-size:15px;line-height:1.45}.content p,.content li,.content td,.content th,.content label{line-height:1.45}.content small,.content .muted{font-size:12px!important;line-height:1.4}.content .eyebrow{font-size:11px!important;line-height:1.3}.content button,.content input,.content select,.content textarea{font-size:14px!important}.content .status,.content .badge{font-size:11px!important}.primary-mobile-toolbar small,.global-mobile-top small{font-size:11px!important}.mobile-bottom-nav button,.pond-mobile-dock button{font-size:11px!important}.daily-kpis span,.daily-kpis small,.sd-kpis span,.pr-kpis span,.exec-kpis span,.exec-kpis small{font-size:11px!important}.medicine-workspace .medicine-mobile-meta,.medicine-workspace .medicine-mobile-usage>small,.medicine-workspace .medicine-mobile-cost small,.medicine-workspace .mobile-table-hint{font-size:10.5px!important}.water-workspace .pond-kpi-title,.water-workspace .pond-kpi-sub,.water-workspace .reference{font-size:11px!important}.growth-workspace tbody td::before{font-size:10.5px!important}}@media(max-width:760px){html body #app .primary-mobile-pill{font-size:11.5px!important;line-height:1.35}html body #app .gm-dashboard .gm-dashboard-hero .gm-dashboard-mobile-date,html body #app .gm-dashboard .gm-dashboard-kicker,html body #app .gm-dashboard .gm-dashboard-metrics .gm-metric-label,html body #app .gm-dashboard .gm-dashboard-metrics .gm-metric strong small{font-size:11px!important;line-height:1.35}html body #app .gm-dashboard .muted,html body #app .gm-dashboard-note{font-size:12px!important;line-height:1.4}html body #app .gm-dashboard td,html body #app .gm-dashboard th,html body #app .gm-dashboard .gm-pond-name{font-size:12px!important}html body #app .gm-farm-overview .gm-holy-pill,html body #app .gm-farm-overview .gm-farm-network .farm-card .farm-mini-stats span,html body #app .gm-farm-overview .gm-farm-network .farm-card .weather-date,html body #app .gm-farm-overview .gm-farm-network .farm-card .ssl-weather-day small{font-size:11.5px!important;line-height:1.35}html body #app .gm-farm-overview .gm-farm-summary-copy p,html body #app .gm-farm-overview .gm-farm-network .farm-card p,html body #app .gm-farm-overview .gm-farm-note{font-size:12px!important;line-height:1.4}html body #app .gm-farm-overview button{font-size:12px!important}html body #app .inventory-mobile-toolbar small,html body #app .inv-mobile-title-copy .eyebrow{font-size:11.5px!important}html body #app .inv-mobile-top-side .primary,html body #app .inv-tabs button{font-size:12px!important}html body #app .admin-finance-grid dt,html body #app .admin-finance-grid small,html body #app .admin-finance-grid .eyebrow{font-size:11.5px!important;line-height:1.35}html body #app .admin-finance-grid td,html body #app .admin-finance-grid th{font-size:12px!important}html body #app .admin-primary-page small,html body #app .admin-mobile-visual small,html body #app .admin-section-heading .eyebrow,html body #app .admin-section-heading .muted,html body #app .executive-chart-legend small{font-size:11.5px!important;line-height:1.35}html body #app .admin-month-row dt,html body #app .admin-month-row dd,html body #app .admin-month-row>b,html body #app .executive-crop-kicker,html body #app .executive-pond-group>b,html body #app .executive-crop-card-head small,html body #app .executive-crop-species,html body #app .executive-crop-hatchery,html body #app .executive-crop-metrics b{font-size:11.5px!important;line-height:1.35}html body #app .executive-crop-card-head>b,html body #app .executive-crop-card-head>strong{font-size:12px!important}}/* Mobile readability convergence — compact by spacing, not by shrinking operational text. */
@media(max-width:760px){
  .content{font-size:16px;line-height:1.45}
  .content p,.content li,.content td,.content th,.content label{line-height:1.45}
  .content small,.content .muted{font-size:13px!important;line-height:1.4}
  .content .eyebrow{font-size:12px!important;line-height:1.35}
  .content button{font-size:15px!important}
  .content input,.content select,.content textarea{font-size:16px!important}
  .content .status,.content .badge{font-size:12px!important}
  .primary-mobile-toolbar small,.global-mobile-top small{font-size:12px!important}
  .mobile-bottom-nav button,.pond-mobile-dock button{font-size:12px!important}
  .daily-kpis span,.daily-kpis small,.sd-kpis span,.pr-kpis span,.exec-kpis span,.exec-kpis small{font-size:12px!important}
  .medicine-workspace .medicine-mobile-meta,.medicine-workspace .medicine-mobile-usage>small,.medicine-workspace .medicine-mobile-cost small,.medicine-workspace .mobile-table-hint{font-size:12px!important}
  .water-workspace .pond-kpi-title,.water-workspace .pond-kpi-sub,.water-workspace .reference{font-size:12px!important}
  .growth-workspace tbody td::before{font-size:11.5px!important}
  html body #app .primary-mobile-pill{font-size:12.5px!important;line-height:1.35}
  html body #app .gm-dashboard .gm-dashboard-hero .gm-dashboard-mobile-date,
  html body #app .gm-dashboard .gm-dashboard-kicker,
  html body #app .gm-dashboard .gm-dashboard-metrics .gm-metric-label,
  html body #app .gm-dashboard .gm-dashboard-metrics .gm-metric strong small{font-size:12px!important;line-height:1.35}
  html body #app .gm-dashboard .muted,html body #app .gm-dashboard-note{font-size:13px!important;line-height:1.4}
  html body #app .gm-dashboard td,html body #app .gm-dashboard th,html body #app .gm-dashboard .gm-pond-name{font-size:13px!important}
  html body #app .gm-farm-overview .gm-holy-pill,
  html body #app .gm-farm-overview .gm-farm-network .farm-card .farm-mini-stats span,
  html body #app .gm-farm-overview .gm-farm-network .farm-card .weather-date,
  html body #app .gm-farm-overview .gm-farm-network .farm-card .ssl-weather-day small{font-size:12.5px!important;line-height:1.35}
  html body #app .gm-farm-overview .gm-farm-summary-copy p,
  html body #app .gm-farm-overview .gm-farm-network .farm-card p,
  html body #app .gm-farm-overview .gm-farm-note{font-size:13px!important;line-height:1.4}
  html body #app .gm-farm-overview button{font-size:14px!important}
  html body #app .inventory-mobile-toolbar small,
  html body #app .inv-mobile-title-copy .eyebrow{font-size:12.5px!important}
  html body #app .inv-mobile-top-side .primary,html body #app .inv-tabs button{font-size:13px!important}
  html body #app .admin-finance-grid dt,
  html body #app .admin-finance-grid small,
  html body #app .admin-finance-grid .eyebrow{font-size:12.5px!important;line-height:1.35}
  html body #app .admin-finance-grid td,html body #app .admin-finance-grid th{font-size:13px!important}
  html body #app .admin-primary-page small,
  html body #app .admin-mobile-visual small,
  html body #app .admin-section-heading .eyebrow,
  html body #app .admin-section-heading .muted,
  html body #app .executive-chart-legend small{font-size:12.5px!important;line-height:1.35}
  html body #app .admin-month-row dt,
  html body #app .admin-month-row dd,
  html body #app .admin-month-row>b,
  html body #app .executive-crop-kicker,
  html body #app .executive-pond-group>b,
  html body #app .executive-crop-card-head small,
  html body #app .executive-crop-species,
  html body #app .executive-crop-hatchery,
  html body #app .executive-crop-metrics b{font-size:12.5px!important;line-height:1.35}
  html body #app .executive-crop-card-head>b,html body #app .executive-crop-card-head>strong{font-size:13px!important}
  html body #app .pond-kpi-row,
  html body #app .feed-workspace .pond-kpi-row,
  html body #app .growth-workspace .pond-kpi-row,
  html body #app .water-workspace .pond-kpi-row,
  html body #app .medicine-workspace .pond-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body #app .pond-kpi-card,
  html body #app .feed-workspace .pond-kpi-card,
  html body #app .growth-workspace .pond-kpi-card,
  html body #app .water-workspace .pond-kpi-card,
  html body #app .medicine-workspace .pond-kpi-card{min-height:78px!important;padding:9px 10px!important}
  html body #app .pond-kpi-title,
  html body #app .feed-workspace .pond-kpi-title,
  html body #app .growth-workspace .pond-kpi-title,
  html body #app .water-workspace .pond-kpi-title,
  html body #app .medicine-workspace .pond-kpi-title{font-size:12px!important;line-height:1.35!important}
  html body #app .pond-kpi-val,
  html body #app .feed-workspace .pond-kpi-val,
  html body #app .growth-workspace .pond-kpi-val,
  html body #app .water-workspace .pond-kpi-val,
  html body #app .medicine-workspace .pond-kpi-val{font-size:18px!important;line-height:1.15!important}
  html body #app .pond-kpi-sub,
  html body #app .feed-workspace .pond-kpi-sub,
  html body #app .growth-workspace .pond-kpi-sub,
  html body #app .water-workspace .pond-kpi-sub,
  html body #app .medicine-workspace .pond-kpi-sub{font-size:11.5px!important;line-height:1.35!important}
  html body #app .growth-workspace .pond-module-title,
  html body #app .water-workspace .pond-module-title,
  html body #app .medicine-workspace .pond-module-title{font-size:20px!important}
  html body #app .growth-workspace .pond-module-desc,
  html body #app .water-workspace .pond-module-desc,
  html body #app .medicine-workspace .pond-module-desc{font-size:13px!important;line-height:1.4!important}
  html body #app .growth-workspace .pond-module-kicker,
  html body #app .water-workspace .pond-module-kicker,
  html body #app .medicine-workspace .pond-module-kicker{font-size:11.5px!important}
}
.modal,.inv-modal-overlay,.farm-water-transfer-modal{overscroll-behavior:contain}
.modal-card,.inv-modal-box,.farm-water-transfer-card{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:24px 140px}
@media(max-width:760px){
  .modal,.inv-modal-overlay,.farm-water-transfer-modal,.sales-v2-overlay,.sales-v2-nested-overlay{padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))!important;overflow-x:hidden!important}
  .modal-card,.inv-modal-box,.farm-water-transfer-card,.sales-v2-sheet,.sales-v2-nested{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px)!important;max-width:calc(100vw - 16px)!important;width:calc(100vw - 16px)!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-padding-bottom:160px;box-sizing:border-box!important}
  .modal-card *,.inv-modal-box *,.farm-water-transfer-card *,.sales-v2-sheet *,.sales-v2-nested *{box-sizing:border-box;min-width:0;max-width:100%}
  .modal-card input,.modal-card select,.modal-card textarea,.modal-card button,.inv-modal-box input,.inv-modal-box select,.inv-modal-box textarea,.inv-modal-box button,.farm-water-transfer-card input,.farm-water-transfer-card select,.farm-water-transfer-card textarea,.farm-water-transfer-card button,.sales-v2-sheet input,.sales-v2-sheet select,.sales-v2-sheet textarea,.sales-v2-sheet button,.sales-v2-nested input,.sales-v2-nested select,.sales-v2-nested textarea,.sales-v2-nested button{max-width:100%!important;box-sizing:border-box!important}
  .modal-card .form-grid,.modal-card .pond-form-grid,.inv-modal-box .inv-form-grid,.sales-v2-form,.sales-v2-line-grid,.sales-v2-nested-form{min-width:0!important;max-width:100%!important}
  .modal-card:has(.stable-feed-mix):not(:has(.ssl-form-shell)),.modal-card:has(.stable-medicine-mix):not(:has(.ssl-form-shell)),.modal-card:has(.water-entry-sections):not(:has(.ssl-form-shell)),.sale-entry-modal{overflow-y:auto!important;overflow-x:clip!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
  html body #invMovementModal #invMovementModalInner{overflow-y:auto!important;overflow-x:clip!important;overscroll-behavior-x:none!important;touch-action:pan-y!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box!important}
  html body #invMovementModal #invMovementModalInner *{min-width:0;max-width:100%;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
