/* All existing desktop layouts remain controlled by the page's original styles. */
.gz-mobile-native { display:none; }
@media screen and (max-width:767px) {
  body[data-gz-mobile-page] { --gz-gutter:8px; }
  .gz-mobile-header {position:sticky!important;top:4px!important;z-index:45;width:calc(100% - 16px)!important;max-width:1280px;margin:4px auto 12px!important;padding:0!important;}
  .gz-mobile-native {display:block;}
  .gz-mobile-original {display:none!important;}
  .gz-mobile-bar {box-sizing:border-box;display:flex;align-items:center;gap:8px;height:54px;padding:5px 8px;background:rgba(255,255,255,.98);border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 2px 8px #0f172a08;color:#1e293b;}
  .gz-menu-toggle,.gz-mobile-auth button {border:0;background:transparent;color:#334155;cursor:pointer;min-height:42px;min-width:42px;border-radius:10px;}
  .gz-menu-toggle {font-size:25px;line-height:1;}
  .gz-mobile-brand {display:flex;align-items:center;min-width:0;height:38px;margin-right:auto;font-weight:800;font-size:15px;}
  .gz-mobile-brand img {width:102px;height:36px;object-fit:contain;}
  .gz-mobile-auth {font-size:12px;font-weight:700;flex-shrink:0;max-width:100px;}
  .gz-mobile-auth span {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90px;}
  .gz-menu-overlay {position:fixed;inset:0;z-index:2147483640;color:#1e293b;font-size:15px;line-height:1.5;font-family:inherit;}
  .gz-menu-shade {position:absolute;inset:0;background:#0f172a66;}
  .gz-menu-drawer {position:absolute;top:0;bottom:0;left:0;width:min(320px,87vw);overflow-y:auto;overscroll-behavior:contain;background:white;padding:16px 16px max(24px,env(safe-area-inset-bottom));box-sizing:border-box;box-shadow:8px 0 30px #0002;}
  .gz-menu-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e2e8f0;padding-bottom:12px;}
  .gz-menu-heading button,.gz-menu-actions button {cursor:pointer;border:0;background:#f1f5f9;color:#334155;border-radius:10px;padding:10px 12px;min-height:44px;}
  .gz-menu-drawer a,.gz-menu-actions button {display:block;text-decoration:none;font-size:15px;line-height:1.5;font-weight:600;padding:11px 12px;color:#334155;overflow-wrap:anywhere;}
  .gz-menu-group {font-size:12px;font-weight:700;color:#64748b;margin:18px 12px 6px;}
  .gz-menu-actions {border-top:1px solid #e2e8f0;margin-top:16px;padding-top:12px;display:grid;gap:6px;}
  .gz-menu-drawer :focus-visible,.gz-mobile-header :focus-visible {outline:3px solid #6366f1;outline-offset:2px;}
  body[data-gz-mobile-page] .max-w-7xl {padding-left:8px!important;padding-right:8px!important;}
  body[data-gz-mobile-page] .max-w-7xl .max-w-7xl {padding-left:0!important;padding-right:0!important;}
  body[data-gz-mobile-page] #gongzone-common-footer > div {padding-left:8px!important;padding-right:8px!important;}
  body[data-gz-mobile-page] main :is(.flex,.grid)>* {min-width:0;}
  body[data-gz-mobile-page] main :is(h1,h2,h3,h4,p,li,dd,label) {overflow-wrap:anywhere;word-break:normal;}
  body[data-gz-mobile-page] main :is(.p-8,.p-10,.p-12) {padding:18px!important;}
  body[data-gz-mobile-page] main .p-6 {padding:16px!important;}
  body[data-gz-mobile-page] main :is(.px-8,.px-10,.px-12) {padding-left:16px!important;padding-right:16px!important;}
  body[data-gz-mobile-page] main :is(h1,h2).text-4xl,body[data-gz-mobile-page] main :is(h1,h2).text-5xl,body[data-gz-mobile-page] main :is(h1,h2).text-6xl {font-size:28px!important;line-height:1.3!important;letter-spacing:-.025em;}
  body[data-gz-mobile-page] main p.text-lg {font-size:16px;line-height:1.7;}
  body[data-gz-mobile-page] .pixel-title-row {flex-wrap:wrap;gap:12px;}
  body[data-gz-mobile-page] .pixel-title-row>div:first-child {flex:1 1 100%;}
  body[data-gz-mobile-page] .pixel-title-row h1 {font-size:27px;line-height:1.3;}
  body[data-gz-mobile-page] .contact-page-frame {padding-left:8px!important;padding-right:8px!important;}
  .contact-page-frame .gz-mobile-header {width:100%!important;}
  body[data-gz-mobile-page] #react-header {position:sticky;top:0;z-index:45;padding-top:0;}
  body[data-gz-mobile-page] #react-header .gz-mobile-header {position:relative!important;}
  body[data-gz-mobile-page] #mbr-hero-title {font-size:28px!important;line-height:1.35!important;}
  body[data-gz-mobile-page] #mbr-container :is(.p-8,.p-10) {padding:18px!important;}
  body[data-gz-mobile-page] .dg-sustainable-top-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body[data-gz-mobile-page] .gz-mobile-stats {gap:8px!important;}
  body[data-gz-mobile-page] .gz-mobile-stats>div {padding:12px 6px!important;}
  body[data-gz-mobile-page] .gz-mobile-stats .text-3xl {font-size:22px!important;}
  body[data-gz-mobile-page] .gz-tile-allocation {flex-direction:column!important;gap:16px!important;}
  body[data-gz-mobile-page] .gz-tile-allocation>.flex-1 {border-left:0!important;padding-left:0!important;width:100%;}
  body[data-gz-mobile-page] [class~="min-w-[320px]"] {min-width:0!important;}
  body[data-gz-mobile-page="map"] .activity-map-canvas {min-height:360px!important;height:60vh!important;height:60svh!important;}
  body[data-gz-mobile-page^="beneficiary"] :is(.container,.page-shell,.main-container) {width:100%;padding-left:8px!important;padding-right:8px!important;box-sizing:border-box;}
  body[data-gz-mobile-page^="beneficiary"] :is(.campaign-title,.hero-title) {font-size:27px;line-height:1.35;overflow-wrap:anywhere;}
  body[data-gz-mobile-page="cms_apply"] {padding-left:8px!important;padding-right:8px!important;}
  body[data-gz-mobile-page="lecture_recorder"] .app-header {flex-wrap:wrap;gap:12px;padding:12px;}
  body[data-gz-mobile-page="lecture_recorder"] .mode-nav {display:flex;flex-wrap:wrap;gap:8px;}
  body[data-gz-mobile-page="pixelmoa_slides"] .deck-top {padding:12px;gap:10px;}
  body[data-gz-mobile-page="pixelmoa_slides"] .deck-tools {flex-wrap:wrap;}
  body[data-gz-mobile-page="video"] header {gap:8px;flex-wrap:wrap;padding:12px;}
}
@media screen and (max-width:767px) {
  body[data-gz-mobile-page] nav.gz-mobile-header.gz-site-header-shell {width:calc(100% - 16px)!important;padding:0!important;top:4px!important;margin:4px auto 12px!important;}
  body[data-gz-mobile-page] .contact-page-frame nav.gz-mobile-header.gz-site-header-shell {width:100%!important;}
  body[data-gz-mobile-page] .gz-mobile-header.gz-site-header-shell>div:first-child {border-radius:16px!important;}
  body[data-gz-mobile-page] .gz-unified-hero .gz-hero-title {font-size:28px!important;line-height:1.35!important;}
  body[data-gz-mobile-page] .gz-static-hero {padding:20px 16px!important;}
  body[data-gz-mobile-page] .gz-unified-hero-card {padding:18px!important;}
  body[data-gz-mobile-page] main p:empty {display:none;}
  body[data-gz-mobile-page^="beneficiary"] .ben-container {padding-left:8px!important;padding-right:8px!important;}
  body[data-gz-mobile-page^="beneficiary"] :is(.page-title,.section-title) {overflow-wrap:anywhere;line-height:1.35;}
  body[data-gz-mobile-page^="beneficiary"] .page-title {font-size:28px;}
  body[data-gz-mobile-page^="beneficiary"] .flash {width:calc(100% - 16px);}
  body[data-gz-mobile-page] .dg-sustainable-top-card {height:auto!important;min-height:198px!important;max-height:none!important;grid-template-rows:100px minmax(98px,auto)!important;}
  body[data-gz-mobile-page] .dg-sustainable-top-logo-pane {height:100px!important;min-height:100px!important;max-height:100px!important;padding:12px!important;}
  body[data-gz-mobile-page] .dg-sustainable-top-info-pane {height:auto!important;min-height:98px!important;max-height:none!important;padding:12px!important;}
  body[data-gz-mobile-page] .dg-sustainable-top-info-pane h3 {font-size:14px;line-height:1.4;}
  body[data-gz-mobile-page="farm_report"] header>.max-w-7xl {gap:6px!important;}
}

@media screen and (max-width:767px) {
 body[data-gz-mobile-page] main :is(h1,h2,h3,h4) {word-break:keep-all;overflow-wrap:anywhere;}
 body[data-gz-mobile-page] .gz-mobile-categories {grid-template-columns:repeat(2,minmax(0,1fr));}
 body[data-gz-mobile-page] .fixed.inset-0.p-4 {padding:12px!important;}
 body[data-gz-mobile-page] .fixed.inset-0 > :is(.p-8,.p-10,.p-12) {padding:16px!important;}
 body[data-gz-mobile-page] .fixed.inset-0 .gz-tile-allocation {flex-direction:column!important;}
 body[data-gz-mobile-page] .fixed.inset-0 .gz-tile-allocation>.flex-1 {border-left:0!important;padding-left:0!important;}
 body[data-gz-mobile-page] #gz-action-dock {left:8px;right:8px;top:auto;bottom:8px;transform:none;flex-direction:row;justify-content:space-between;gap:5px;padding:6px;border-radius:18px;}
 body[data-gz-mobile-page] #gz-action-dock :is(a,button) {width:auto;flex:1;min-height:52px;border-radius:13px;font-size:9px;}
 body[data-gz-mobile-page]:has(#gz-action-dock) {padding-bottom:74px!important;}
}
@media screen and (max-width:767px) {
 body[data-gz-mobile-page] .max-w-7xl > nav.gz-mobile-header,
 body[data-gz-mobile-page] .max-w-7xl > nav.gz-mobile-header.gz-site-header-shell {width:100%!important;}
 body[data-gz-mobile-page="cms_apply"] .cms-card {padding:16px!important;}
 body[data-gz-mobile-page="setting"] [data-gz-settings-panel] :is(.p-8,.p-10),
 body[data-gz-mobile-page="setting_m"] #root .p-8 {padding:16px!important;}
 body[data-gz-mobile-page="notice"] .notice-server-shell {width:calc(100% - 16px);margin:8px auto;padding-left:16px!important;padding-right:16px!important;box-sizing:border-box;}
 body[data-gz-mobile-page="notice"] .notice-public-info {padding:16px!important;}
}
.gz-settings-mobile-switch {display:none;}
@media screen and (max-width:767px) {
 body[data-gz-mobile-page="setting"] [data-gz-settings-menu] {display:none;}
 body[data-gz-mobile-page="setting"] .gz-settings-mobile-switch {display:flex;flex-direction:column;gap:6px;padding:12px;border-bottom:1px solid #e2e8f0;background:#f8fafc;font-size:12px;font-weight:700;}
 .gz-settings-mobile-switch select {width:100%;min-height:46px;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff;color:#1e293b;font-size:16px;}
 body[data-gz-mobile-page^="setting"] [data-gz-settings-content] {padding:12px!important;min-width:0;overflow:visible!important;}
 body[data-gz-mobile-page^="setting"] [data-gz-settings-content] :is(h2,h3) {font-size:21px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere;}
 body[data-gz-mobile-page^="setting"] [data-gz-settings-content] :is(input,select,textarea) {max-width:100%;min-width:0;font-size:16px;}
 body[data-gz-mobile-page^="setting"] [data-gz-settings-content] :is(button,input,select) {min-height:40px;}
 body[data-gz-mobile-page^="setting"] .gz-settings-cards {display:block;width:100%!important;min-width:0!important;border:0;}
 .gz-settings-cards thead,.gz-settings-cards tbody {display:block;}
 .gz-settings-cards thead>tr {display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:#f8fafc;}
 .gz-settings-cards thead th {display:none;}
 .gz-settings-cards thead th[data-sort-control],.gz-settings-cards thead th:has(input) {display:block;width:auto;min-width:0!important;padding:8px!important;border:1px solid #e2e8f0;border-radius:8px;font-size:12px;}
 .gz-settings-cards tbody>tr {display:block;border:1px solid #e2e8f0;border-radius:14px;margin:10px 0;padding:10px;background:white;}
 .gz-settings-cards tbody td {display:grid;grid-template-columns:76px minmax(0,1fr);gap:4px 10px;width:100%!important;min-width:0!important;padding:7px 4px!important;text-align:left;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;}
 .gz-settings-cards tbody td:before {content:attr(data-label);font-size:11px;color:#64748b;font-weight:600;grid-column:1;grid-row:1 / span 10;}
 .gz-settings-cards tbody td>* {grid-column:2;min-width:0;max-width:100%;}
 .gz-settings-cards tbody td[colspan] {display:block;}
 .gz-settings-cards tbody td[colspan]:before {display:none;}
 .gz-settings-cards tbody td :is(.truncate,.line-clamp-1,.line-clamp-2) {white-space:normal;overflow:visible;display:block;-webkit-line-clamp:unset;}
 body[data-gz-mobile-page^="setting"] .fixed:has(form) {width:calc(100vw - 16px)!important;max-height:90dvh!important;padding:16px!important;border-radius:16px!important;}
 body[data-gz-mobile-page^="setting"] [class*="group-hover:opacity-100"] {opacity:1!important;transform:none!important;}
}
