/* CGS 0.3: compact mobile system derived from the supplied CGS designs. */
@font-face{font-family:CGS;src:url('assets/fonts/Poppins-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:CGS;src:url('assets/fonts/Poppins-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:CGS;src:url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:CGS;src:url('assets/fonts/Poppins-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{color-scheme:light;--green:#28531A;--link:#397126;--vivid:#6CC51C;--pale:#D0ECC7;--paler:#DFF2D9;--surface:#F2F4F7;--ink:#111323;--muted:#465543;--line:#E1E6DF;--red:#9A382B;font-family:CGS,Poppins,Arial,sans-serif;font-synthesis:none;color:var(--ink);background:var(--surface);font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--surface);min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{opacity:1;cursor:default;background:#E6EBE2;color:var(--muted);border-color:#B9C7B1}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:2px}a{color:var(--link);text-decoration:none}img{display:block;max-width:100%;object-fit:cover}svg{max-width:100%}h1,h2,h3,p{margin:0 0 8px;overflow-wrap:break-word;word-break:normal}h1{font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.55px}h2{font-size:18px;font-weight:600;line-height:1.35;letter-spacing:-.25px}h3{font-size:15px;font-weight:600;line-height:1.4}p{font-size:16px;line-height:1.5}small,.small,.meta{font-size:14px;line-height:1.45}.muted,.meta{color:var(--muted)}strong{font-weight:600}ul,ol{padding-left:20px;margin:8px 0 12px}li{margin-bottom:6px}hr,.divider{border:0;border-top:1px solid var(--line);margin:16px 0}
.app-shell{position:relative;max-width:520px;margin:auto;min-height:100dvh;background:var(--surface);padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}.app-shell.no-nav{padding-bottom:24px}.app-header{display:flex;align-items:center;gap:4px;min-height:54px;padding:4px 12px}.app-header>span{flex:1;min-width:0}.header-brand{width:116px;height:auto;object-fit:contain;object-position:left center}.header-role{font-size:14px;color:var(--muted);letter-spacing:.1px}.icon-btn,.icon-button{border:0;background:transparent;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;position:relative;flex:none;color:var(--green)}.icon-button[aria-pressed=true]{background:var(--pale)}.icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;line-height:1;color:currentColor;flex:none}.icon svg{width:24px;height:24px}.main-content{padding:4px 16px 20px;min-width:0}.main-content>*:last-child{margin-bottom:0}.page-heading{margin:4px 0 16px}.page-heading h1{margin-bottom:5px}.page-heading p{color:var(--muted);font-size:16px;margin:0;max-width:42ch}.screen-id{font-size:14px;color:var(--muted)}
.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;max-width:520px;margin:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:auto;min-height:calc(80px + env(safe-area-inset-bottom,0px));padding:5px 3px calc(7px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line)}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:64px;padding:0 2px;border:0;background:none;color:var(--green);font-size:12px;font-weight:500;white-space:normal;line-height:1.25}.bottom-nav .nav-icon{display:flex;align-items:center;justify-content:center;width:36px;height:32px;border-radius:18px}.bottom-nav .active{font-weight:600}.bottom-nav .active .nav-icon{background:var(--pale)}.bottom-nav svg{width:24px;height:24px}
.btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;border:1px solid var(--green);border-radius:24px;padding:10px 16px;background:var(--green);color:white;line-height:1.35;font-size:15px;font-weight:500;text-align:center;margin:8px 0 0;opacity:1;overflow-wrap:normal;word-break:normal;text-decoration:none}.btn-secondary{background:transparent;color:var(--green)}.btn-danger{background:var(--red);border-color:var(--red)}.btn-secondary.btn-danger{background:transparent;color:var(--red)}.btn.compact{width:auto;padding:8px 12px;margin:0;min-height:44px}.btn .icon{color:inherit}.text-link{background:none;border:0;padding:10px 0;min-height:44px;color:var(--link);font-size:14px;font-weight:500;line-height:1.4;text-align:left}.row,.actions,.action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.row>.btn,.actions>.btn,.action-row>.btn{flex:1 1 130px;min-width:0;margin-top:0}.row,.actions,.action-row{margin:8px 0 12px}.between{justify-content:space-between}.row>*,.actions>*,.action-row>*{min-width:0}.grid,.two-col,.form-grid,.form-row,.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field-grid .field,.form-row .field{margin-bottom:0}.field-grid,.form-row{margin-bottom:12px}.card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;margin:0 0 12px;min-width:0}.card>:last-child{margin-bottom:0}.card>.btn:first-child{margin-top:0}.card.pale,.pale{background:var(--pale)}.card h2+.muted{margin-top:-3px}.card .card{border-radius:10px;padding:10px;background:#FAFCF8}
.field{display:block;min-width:0;margin:0 0 12px}.field>span{display:block;margin-bottom:5px;font-size:15px;font-weight:500;line-height:1.4}.field input,.field select,.field textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #B9C7B1;border-radius:8px;color:var(--ink);background:#fff;font-size:16px;line-height:1.5}.field textarea{min-height:84px;resize:vertical}.field input[readonly]{background:#F0F3ED}.field input[type=file]{font-size:14px;padding:8px}.field input[type=number]{padding-right:6px}.check-row,.check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;margin:0;font-size:14px;line-height:1.45}.check-row input,.check input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--green)}.check-row>span,.check>span{flex:1;min-width:0}fieldset{padding:10px 12px;margin:0 0 12px;border:1px solid var(--line);border-radius:10px;min-width:0}legend{font-size:14px;font-weight:500;padding:0 5px}.search-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}.search-row .field{flex:1;margin:0}.search-row .btn{flex:none;width:auto;margin:0;padding:10px 14px}.segmented{display:flex;gap:4px;padding:4px;border-radius:24px;background:#E7EDDF;margin:0 0 12px}.segmented button{flex:1;min-width:0;min-height:44px;border:0;border-radius:22px;background:transparent;padding:8px;font-size:14px;line-height:1.25}.segmented .active{background:var(--green);color:#fff}.filter-options,.help-details,.disclosure{border:0;border-radius:10px;background:#EAF0E5;padding:0 12px;margin:10px 0 12px}.filter-options>summary,.help-details>summary,.disclosure>summary{display:list-item;min-height:44px;padding:12px 0;margin:0;color:var(--link);font-size:14px;font-weight:500;line-height:1.45;cursor:pointer}.filter-options[open],.help-details[open],.disclosure[open]{padding-bottom:12px}.help-details p,.disclosure p{font-size:14px;color:var(--muted)}details{margin:10px 0}summary{cursor:pointer;min-height:44px;padding:11px 0;font-size:14px;font-weight:500;color:var(--green)}details>summary:only-child{margin:0}
.notice{background:var(--paler);color:#284922;border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:14px;line-height:1.5;overflow-wrap:break-word}.notice.warning{background:#FFF1DF;color:#794723}.badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;border-radius:16px;background:var(--pale);color:var(--green);font-size:14px;font-weight:500;line-height:1.4;padding:4px 8px;text-transform:none;vertical-align:middle;overflow-wrap:normal}.empty{text-align:center;padding:24px 12px}.empty h2{font-size:18px}.empty p{max-width:32ch;margin:0 auto 12px;color:var(--muted)}.empty-mark{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--pale);color:var(--green);margin-bottom:12px}.summary{margin:8px 0 12px}.summary>div,.detail-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.45}.summary dt,.detail-row>span{color:var(--muted);flex:1;min-width:0}.summary dd{margin:0;max-width:60%;text-align:right;font-weight:500;overflow-wrap:break-word}.detail-row>strong{max-width:60%;text-align:right;overflow-wrap:break-word}.summary>div:last-child,.detail-row:last-child{border-bottom:0}.compact-summary{margin:0}.list-row,.list-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;min-height:52px;border-bottom:1px solid var(--line);font-size:14px}.list-row>*,.list-line>*{min-width:0}.list-row>.btn,.list-line>.btn{width:auto;margin:0;flex:none;padding:8px 12px}.list-row>.field{margin:0;max-width:100px}.list-row:last-child{border:0}.list-row h3,.list-row p{margin-bottom:3px}.thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:none}
.product-grid,.listing-grid,.plant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card,.listing-card{padding:0;border-radius:14px;overflow:hidden;background:white;min-width:0}.product-image-link{display:block;width:100%;padding:0;border:0;background:transparent}.product-image-link img,.produce-photo,.listing-card img{display:block;width:100%;height:136px;object-fit:cover;filter:none;opacity:1}.product-card .card-body,.listing-card .body{padding:10px}.product-card h3{font-size:16px;line-height:1.3;margin-bottom:5px}.product-card p{margin-bottom:5px;font-size:14px}.product-card .actions{margin:8px 0 0;gap:4px;flex-wrap:nowrap}.product-card .actions>.btn{flex:1;min-width:0;padding:8px 9px;font-size:14px}.product-card .icon-button{width:44px;min-width:44px;height:44px;font-size:22px}.product-meta{color:var(--muted);font-size:14px;line-height:1.45}.product-price{color:var(--green);font-size:15px;font-weight:600}.product-price small{font-size:14px;font-weight:400}.product-card .badge{font-size:14px}.card-body{padding:12px}.hero-photo,.hero-image,.listing-hero,.produce-image{display:block;width:100%;max-height:260px;height:220px;object-fit:cover;border-radius:14px;margin:0 0 12px;filter:none;opacity:1}.photo-preview,.attachment-preview{width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:8px 0 12px}.request-item{display:flex;align-items:center;gap:12px;padding:12px;background:white;border:1px solid var(--line);border-radius:12px;margin:0 0 12px}.request-item-photo{width:68px;height:68px;object-fit:cover;border-radius:10px;flex:none}.request-item-body{flex:1;min-width:0}.request-item h2,.request-item h3{font-size:16px;margin-bottom:4px}.request-item p{margin-bottom:3px;font-size:14px}.flow-step{color:var(--link);font-size:14px;font-weight:500;margin-bottom:6px}.timeline{list-style:none;padding:0;margin:12px 0}.timeline li{position:relative;border-left:2px solid var(--pale);padding:0 0 12px 16px;margin:0;font-size:14px}.timeline li:before{content:'';position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--green)}.timeline p{margin:3px 0}.timeline small{color:var(--muted)}
.section-title,.source-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 10px}.section-title h2,.source-section-heading h1,.source-section-heading h2{font-size:22px;margin:0;line-height:1.3}.source-section-heading h3{font-size:18px;margin:0}.section-title>.btn,.source-section-heading>.btn{border:0;background:none;color:var(--link);min-height:44px;width:auto;margin:0;padding:10px 4px;font-size:14px;flex:none}.home-brand{width:200px;max-width:calc(100% - 48px);height:auto;margin:4px 0 4px}.home-brand img{width:100%;height:auto;object-fit:contain;object-position:left center}.home-welcome-text{text-align:center;font-size:14px;font-weight:400;margin:0 0 14px}.home-header{position:absolute;top:8px;right:6px;padding:0;min-height:44px;z-index:3}.home-header>span{display:none}.home-header>[data-go=S18]{display:none}.app-shell[data-screen=C01] .main-content{padding-top:8px}.source-produce-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;margin:0 0 14px}.source-produce-card .product-image-link .source-card-photo{display:block;width:100%;height:210px;border-radius:0;object-fit:cover}.source-card-body{padding:12px 14px}.source-card-body>h2{font-size:26px;font-weight:500;line-height:1.3;margin:4px 0 8px}.source-card-body .source-section-heading{margin:0 0 5px;font-size:14px}.source-card-body .source-section-heading .btn{font-size:14px}.source-card-body p{margin-bottom:5px}.source-card-body>.btn{margin-top:10px}.source-plant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}.source-plant-card,.plant-card{display:block;min-width:0;border:0;border-radius:14px;overflow:hidden;text-align:left;background:var(--pale);padding:0}.source-plant-photo,.plant-photo{display:block;width:100%;height:128px;object-fit:cover}.source-plant-card>strong,.source-plant-card>span{display:block;margin:8px 12px}.source-plant-card>strong{font-size:16px;font-weight:500}.source-plant-card>span{font-size:14px;margin-top:0;margin-bottom:12px}.plant-info,.plant-card .body{padding:10px 12px}.plant-info h2,.plant-info h3,.plant-card h2{font-size:16px}.plant-info p,.plant-card p{font-size:14px;margin:4px 0}.plant-card .btn{border:0;background:transparent;color:var(--green);justify-content:flex-start;padding:8px 0;font-size:14px}.map-frame{position:relative;min-height:240px;border:1px solid #C6D5BD;border-radius:14px;overflow:hidden;background:#DFF2D9}.map-frame svg{display:block;width:100%}.map-controls{display:flex;justify-content:center;gap:8px;margin:8px 0}.map-controls .btn{width:auto;margin:0}.main-content [role=region]>.btn[style*="position:absolute"]{width:auto;min-height:44px;min-width:44px;margin:0}
.settings-list,.account-menu,.grower-settings{display:grid;gap:0;border-radius:14px;background:#fff;border:1px solid var(--line);overflow:hidden;margin:0 0 12px}.settings-list button,.account-menu .menu-row,.grower-settings .btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:50px;padding:13px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);font-size:14px;font-weight:400;text-align:left;line-height:1.4;margin:0}.settings-list button:after,.grower-settings .btn:after{content:'›';font-size:22px;line-height:1;color:var(--green);flex:none}.settings-list button:last-child,.account-menu .menu-row:last-child,.grower-settings .btn:last-child{border-bottom:0}.menu-row .icon{color:var(--green)}.menu-row>span:first-child{flex:1}.kpis,.grower-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.kpi,.grower-stat{padding:12px 9px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}.kpi strong,.grower-stat strong{display:block;font-size:25px;font-weight:600;line-height:1.15;color:var(--green);margin-bottom:5px}.kpi small,.grower-stat small,.grower-stat span{font-size:14px;color:var(--muted)}.grower-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}.grower-shortcuts .btn{min-height:48px;margin:0;padding:10px;border-radius:10px;font-size:14px}.grower-list-row{display:flex;align-items:center;gap:10px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}.grower-list-row img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none;margin:0}.grower-row-main{flex:1;min-width:0}.grower-row-main h2,.grower-row-main h3{font-size:15px;margin:0 0 3px}.grower-row-main p,.grower-row-meta{font-size:14px;color:var(--muted);margin:0 0 3px}.grower-list-row>.btn{width:auto;min-width:44px;min-height:44px;flex:none;margin:0;padding:8px 10px;font-size:14px}.grower-stepper{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--link);margin:0 0 12px}.grower-form .btn[type=submit]{margin-top:12px}.horizontal-cards{display:flex;gap:10px;overflow-x:auto;padding-bottom:8px}.horizontal-cards>*{flex:0 0 160px}
.compact-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-bottom:12px}.compact-filters>.field{margin:0}.compact-filters>.btn{width:auto;margin:0;padding:10px 14px}.compact-filters>.filter-options,.compact-filters>.check-row{grid-column:1/-1}.community-feed{display:grid;gap:12px}.feed-card{padding:0;overflow:hidden}.feed-media{display:block;width:100%;max-height:180px;object-fit:cover}.feed-content{padding:12px}.feed-content h2{font-size:17px;margin-bottom:5px}.item-meta{font-size:14px;color:var(--muted);line-height:1.4;display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 8px}.text-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:14px;line-height:1.5}.inbox-list{border-radius:14px;overflow:hidden;background:white;border:1px solid var(--line)}.inbox-row{display:flex;align-items:center;gap:10px;width:100%;min-height:82px;padding:12px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left}.inbox-row:last-child{border-bottom:0}.member-avatar{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--pale);color:var(--green);font-size:18px;font-weight:500;flex:none;object-fit:cover}.inbox-main{flex:1;min-width:0}.inbox-main h2,.inbox-main h3,.inbox-main strong{font-size:14px;margin:0 0 3px}.inbox-preview{font-size:14px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}.inbox-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:none;font-size:14px;color:var(--muted)}.unread-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--vivid)}.icon-btn>.unread-dot{position:absolute;right:9px;top:9px}.conversation-context{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:0 0 12px;background:#fff;border:1px solid var(--line);border-radius:12px}.conversation-context img{width:44px;height:44px;border-radius:8px;object-fit:cover}.conversation-context p{margin:0;font-size:14px}.conversation-context .btn{width:auto;margin:0;padding:8px 10px}.chat-messages{display:flex;flex-direction:column;gap:8px;padding:4px 0 12px}.message,.chat-bubble{max-width:88%;padding:10px 12px;border-radius:14px;background:#fff;font-size:14px;line-height:1.5;margin-bottom:8px;overflow-wrap:break-word}.chat-bubble{margin:0}.message.mine,.chat-mine{margin-left:auto;background:var(--pale);border-bottom-right-radius:4px}.chat-other{margin-right:auto;border-bottom-left-radius:4px}.message p,.chat-bubble p{font-size:14px;margin:0 0 4px}.message img,.chat-bubble img{max-height:200px;border-radius:8px;margin-bottom:6px}.chat-meta{font-size:14px;line-height:1.4;color:var(--muted);margin-top:5px;display:flex;gap:5px;justify-content:flex-end}.chat-composer{padding:12px;background:#fff;border:1px solid var(--line);border-radius:14px;margin:10px 0}.chat-composer textarea{min-height:64px}.chat-composer .field{margin-bottom:8px}.composer-actions{display:flex;align-items:center;gap:8px}.composer-actions>.btn{margin:0;flex:1}.help-list{display:grid;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.help-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;background:#fff;border:0;border-bottom:1px solid var(--line);padding:12px 14px;width:100%;text-align:left}.help-row:last-child{border-bottom:0}.help-row h2,.help-row h3,.help-row strong{font-size:14px;line-height:1.4;margin:0}.help-category{font-size:14px;color:var(--muted);margin-top:3px}.help-steps{padding-left:20px;font-size:14px}.help-steps li{padding-left:2px;margin-bottom:10px}
.auth-logo{width:176px;height:auto;object-fit:contain;margin:8px auto 18px}.auth-hero{width:100%;height:174px;border-radius:16px;object-fit:cover;margin:0 0 18px}.auth-title{text-align:center;max-width:320px;margin:auto}.auth-title .page-heading{margin-bottom:16px}.auth-title h1{font-size:26px}.auth-title p{font-size:16px}.auth-demo{margin-top:16px}.auth-demo summary{font-size:14px}.code,.handover-code{display:block;text-align:center;padding:14px;background:white;border:1px solid var(--line);border-radius:12px;color:var(--green);font-size:30px;font-weight:600;letter-spacing:5px;margin:8px 0 12px}.qr-code{display:block;width:180px;max-width:100%;margin:12px auto;background:white;padding:10px}.qr-code svg{display:block;width:100%}.screen-review{display:grid;gap:7px}.screen-review button{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;font-size:14px}.screen-review .screen-id{width:34px;flex:none}.review-case{flex-wrap:wrap}.review-case>span{flex:1 0 100%}.review-case>.btn{flex:1 1 130px}.boot{display:grid;place-items:center;min-height:90dvh;color:var(--green)}.offline-strip{padding:8px 12px;background:#FFF1DF;color:#794723;font-size:14px;text-align:center}#toast{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);z-index:100;border-radius:12px;background:#1A3512;color:#fff;padding:12px 16px;font-size:14px;line-height:1.5;opacity:0;pointer-events:none}#toast.show{opacity:1}dialog{width:360px;max-width:calc(100% - 32px);padding:20px;border:0;border-radius:18px;color:var(--ink)}dialog::backdrop{background:#14200D80}dialog h2{font-size:20px}dialog p{font-size:14px;color:var(--muted)}dialog video{width:100%;border-radius:12px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:break-word}
@media(min-width:521px){body{background:#E6EBE2}.app-shell{box-shadow:0 0 48px #21341A12}.source-produce-card .product-image-link .source-card-photo{height:250px}}
@media(max-width:359px){.main-content{padding-left:12px;padding-right:12px}.app-header{padding-left:8px;padding-right:8px}.bottom-nav button{font-size:12px}.product-grid,.listing-grid,.plant-grid,.source-plant-grid{gap:8px}.product-image-link img,.produce-photo{height:116px}.product-card .card-body{padding:8px}.product-card h3{font-size:15px}.source-card-body>h2{font-size:24px}.source-produce-card .product-image-link .source-card-photo{height:180px}.home-welcome-text{font-size:14px}.kpis,.grower-stats{gap:6px}}
/* Screen-family details, using the same spacing and type scale. */
.profile-summary{display:flex;align-items:center;gap:12px;margin:4px 0 18px}.profile-initial{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--pale);color:var(--green);font-size:20px;font-weight:500;flex:none}.profile-summary>div{min-width:0;flex:1}.profile-summary h2{font-size:18px;margin-bottom:3px}.profile-summary p{font-size:14px;color:var(--muted);margin:0;overflow-wrap:anywhere}.section-label{font-size:14px;font-weight:500;letter-spacing:.75px;color:var(--muted);margin:16px 0 7px}.results-count{font-size:14px;color:var(--muted);margin:10px 0}.produce-detail>h1{font-size:25px;margin:10px 0}.compact-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.compact-actions .btn{flex:1 1 120px;min-width:0;margin:0}.favourite-button{font-size:24px;line-height:1}.request-card .summary{margin:4px 0}.request-card h2{font-size:17px}.grower-overview{margin:0 0 14px}.grower-product-detail{display:flex;align-items:center;gap:12px;margin:0 0 14px}.grower-product-detail img{width:76px;height:76px;border-radius:12px;object-fit:cover;margin:0;flex:none}.grower-product-detail h2{font-size:19px;margin-bottom:4px}.grower-request-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px;padding:10px 0;border-bottom:1px solid var(--line)}.grower-request-row>div{flex:1;min-width:0}.grower-request-row h3{font-size:14px;margin:0 0 3px}.grower-request-row p{font-size:14px;margin:0;color:var(--muted)}.grower-request-row>.btn{width:auto;margin:0;padding:8px 12px}.eyebrow{font-size:14px;letter-spacing:.5px;color:var(--muted);margin-bottom:5px}.details-body{padding:2px 0 8px}.compact-filter{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:0 0 12px}.compact-filter .field{flex:1 1 110px;min-width:0;margin:0}.compact-filter>.btn{width:auto;margin:0;flex:0 0 auto}.photo-strip{display:flex;gap:8px;overflow-x:auto;margin:8px 0 12px}.photo-strip>img,.photo-strip .photo-preview,.photo-strip .produce-image{height:150px;width:auto;max-width:260px;object-fit:cover;border-radius:10px;flex:0 0 auto;margin:0}.chat-bubble p{white-space:pre-wrap}.invite-code{display:block;padding:12px;background:#fff;border:1px dashed #B9C7B1;border-radius:10px;color:var(--green);font-size:18px;letter-spacing:2px;text-align:center;margin:12px 0}.is-unread .inbox-preview{color:var(--ink);font-weight:500}.notification-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:0 0 12px}.notification-row{display:flex;align-items:center;gap:10px;width:100%;min-height:72px;border:0;border-bottom:1px solid var(--line);background:#fff;padding:12px;text-align:left}.notification-row:last-child{border-bottom:0}.notification-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--paler);color:var(--green);flex:none}.notification-main{flex:1;min-width:0}.notification-main strong{display:block;font-size:14px;font-weight:500}.notification-main small{display:block;font-size:14px;color:var(--muted);margin-top:3px}.notice-tabs>.btn{flex-basis:80px;padding-left:8px;padding-right:8px}.version-note{text-align:center;font-size:14px;color:var(--muted);margin:16px 0 0}.auth-entry .app-header{display:none}.auth-entry .main-content{padding-top:18px}
.source-photo-wrap{position:relative}.source-card-overlays{position:absolute;z-index:1;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.source-card-overlays .badge,.stock-overlay{background:#fff;color:var(--ink);font-size:14px;font-weight:400;border-radius:16px;padding:4px 8px}.source-card-overlays .badge:first-child{color:#D92E23;font-weight:600}.stock-overlay{position:absolute;right:8px;top:8px;pointer-events:none}.product-image-link{position:relative}.source-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--pale);padding:10px 0 0;margin:10px 0 0}.source-card-footer .btn{width:auto;min-height:44px;padding:10px 15px;margin:0;white-space:nowrap;font-size:14px}.source-grower-link{display:flex;align-items:center;gap:7px;min-width:0;max-width:50%;min-height:44px;border:0;background:none;padding:0;text-align:left;color:var(--ink);font-size:14px}.source-grower-link .profile-initial{width:32px;height:32px;font-size:14px}.source-grower-link>span:last-child{min-width:0;overflow-wrap:break-word}.source-trade-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;line-height:1.5;margin:5px 0 0}.source-trade-line .badge{font-size:14px}.source-major-heading h2{display:flex;align-items:center;gap:9px;font-size:22px}.section-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--pale);color:var(--green);flex:none}.section-icon .icon{width:22px;height:22px}.home-location{display:flex;justify-content:center;margin:10px 0}.location-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;border:0;background:transparent;color:var(--green);padding:6px 12px;font-size:14px}.location-chip>span{background:var(--pale);border-radius:18px;padding:4px 12px}.card-title-link{display:block;width:100%;border:0;background:none;padding:0;min-height:24px;color:var(--ink);font-size:16px;font-weight:500;line-height:1.35;text-align:left;margin:0 0 5px}.product-card .product-price{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:14px;margin:0}.product-card .product-price .icon-button{min-width:44px;width:44px;padding:8px}.source-major-heading{border-bottom:1px solid #E4E8EF;padding-bottom:8px}.source-major-heading+.source-section-heading{margin-top:8px}

.card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.card-heading h1,.card-heading h2,.card-heading h3{min-width:0;margin:0}.card-heading .badge{flex:none}.plant-photo{overflow:hidden}.plant-photo .photo-strip{height:128px;margin:0;display:block}.plant-photo img,.plant-photo .photo-preview{height:128px;max-height:128px;width:100%;max-width:100%;object-fit:cover;margin:0;border-radius:0}.source-card-overlays .stock-overlay{position:static}.source-card-body .card-title-link h2{font-size:26px;font-weight:500;line-height:1.3;margin:0}.source-card-body .card-title-link{margin:0 0 8px}.location-chip{background:var(--pale);border-radius:22px;min-height:44px;padding:8px 14px}.location-chip>span{padding:0;background:none}

/* Outline geometry stays identical in every navigation state. */
.bottom-nav .nav-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;transform:none}.bottom-nav .active .nav-icon svg{fill:none;stroke-width:1.8}.home-brand img,.header-brand,.auth-logo{filter:none;opacity:1;transform:none;image-rendering:auto;aspect-ratio:292/97}.header-brand{max-height:40px}.home-brand{margin:4px 0 8px}.auth-logo{margin-top:8px;margin-bottom:16px}

/* Stores & Farms is an in-app destination on phone, tablet and desktop. */
.stores-directory,.directory-detail{min-width:0}.directory-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.directory-filters .field{margin:0;min-width:0}.directory-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.directory-actions .btn,.directory-card .btn{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.directory-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.directory-card{margin:0;min-width:0}.directory-card-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;flex-wrap:wrap}.directory-card h2{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere}.directory-card p,.directory-detail p{overflow-wrap:anywhere}.directory-card .badge{flex:none}.stores-directory .farm-facts{margin:16px 0;padding:14px;border:1px solid var(--line,#dce4d6);border-radius:12px}.stores-directory .farm-fact-label{font-weight:600;margin:8px 0}.stores-directory .farm-badges{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0}.stores-directory .farm-badges li{padding:4px 8px;border-radius:20px;background:#eef4e9}.stores-directory .farm-credit,.stores-directory .farm-fact-note{font-size:13px;line-height:1.6}.stores-entry[aria-current="page"]{background:#eef4e9;color:var(--green,#28531a)}
@media(min-width:680px){.directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.directory-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.address-status:empty{display:none}

/* Account uses the same settings-list controls as Edit account. */
.app-shell[data-screen="C39"] .account-identity .profile-summary{margin:0}
.app-shell[data-screen="C39"] .account-menu .menu-row>span{min-width:0}
.app-shell[data-screen="C39"] .account-row-caption{display:block;margin-top:3px;color:var(--muted);font-weight:400}

/* Separate password recovery from the save action without changing type. */
.app-shell [data-password-profile]>.password-recovery-help{margin-top:20px}

/* Private contact case references and submitted text wrap on small screens. */
.private-enquiry,.private-enquiry .summary dd{min-width:0}.private-enquiry .summary dd,.private-enquiry p{overflow-wrap:anywhere}.private-enquiry>p{white-space:pre-wrap}.private-enquiry .btn{max-width:100%;white-space:normal}
.profile-services .payment-handover-note{margin-top:20px}

/* Store status and visit guidance stay separate on narrow/native screens. */
.directory-detail-status{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin:0 0 14px;min-width:0}
.directory-detail-notice{margin:0 0 16px;min-width:0}
.directory-detail-notice>.notice{margin:0;padding:12px 16px;line-height:1.6;overflow-wrap:break-word}
.directory-detail-notice .icon{margin-inline-end:8px;flex:none}

.directory-nearby-action{margin:0 0 16px;min-width:0}
.directory-nearby-action>.btn{margin:0;width:100%;white-space:normal}
/* Clock inputs stay explicitly 12-hour regardless of the device clock preference. */
.ampm-field{border:0;padding:0;min-width:0;margin:0 0 1rem}
.ampm-field legend{padding:0;margin-bottom:.5rem;font-weight:700}
.ampm-field>label{display:grid;gap:.35rem;margin-bottom:.65rem}
.ampm-clock-parts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:.65rem}
.ampm-clock-parts label{display:grid;min-width:0;gap:.35rem}
.ampm-clock-parts select,.ampm-field input[type=date]{width:100%;min-width:0;min-height:44px}

/* One shared Account layout for Consumer and Grower. */
.account-overview .account-category{margin:24px 0 0;min-width:0}
.account-overview .account-category>h2{margin:0 0 12px;font-size:calc(20px * var(--cgs-text-scale,1));line-height:1.35;color:var(--ink)}
.account-overview .profile-summary{margin:0}
.account-overview .account-payment-options{min-width:0}
.account-overview .account-payment-options h2{font-size:calc(17px * var(--cgs-text-scale,1));line-height:1.4}
.account-overview .account-payment-options>.notice,.account-overview .account-payment-options>.card{margin-bottom:14px}
.account-overview .account-payment-options .btn{white-space:normal;overflow-wrap:anywhere}
.account-overview .account-row-caption{display:block;margin-top:3px;color:var(--muted);font-weight:400}

/* Shared owner-scoped selling allowance. No visual state grants account approval. */
.grower-selling-progress{padding:18px;margin:16px 0;border:1px solid #dce5d6;border-radius:14px;background:#f7faf4;overflow-wrap:anywhere}
.grower-selling-progress h2{margin:0 0 8px;font-size:1.15rem}
.grower-selling-progress p{margin:8px 0}
.grower-selling-progress progress{display:block;width:100%;height:12px;accent-color:#28531a}

/* Give handover filters and sign-in email details full rows on phones. */
@media(max-width:767px){
 .app-shell[data-screen="G30"] form[data-action="grower:fulfillment-filter"]{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:12px}
 .app-shell[data-screen="G30"] form[data-action="grower:fulfillment-filter"]>.btn{width:100%;margin:0}
 .email-change-summary .summary>div{flex-direction:column;align-items:stretch;gap:4px}
 .email-change-summary .summary dt,.email-change-summary .summary dd{min-width:0;max-width:100%;text-align:start;overflow-wrap:anywhere}
}
