/* Organic Sabz 1.1 — shared visual system for the portal and customer experience. */
:root{--bg:#f5f6f0;--surface:#fff;--text:#122c27;--muted:#74817b;--line:#e3e8df;--green:#174f40;--soft:#eef4e8;--danger:#b83b40;color:var(--text);background:var(--bg)}
body{background:var(--bg);font-size:14px}button,a,input,select,textarea{touch-action:manipulation}button,.primary,.secondary{min-height:44px}.primary{background:var(--green);border-color:var(--green);border-radius:12px;font-weight:700}.secondary{background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--green)}.primary:hover{background:#103e32}.secondary:hover{background:var(--soft)}.panel{border:1px solid var(--line);box-shadow:0 3px 12px #173c2d03;border-radius:16px;padding:22px;background:var(--surface)}.panel h2{font-size:16px;margin:0 0 18px}.fields label{font-size:13px;font-weight:600}.fields input,.fields textarea,.fields select{border-radius:10px;min-height:46px;border:1px solid #dbe3da;background:#fff!important}.fields input:focus,.fields textarea:focus,.fields select:focus{border-color:var(--green);box-shadow:0 0 0 3px #174f4010}.subtle{font-weight:400}.notice{border-radius:13px}.form-modal{border-radius:20px;max-width:min(760px,calc(100vw - 32px));padding:28px;box-shadow:0 24px 80px #12352625}.modal-close{position:sticky;top:0;float:left;z-index:3;background:#f3f6ee}.badge{border:0;background:#f0f3ea;border-radius:20px;font-size:11px;padding:5px 12px;font-weight:600}.badge.review{background:#fff2d6;color:#815800}.badge.paid,.badge.completed{background:#e3f3e7;color:#21663b}.icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text)}.icon-button .counter{position:absolute;top:-3px;right:-3px;min-width:18px;font-size:9px}.brand-mark{border-radius:13px;background:var(--green)}.brand-mark svg{width:28px;height:28px}.brand strong{font-size:18px;font-weight:850}.brand small{font-size:11px}
/* Desktop portal: independent sidebar and scrollable work area. */
.admin-shell{display:grid;grid-template-columns:248px minmax(0,1fr);max-width:1920px;margin:auto;gap:0;min-height:100dvh}.admin-body .sidebar{display:flex;flex-direction:column;background:#164d3e;color:#e7f0df;padding:26px 18px 18px;height:100dvh;position:sticky;top:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#779882 transparent;border:0}.sidebar .brand{padding:0 8px 18px;align-items:center}.sidebar .brand-mark{background:#dcefad;color:#174f40;box-shadow:none}.sidebar .brand strong{font-size:19px;color:#fff}.sidebar .brand small{font-size:10px;color:#d4e3cb}.sidebar-collapse{display:flex;gap:12px;align-items:center;justify-content:center;border:1px solid #ffffff25;border-radius:9px;background:transparent;color:#d3e4ce;min-height:32px;font-size:11px}.sidebar #admin-nav{display:block;margin:14px 0 24px}.nav-group{border-top:1px solid #ffffff18;padding:12px 0}.nav-group summary{display:flex;align-items:center;justify-content:space-between;padding:5px 12px 12px;font-size:10px;color:#c6d9c4;cursor:pointer;list-style:none}.nav-group summary::-webkit-details-marker{display:none}.nav-chevron{font-size:17px;transition:transform .18s}.nav-group[open] .nav-chevron{transform:rotate(180deg)}.nav-group>div{display:grid;gap:4px}.sidebar #admin-nav button{display:flex;gap:12px;align-items:center;justify-content:flex-start;min-height:43px;padding:10px 12px;color:#e7f0e1;font-size:12px;border-radius:10px;line-height:1.5}.sidebar #admin-nav button.active{background:#e2f0b5;color:#153f31;font-weight:800;box-shadow:0 3px 14px #082b2415}.sidebar #admin-nav button:not(.active):hover{background:#ffffff0d}.sidebar #admin-nav svg{width:19px;height:19px;flex:0 0 19px}.nav-count{margin-inline-start:auto;background:#dff1c920;border-radius:7px;padding:2px 6px;font-size:10px}.active .nav-count{background:#174f4010}.sidebar-bottom{display:grid;gap:12px;margin-top:auto;border-top:1px solid #ffffff25;padding:18px 10px 0;font-size:12px}.sidebar-bottom a,.sidebar-bottom .text-button{color:#e2edd7}.sidebar-bottom strong{font-size:12px}.admin-main{padding:0 30px 36px;min-width:0}.admin-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:80px;border-bottom:1px solid var(--line);gap:18px}.admin-toolbar>div{display:flex;gap:10px;align-items:center}.toolbar-context{font-size:12px;color:var(--muted)}.admin-toolbar .secondary{padding:9px 14px;font-size:12px}.admin-header{display:flex;align-items:center;gap:12px;margin:22px 0 24px;padding:0;border:0}.admin-header .eyebrow{font-size:10px;color:var(--muted)}.admin-header h1{font-size:24px;font-weight:850}.admin-header>div:first-child{flex:1}.admin-header #admin-refresh{font-size:11px}.admin-menu-button{display:none}.admin-store-switch{width:100%;justify-content:flex-start}.admin-store-switch button{font-size:11px;padding:7px 12px;min-height:34px;border-radius:8px}.admin-store-switch button.active{background:var(--green);color:#fff}.admin-mobile-nav{display:none}.sidebar-compact .admin-shell{grid-template-columns:78px minmax(0,1fr)}.sidebar-compact .sidebar{padding-inline:9px}.sidebar-compact .sidebar .brand{padding:0 4px 14px}.sidebar-compact .brand>div,.sidebar-compact .nav-label,.sidebar-compact .nav-count,.sidebar-compact .sidebar-bottom,.sidebar-compact .sidebar-collapse span{display:none}.sidebar-compact .nav-group summary{font-size:0;padding:2px 12px 5px;justify-content:center}.sidebar-compact .sidebar #admin-nav button{justify-content:center;padding-inline:8px}.sidebar-compact .nav-group>div{display:grid}.sidebar-compact .nav-group:not([open])>div{display:grid}.sidebar-compact .nav-chevron{font-size:10px}
/* Live overview. */
.overview-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}.overview-heading h2{display:none}.overview-heading .primary{display:flex;align-items:center;gap:8px;padding:10px 18px;font-size:12px}.overview-heading .subtle{font-size:11px}.overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.overview-metric{position:relative;display:flex;align-items:flex-start;gap:13px;padding:22px 18px;background:#fff;border:1px solid var(--line);border-radius:15px;min-width:0}.metric-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#edf6e8;color:var(--green)}.overview-metric:nth-child(3) .metric-icon{background:#fff5de;color:#976b17}.overview-metric small{font-size:11px;font-weight:650}.overview-metric strong{display:block;font-size:25px;line-height:1.5;font-weight:850;margin:9px 0;white-space:nowrap}.overview-metric strong small{font-size:10px;font-weight:400}.overview-metric p{font-size:10px;color:var(--muted)}.overview-middle{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px;margin-bottom:20px}.overview-chart .section-heading{margin-bottom:10px}.overview-chart h2{margin:0}.overview-chart svg{width:100%;height:auto;max-height:220px;overflow:visible}.overview-chart text{font:10px Vazirmatn;fill:var(--muted)}.chart-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;direction:ltr}.chart-days small{font-size:9px;direction:rtl}.action-queue>button{display:flex;align-items:center;gap:12px;width:100%;padding:13px 10px;margin-top:9px;background:#fff;border:1px solid var(--line);border-radius:11px;text-align:right;font-size:11px;color:var(--text)}.action-queue>button>span:nth-child(2){flex:1}.action-queue button small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.action-queue b{font-size:15px}.action-queue .metric-icon{width:34px;height:34px;flex-basis:34px}.overview-orders table{font-size:12px;min-width:650px}.overview-orders th{font-size:10px;background:#f6f7f3;color:#6c7b74}.overview-orders td{padding-block:15px}.cell-sub{display:block;margin-top:4px;font-size:9px}.overview-orders .section-heading h2{margin:0}.table-wrap{border-radius:12px}th,td{border-color:#edf0e9}.order-card{border-radius:17px;box-shadow:none}.admin-nav-sheet{max-width:600px}.admin-nav-sheet .nav-group{border-color:var(--line)}.admin-nav-sheet .nav-group summary{color:var(--green);font-size:12px}.admin-nav-sheet .nav-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-nav-sheet [data-tab]{display:flex;align-items:center;gap:10px;text-align:right;border:1px solid var(--line);border-radius:11px;padding:10px;background:#fff;color:var(--text);font-size:11px}.admin-nav-sheet [data-tab].active{background:var(--soft)}.admin-nav-grid{display:block}
/* Customer storefront and account use the same palette and hierarchy. */
.shop-shell{max-width:1280px;background:var(--bg);padding-bottom:70px}.shop-header{padding:24px 30px;border-bottom:1px solid var(--line);gap:12px}.customer-toolbar{display:flex;align-items:center;gap:10px}.customer-profile-button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--green);font-size:12px}.customer-profile-button svg{width:20px}.customer-profile-button .subtle{font-size:11px}.shop-header .brand strong{font-size:18px}.home-hero{background:var(--green);border-radius:22px;color:#fff;padding:38px;min-height:260px}.home-hero .eyebrow,.home-hero p{color:#d4e4cc}.home-hero h1{font-size:38px;max-width:480px}.home-hero .primary{background:#dfeeae;color:#153f32;border-color:#dfeeae;min-height:48px}.quick-grid{gap:12px;margin-block:20px 30px}.quick-grid button{border:1px solid var(--line);border-radius:14px;background:#fff;padding:17px 12px;font-size:12px}.product-grid{gap:20px}.product-card{border:1px solid var(--line);border-radius:17px;box-shadow:none;background:#fff;overflow:hidden}.product-card .product-body{padding:16px}.product-card h3{font-size:16px}.product-art{background:#edf2e5;color:#28533f;min-height:160px}.product-image{background:#edf2e5}.product-card .primary{border-radius:11px}.price{font-weight:800}.featured-item{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden}.featured-item .featured-art{background:#edf2e5}.featured-item strong{font-size:13px}.bottom-nav{background:#fff;border:1px solid var(--line);border-radius:20px 20px 0 0;box-shadow:0 -8px 30px #183e3007;z-index:15}.bottom-nav button.active{background:#edf3e5;color:var(--green)}.account-hero{background:var(--green);color:#fff;padding:25px;border-radius:20px;margin-bottom:22px}.account-hero h2{font-size:23px;margin:6px 0}.account-hero p{color:#d9e8d0;font-size:12px}.account-balances{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.account-balances>div{border:1px solid #ffffff25;border-radius:13px;padding:14px}.account-balances small{color:#dae7d0}.account-balances strong{display:block;font-size:22px;margin-top:6px}.account-balances strong small{font-size:11px}.customer-alerts{display:grid;gap:12px}.customer-alert{display:flex;gap:13px;padding:16px;border:1px solid var(--line);border-radius:13px;align-items:flex-start}.customer-alert.unread{background:#f4f8ed;border-color:#c8d9b8}.customer-alert p{font-size:13px;white-space:pre-line}.customer-alert small{font-size:10px}.freight-notice{background:#fff7e5;border-color:#e8d6ad;color:#75541d}.freight-notice p{font-size:12px}.landing .home-hero{min-height:210px}.login-card{border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 55px #174f4007}.login-card .brand-mark{margin-bottom:12px}.install-card{max-width:750px}
@media(min-width:1100px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#profile-content{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}#profile-content .account-hero{grid-column:1/-1;margin:0}#profile-content>.panel{margin:0}.shop-shell .bottom-nav{max-width:700px;bottom:15px;border-radius:18px}.shop-footer{margin-bottom:30px}.home-hero h1{font-size:42px}.overview-metric:first-child strong{font-size:clamp(18px,1.8vw,27px)}}
@media(min-width:901px) and (max-width:1200px){.admin-main{padding-inline:20px}.admin-shell{grid-template-columns:220px minmax(0,1fr)}.overview-metric{display:block;padding:16px}.overview-metric .metric-icon{margin-bottom:10px}.overview-metric strong{font-size:21px}.overview-middle{grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr)}}
@media(max-width:900px){.admin-shell,.sidebar-compact .admin-shell{display:block}.admin-body .sidebar{display:none}.admin-main{padding:0 18px 100px}.admin-toolbar{min-height:65px}.toolbar-context{font-size:10px}.admin-toolbar .secondary{font-size:10px;min-height:37px;padding:6px 10px}.admin-toolbar .icon-button{width:37px;height:37px;min-height:37px}.admin-header{margin:20px 0}.admin-header h1{font-size:23px}.admin-menu-button{display:none!important}.admin-header>div:first-child{min-width:0}.admin-header #admin-refresh{min-height:35px;padding:6px 10px;font-size:10px}.admin-mobile-nav{position:fixed;bottom:0;right:0;left:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;background:#fff;border:1px solid var(--line);border-radius:20px 20px 0 0;padding:9px 12px max(10px,env(safe-area-inset-bottom));box-shadow:0 -5px 25px #174f4008;z-index:30}.admin-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#687d70;font-size:10px;border-radius:12px;padding:7px 4px}.admin-mobile-nav button.active{background:#edf3e4;color:var(--green);font-weight:800}.overview-heading{display:block;margin-bottom:16px}.overview-heading .primary{margin-top:14px;justify-content:center;width:100%;min-height:48px;font-size:14px}.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.overview-metric{padding:17px 12px;gap:9px;min-height:125px}.overview-metric strong{font-size:24px;white-space:normal;margin:7px 0 3px}.overview-metric:first-child strong{font-size:20px}.overview-metric small{font-size:10px}.overview-metric p{font-size:9px}.overview-metric .metric-icon{width:31px;height:31px;flex-basis:31px;border-radius:10px}.overview-metric svg{width:20px;height:20px}.overview-middle{display:flex;flex-direction:column;gap:16px}.overview-chart{order:2;padding:18px}.action-queue{order:1;padding:18px}.overview-orders{padding:18px}.overview-orders .table-wrap{overflow:visible}.overview-orders table,.overview-orders tbody{display:block;min-width:0;width:100%}.overview-orders thead{display:none}.overview-orders tr{display:grid;grid-template-columns:1fr 1fr;gap:7px;border:1px solid var(--line);border-radius:12px;padding:13px;margin-top:12px}.overview-orders td{display:block;border:0;padding:0;font-size:11px;overflow-wrap:anywhere}.overview-orders td:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}.overview-orders .cell-sub{margin:0;font-size:8px}.overview-orders .badge{font-size:9px}.overview-orders td:last-child{text-align:left}.chart-days small{font-size:8px}.stats{gap:8px}.stat{padding:13px 9px;border-radius:13px}.stat small{font-size:10px}.stat strong{font-size:22px}.panel{padding:18px}.admin-nav-sheet{max-height:88dvh}.admin-store-switch{overflow:auto;flex-wrap:nowrap}.admin-store-switch button{white-space:nowrap}.admin-body .order-card{padding:18px}.shop-header{padding:18px 16px}.shop-header .brand strong{font-size:15px}.shop-header .brand-mark{width:40px;height:40px}.shop-header .brand small{font-size:10px}.customer-toolbar{gap:5px}.customer-profile-button>span:first-child{display:none}.customer-profile-button{min-height:40px;padding:5px}.customer-toolbar .icon-button{width:38px;height:38px;min-height:38px}#shop-main{padding:22px 16px 30px}.home-hero{padding:28px 22px;min-height:265px;border-radius:21px}.home-hero h1{font-size:30px;max-width:270px}.home-hero p{font-size:12px}.home-hero .eyebrow{font-size:10px}.quick-grid{gap:8px;margin-block:18px 26px}.quick-grid button{padding:15px 5px;font-size:10px;min-height:80px}.product-grid{gap:12px}.product-card .product-body{padding:13px}.product-card h3{font-size:14px}.product-art{min-height:135px}.product-card .primary{font-size:11px;padding:9px 7px;min-height:43px}.product-card .text-button{font-size:10px}.account-hero{padding:23px 20px}.account-hero h2{font-size:23px}.account-balances strong{font-size:21px}.customer-alert{padding:13px}.customer-alert .metric-icon{width:30px;height:30px;flex-basis:30px}.customer-alert p{font-size:12px}.form-modal{padding:22px;max-width:calc(100vw - 20px);max-height:91dvh}.checkout-sheet{max-width:100%;border-radius:22px 22px 0 0}.shop-shell{padding-bottom:65px}.bottom-nav{padding-bottom:max(9px,env(safe-area-inset-bottom))}.landing-stores{gap:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#portal-search{display:flex;align-items:center;gap:8px;flex:1;max-width:540px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-inline:18px}#portal-search input{min-width:0;flex:1;border:0;background:transparent!important;padding:11px 14px;font-size:12px;outline:0}#portal-search button{display:grid;place-items:center;width:42px;height:42px;min-height:42px;border:0;background:transparent;color:var(--muted)}
@media(min-width:901px){.sidebar #admin-nav button{font-size:13px}.nav-group summary{font-size:11px}.overview-metric small{font-size:12px}.overview-metric p{font-size:11px}.overview-orders table{font-size:13px}.overview-orders th{font-size:11px}.action-queue>button{font-size:12px}.overview-orders .cell-sub{font-size:10px}.panel h2{font-size:17px}}
@media(max-width:900px){#portal-search{display:none}}
