:root{--orange:#fe5504;--ink:#202420;--muted:#525c4c;--line:#e9ebe6;--green:#26865c;--bg:#f7f8f5}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.2;font-weight:650}h2{font-size:18px;letter-spacing:-.4px}small{font-size:14px}label{display:block;font-size:15px;font-weight:600;margin-bottom:19px}input,textarea,select{display:block;width:100%;border:1px solid #dedfd9;border-radius:9px;background:white;padding:12px 14px;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s}label input,label textarea{margin-top:8px}input:focus,textarea:focus,select:focus{border-color:var(--orange);box-shadow:0 0 0 3px #fe550416}input::placeholder,textarea::placeholder{color:#525c4c;font-weight:400}textarea{resize:vertical}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid #fe550480;outline-offset:3px}.brand{display:flex;align-items:center;font-size:26px;font-weight:750;letter-spacing:-1.4px}.brand>span:last-child{color:var(--orange)}.brand-icon{display:grid;place-items:center;color:white;background:var(--orange);border-radius:10px;width:36px;height:36px;margin-right:10px}.brand-icon svg{width:24px;height:24px}.sidebar{position:fixed;inset:0 auto 0 0;background:#fff;width:246px;border-right:1px solid var(--line);padding:32px 21px;display:flex;flex-direction:column;z-index:5}.workspace-label{font-size:13px;letter-spacing:1.7px;color:#525c4c;margin:43px 13px 18px;font-weight:600}nav a{display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:9px;margin-bottom:7px;font-weight:500;color:#525c4c;font-size:15px}nav a:hover{background:#f8f9f6}nav a.active{background:#fff1e8;color:var(--orange)}.nav-count{margin-left:auto;background:#ffe2d2;padding:0 7px;border-radius:5px;font-size:14px}.sidebar-bottom{margin-top:auto}.tip{background:#f8f9f5;border:1px solid var(--line);padding:17px;border-radius:11px;margin-bottom:25px}.tip>span{font-size:14px;font-weight:600}.tip p{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.7}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:22px}.avatar{background:#fff0e6;color:var(--orange);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700}.profile b{display:block;font-size:14px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile small{display:block;font-size:13px;color:var(--muted)}.profile form{margin-left:auto}.icon-button{display:inline-grid;place-items:center;background:transparent;padding:6px;color:#525c4c;border-radius:6px}.icon-button:hover{background:#fff0e6;color:var(--orange)}.icon-button svg{width:17px;height:17px}.main{margin-left:246px}.topbar{height:78px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;font-size:14px;color:#525c4c}.topbar b{color:#40473c;font-weight:500;margin-left:12px}.topbar .muted{margin-left:12px}.top-tag{display:flex;align-items:center;gap:8px}.top-tag i{height:6px;width:6px;background:var(--orange);border-radius:50%}.content{padding:36px 40px 0;max-width:1700px;margin:auto}.eyebrow{font-size:13px;letter-spacing:1.7px;color:#525c4c;font-weight:650;display:block;margin-bottom:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading p{margin-top:10px;font-size:15px}.muted{color:var(--muted)}.orange{color:var(--orange)}.positive{color:var(--green)}.negative{color:#d13f44!important}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--orange);color:white;padding:12px 18px;border-radius:8px;font-weight:600;font-size:14px;box-shadow:0 4px 9px #fe550419;white-space:nowrap;transition:transform .2s,background .2s}.button:hover{background:#e94d00;transform:translateY(-1px)}.button svg{width:17px;height:17px}.wide{width:100%}.wide span{margin-left:auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.stat>div{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#525c4c;gap:8px}.stat-icon{background:#f7f8f4;color:#838c7a;border-radius:8px;display:grid;place-items:center;padding:8px}.stat-icon svg{width:17px;height:17px}.stat strong{display:block;font-size:29px;font-weight:600;letter-spacing:-1px;margin:12px 0 6px;overflow-wrap:anywhere}.stat em{font-style:normal;font-size:21px;margin-left:3px;color:#525c4c}.stat small{font-size:13px;color:#525c4c}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.insights{display:grid;grid-template-columns:1.6fr 1fr;gap:23px;margin-bottom:27px}.opportunity{padding:24px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:18px}.panel-title .eyebrow{font-size:12px;margin-bottom:6px}.pill{display:inline-block;background:#f5f7f1;color:#525c4c;font-size:12px;letter-spacing:.7px;font-weight:600;border:1px solid #e8ece2;border-radius:5px;padding:5px 8px;white-space:nowrap}.margin-layout{display:flex;align-items:center;gap:33px;margin:24px 0 17px}.ring{--value:0;flex-shrink:0;position:relative;border-radius:50%;height:158px;width:158px;background:conic-gradient(var(--orange) calc(var(--value)*1%),#f4f1eb 0);display:grid;place-items:center;box-shadow:0 0 0 1px #fe550409;transition:--value .8s ease}.ring:before{content:'';position:absolute;inset:13px;border-radius:50%;background:white}.ring>div{position:relative;text-align:center}.ring strong{font-size:32px;display:block;font-weight:650;letter-spacing:-1px}.ring span{font-size:13px;color:#525c4c}.profit-breakdown{flex:1;min-width:0}.profit-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin:12px 0}.profit-breakdown span{color:#525c4c}.profit-breakdown b{font-weight:600}.dot{width:7px;height:7px;display:inline-block;border-radius:2px;margin-right:7px}.orange-bg{background:var(--orange)}.dark-bg{background:#424f3e}.gray-bg{background:#b5bbaa}.profit-breakdown .total{border-top:1px dashed var(--line);padding-top:14px;font-size:14px}.profit-breakdown .total b{color:var(--orange)}.footnote{font-size:13px;color:#525c4c;line-height:1.8}.highlights{padding:25px;background:#fafbf7}.highlights h2{display:flex;justify-content:space-between}.highlights h2 svg{color:#525c4c}.signal{display:flex;align-items:center;gap:13px;margin-top:24px}.signal-icon{padding:10px;background:white;border:1px solid var(--line);border-radius:10px}.signal-icon svg{width:18px;height:18px}.signal strong{font-size:15px;font-weight:600}.signal p{font-size:14px;margin-top:3px;color:#525c4c}.highlights>a{display:flex;justify-content:space-between;margin-top:23px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--orange);font-weight:600}.library>.panel-title{padding:24px}.panel-title p{font-size:14px;margin-top:6px}.badge{background:#f2f4ed;color:#525c4c;font-size:14px;padding:3px 7px;border-radius:5px;vertical-align:middle;margin-left:6px}.filters{display:flex;gap:10px}.search{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding-left:10px;margin:0;font-weight:400;width:228px}.search svg{width:15px;height:15px;color:#525c4c}.search input{border:0;margin:0;padding:9px;font-size:14px;box-shadow:none;background:transparent}.filters select{font-size:14px;padding:9px;width:150px;border-color:var(--line);border-radius:7px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:12px;letter-spacing:.6px;color:#525c4c;background:#fafbf8;font-weight:600;padding:14px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:17px 22px;border-bottom:1px solid #f0f1ec;font-size:14px}td small{display:block;color:#525c4c;font-size:13px;margin-top:4px}.product-cell{display:flex;align-items:center;gap:12px}.thumb{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;background:#f5f6f1;border-radius:8px;padding:0;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.placeholder{color:#b3baa6}.product-name{font-weight:600;display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis}.product-name:hover{color:var(--orange)}.margin-badge{font-size:14px;color:var(--green);background:#eff8f0;border-radius:5px;padding:3px 7px}.margin-badge.loss{color:#c64145;background:#fff0ef}.mini-track{width:58px;height:3px;background:#f2f4ed;border-radius:3px;margin-top:8px;overflow:hidden}.mini-track i{display:block;background:var(--green);height:100%;border-radius:3px}.creator{font-size:14px;color:#525c4c}.table-footer{display:flex;justify-content:space-between;font-size:13px;color:#525c4c;padding:15px 23px}.table-footer b{font-weight:500}.empty{text-align:center;padding:55px 20px;color:#525c4c}.empty>svg{height:40px;width:40px;margin-bottom:15px;color:#c2c9b6}.empty h3{color:#5b6550;font-size:17px;margin-bottom:7px}.empty p{font-size:14px;margin-bottom:20px}[hidden]{display:none!important}.footer{display:flex;justify-content:space-between;padding:25px 0;font-size:13px}.footer>span:first-child{font-weight:650}.footer .muted{font-weight:400}.alert{padding:14px 18px;border-radius:9px;margin-bottom:22px;font-size:15px;display:flex;align-items:center;gap:10px}.success{color:#28764d;background:#eaf7ee;border:1px solid #d7eadb}.error{color:#b63737;background:#fff0ef;border:1px solid #f5d2ce}.product-form{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.form-panel{padding:26px;margin-bottom:22px}.form-panel h2{display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:23px}.form-panel h2 svg{color:var(--orange);width:19px;height:19px}.fields-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.fields-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.upload{border:1px dashed #d9dece;border-radius:9px;background:#fbfcf9;text-align:center;padding:27px 12px;cursor:pointer;color:#8b957c;position:relative}.upload svg{width:29px;height:29px;margin-bottom:9px;color:#a6b094}.upload strong{display:block;font-size:14px;color:#5e6b50}.upload span{display:block;font-size:13px;font-weight:400;margin:5px 0 10px}.upload input{font-size:14px;max-width:260px;margin:12px auto 0;padding:7px}.image-gallery{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.image-gallery button{height:82px;width:82px;padding:0;border-radius:9px;overflow:hidden;background:#f5f5f0}.image-gallery img{height:100%;width:100%;object-fit:cover}.analysis-panel{padding:25px;position:sticky;top:22px}.analysis-panel .eyebrow{font-size:12px}.analysis-panel h2{font-size:21px}.analysis-panel .ring{margin:26px auto 18px;width:190px;height:190px}.analysis-panel .ring strong{font-size:38px}.analysis-status{display:block;text-align:center;font-size:14px;color:var(--green);padding:9px;border-radius:6px;background:#f5f8f0;margin-bottom:20px}.calc-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;font-size:14px;color:#525c4c}.calc-row b{color:#424e37;font-weight:600}.calc-row.net{border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:16px;margin:7px 0}.calc-row.net b{color:var(--orange);font-size:17px}.analysis-panel .footnote{margin:15px 0 23px}.analysis-panel>small{display:block;text-align:center;font-size:13px;margin-top:13px}.text-link{font-size:14px;color:#849173}.team-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:23px;align-items:start}.team-layout>.panel>.panel-title{padding:24px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-story{padding:45px 65px;background:#f3f4ee;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.login-story>div{padding:60px 0}.login-story h1{font-size:54px;line-height:1.12;letter-spacing:-2.5px;margin-bottom:22px}.login-story p{max-width:370px;font-size:16px;color:#879079;line-height:1.9}.login-story>small{font-size:12px;letter-spacing:1.5px;color:#8b957c}.login-story .eyebrow{color:var(--orange);font-size:12px}.story-card{max-width:365px;margin-top:40px;padding:25px 30px;background:#fff;border:1px solid #e6e9dd;border-radius:15px;box-shadow:0 14px 40px #32431206;transform:rotate(-3deg)}.story-card h3{font-size:24px;margin-top:16px;letter-spacing:-.7px}.sample-bars{height:80px;display:flex;align-items:end;gap:12px;margin-top:20px}.sample-bars i{flex:1;background:#ffe3d2;border-radius:5px 5px 0 0;height:25%}.sample-bars i:nth-child(2){height:40%}.sample-bars i:nth-child(3){height:33%}.sample-bars i:nth-child(4){height:58%}.sample-bars i:nth-child(5){height:65%}.sample-bars i:nth-child(6){height:78%}.sample-bars i:nth-child(7){height:100%;background:var(--orange)}.login-form{display:grid;place-items:center;padding:40px}.login-form>div{width:100%;max-width:370px}.login-form h2{font-size:29px;font-weight:650;letter-spacing:-1px;margin-bottom:10px}.login-form p{font-size:15px}.login-form form{margin:32px 0 23px}.login-form .button{margin-top:8px;padding:14px}.login-form small{font-size:14px}dialog{border:0;border-radius:14px;background:#161b19;padding:15px;max-width:95vw;max-height:94vh;overflow:visible}dialog::backdrop{background:#10160fe3;backdrop-filter:blur(6px)}dialog img{display:block;max-width:87vw;max-height:83vh;object-fit:contain}.modal-close{position:absolute;right:8px;top:8px;color:white;background:#0009;border:1px solid #ffffff50;border-radius:50%;font-size:25px;width:35px;height:35px;display:grid;place-items:center}@property --value{syntax:'<number>';initial-value:0;inherits:false}@media(min-width:1500px){.content{padding-top:44px}.stat{padding:25px}.margin-layout{gap:45px}.opportunity{padding:27px}}@media(max-width:1200px){.sidebar{width:216px;padding:28px 16px}.main{margin-left:216px}.content{padding:28px 25px 0}.topbar{padding:0 25px}.stat{padding:17px}.stat strong{font-size:23px}.filters{flex-wrap:wrap;justify-content:flex-end}.search{width:190px}.profit-breakdown>div{font-size:13px}.margin-layout{gap:20px}.ring{width:135px;height:135px}.product-form{grid-template-columns:minmax(0,1fr) 300px}.fields-three{grid-template-columns:1fr}.team-layout{grid-template-columns:300px minmax(0,1fr)}}@media(max-width:960px){.sidebar{width:76px;padding:24px 10px}.sidebar .brand{font-size:0}.sidebar .brand>span:last-child,.workspace-label,.nav-count,.sidebar-bottom .tip,.profile>div,.profile form{display:none}.brand-icon{margin:0 auto}nav{margin-top:35px}nav a{font-size:0;gap:0;padding:15px;justify-content:center}nav svg{width:23px;height:23px}.profile{justify-content:center}.main{margin-left:76px}.insights{grid-template-columns:1fr}.highlights{display:none}.stats{gap:12px}.stat strong{font-size:22px}.stat-icon{display:none}.stat small{font-size:12px}.product-form{grid-template-columns:minmax(0,1fr) 280px}.form-panel{padding:20px}.page-heading h1{font-size:29px}.team-layout{grid-template-columns:1fr}.login-story{padding:35px}.login-story h1{font-size:43px}.login-form{padding:30px}}@media(max-width:700px){.topbar{padding:0 17px;height:60px}.top-tag{display:none}.content{padding:25px 16px 0}.page-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:23px}.page-heading h1{font-size:28px}.page-heading p{font-size:14px}.page-heading .button{padding:10px 14px}.stats{grid-template-columns:1fr 1fr}.stat{padding:16px}.stat strong{font-size:24px}.stat small{font-size:13px}.eyebrow{font-size:12px}.opportunity{padding:20px}.margin-layout{gap:20px;align-items:center}.ring{width:126px;height:126px}.ring strong{font-size:27px}.profit-breakdown>div{font-size:13px}.panel-title{flex-wrap:wrap}.library>.panel-title{padding:20px}.filters{width:100%;flex-wrap:nowrap}.search{width:auto;flex:1}.search input{width:100%;min-width:0}.filters select{width:130px}.product-form{display:flex;flex-direction:column}.form-main,.analysis-panel{width:100%}.analysis-panel{position:static}.fields-three{grid-template-columns:1fr}.fields-two{grid-template-columns:1fr;gap:0}.footer{font-size:12px;gap:10px}.footer>span:last-child{display:none}.table-footer{font-size:12px;padding:14px}.login{grid-template-columns:1fr}.login-story{min-height:auto;padding:25px}.login-story>div,.login-story>small{display:none}.login-form{padding:50px 25px}.login-form h2{font-size:27px}.login-story .brand{font-size:26px}.login-story .brand-icon{margin:0 10px 0 0}.topbar>span{font-size:14px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Comfortable reading and touch-friendly form controls. */
input,textarea,select{font-size:16px}.filters{flex-wrap:wrap}.search{width:280px}.filters select{width:190px}.search input{font-size:14px}.profile small{line-height:1.5}.stat small,.footnote{line-height:1.7}.table-footer{gap:16px;flex-wrap:wrap}.profit-breakdown>div{gap:16px}.calc-row{gap:16px}.analysis-panel{overflow-wrap:anywhere}.workspace-label{letter-spacing:1px}.analysis-panel .eyebrow{letter-spacing:1px}.stat>div{line-height:1.5}@media(max-width:1200px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.margin-layout{flex-wrap:wrap}.profit-breakdown{min-width:220px}}@media(max-width:700px){.search{width:100%;flex:auto}.filters{flex-wrap:wrap}.filters select{width:100%}.profit-breakdown{min-width:0;width:100%;flex-basis:100%}.margin-layout{justify-content:center}.topbar>span{font-size:14px}.analysis-panel input,.product-form input,.product-form textarea,.login-form input{font-size:16px}}

/* Responsive workspace: full-width content and an accessible mobile drawer. */
.menu-toggle,.menu-close,.menu-backdrop{display:none}
.main,.content,.form-main,.panel,.page-heading>div,.team-layout>section{min-width:0}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
input,select,textarea{max-width:100%}
.button{min-height:44px;white-space:normal;text-align:center}
.icon-button{min-width:44px;min-height:44px}
.thumb{min-width:44px;min-height:44px}
.product-cell>div{min-width:0}
.profit-breakdown b,.calc-row b{overflow-wrap:anywhere;text-align:right}
.modal-close{width:44px;height:44px;z-index:1}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:10px}
dialog img{max-width:calc(100vw - 44px);max-height:calc(100dvh - 64px)}
@media(max-width:960px){
  .main{margin-left:0}
  .topbar{position:sticky;top:0;z-index:10;justify-content:flex-start;gap:12px;min-height:64px;height:auto;padding:10px 20px}
  .topbar>span{min-width:0;overflow-wrap:anywhere}
  .top-tag{margin-left:auto}
  .menu-toggle,.menu-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:9px;background:#fff1e8;color:#bd3b00}
  .menu-close{position:absolute;right:14px;top:20px;font-size:28px;line-height:1}
  .sidebar{width:min(310px,calc(100vw - 36px));padding:28px 20px;padding-bottom:max(24px,env(safe-area-inset-bottom));z-index:40;transform:translateX(-100%);visibility:hidden;transition:transform .25s ease,visibility .25s;box-shadow:12px 0 40px #14200b20}
  .menu-open .sidebar{transform:translateX(0);visibility:visible}
  .menu-open{overflow:hidden}
  .menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#15201188;z-index:30;touch-action:none}
  .sidebar .brand{font-size:26px;padding-right:38px;align-self:flex-start}
  .sidebar .brand>span:last-child{display:inline}
  .sidebar .brand-icon{margin:0 10px 0 0}
  .sidebar .workspace-label{display:block;margin:36px 10px 16px;font-size:12px}
  .sidebar nav{margin-top:0;margin-bottom:30px}
  .sidebar nav a{font-size:16px;gap:13px;justify-content:flex-start;min-height:48px;padding:12px}
  .sidebar .nav-count{display:inline-block;margin-left:auto}
  .sidebar .profile{justify-content:flex-start;gap:10px}
  .sidebar .profile>div,.sidebar .profile form{display:block}
  .sidebar .profile b{max-width:145px}
  .sidebar .profile form{margin-left:auto}
  .insights{grid-template-columns:1fr}
  .highlights{display:block}
  .product-form{grid-template-columns:minmax(0,1fr)}
  .analysis-panel{position:static;width:100%}
  .fields-three{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .topbar{padding:8px 14px;gap:8px}
  .topbar .muted,.topbar b{margin-left:6px}
  .content{padding:24px 16px 0}
  .page-heading{gap:18px}
  .page-heading>div{width:100%}
  .page-heading>.button,.page-heading>.text-link{width:100%;justify-content:center}
  .page-heading h1{font-size:28px;overflow-wrap:anywhere}
  .stats{gap:12px}
  .stat{padding:16px 13px}
  .stat strong{font-size:clamp(21px,5vw,29px);letter-spacing:-.5px}
  .stat small{font-size:13px}
  .insights{gap:16px}
  .opportunity,.highlights,.form-panel,.analysis-panel{padding:20px}
  .panel-title{align-items:flex-start}
  .panel-title .pill{white-space:normal}
  .profit-breakdown>div{font-size:14px;align-items:flex-start}
  .profit-breakdown span{max-width:58%}
  .profit-breakdown b{max-width:50%}
  .filters,.search,.filters select{width:100%;min-width:0}
  .filters{justify-content:flex-start}
  .search input,.filters select{font-size:16px;min-height:46px}
  .fields-three,.fields-two{grid-template-columns:1fr;gap:0}
  .form-panel{margin-bottom:16px}
  .upload{padding:20px 12px}
  .upload input{width:100%;min-width:0;font-size:14px}
  .upload span{font-size:13px}
  .product-form{gap:0}
  .analysis-panel{margin-bottom:16px}
  .analysis-panel .ring{width:180px;height:180px}
  .calc-row{font-size:15px}
  .team-layout{gap:0}
  .team-layout>.panel{margin-bottom:16px}
  /* Product and team tables become labelled cards on phones. */
  .table-scroll{overflow:visible}
  .table-scroll table,.table-scroll tbody{display:block;width:100%;white-space:normal}
  .table-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .table-scroll tbody{padding:0 16px}
  .table-scroll tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;margin-bottom:14px;padding:14px;gap:14px;background:#fff}
  .table-scroll td{display:block;padding:0;border:0;min-width:0;font-size:15px;overflow-wrap:anywhere}
  .table-scroll td:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;letter-spacing:.3px;color:var(--muted);margin-bottom:5px}
  .table-scroll td:first-child{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:14px}
  .table-scroll td:first-child:before{display:none}
  .table-scroll td small,.creator{font-size:14px;overflow-wrap:anywhere}
  .product-name{max-width:none;white-space:normal;overflow:visible;font-size:16px;line-height:1.5}
  .product-cell{align-items:flex-start}
  .product-cell .thumb{width:52px;height:52px}
  .product-row td:last-child{grid-column:1/-1;padding-top:10px;border-top:1px solid var(--line)}
  .product-row td:last-child:before{display:none}
  .product-row td:last-child .icon-button{display:flex;gap:8px;background:#fff1e8;color:#b83a00;font-size:14px;font-weight:600}
  .product-row td:last-child .icon-button:after{content:'Edit product'}
  .mini-track{width:100%;max-width:120px;margin-top:12px;height:4px}
  .table-footer{font-size:13px;padding:16px;gap:8px}
  .alert{align-items:flex-start;overflow-wrap:anywhere}
  .login-form{padding:35px 22px}
  .login-story{padding:24px 22px}
  .image-gallery{gap:8px}
  .image-gallery button{width:calc((100% - 24px)/4);height:auto;aspect-ratio:1}
  .footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){
  .stats{grid-template-columns:1fr}
  .stat strong{font-size:28px}
  .table-scroll tbody tr{gap:12px;padding:12px}
  .content{padding-left:12px;padding-right:12px}
  .opportunity,.highlights,.form-panel,.analysis-panel{padding:16px}
}
/* Shortlisting, shared categories and member account switching. */
.product-actions{display:flex;align-items:center;gap:10px}
.shortlist-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #e2e5dc;background:#fafbf7;border-radius:8px;color:#525c4c;font-size:14px;font-weight:600;white-space:nowrap}
.shortlist-button svg{width:17px;height:17px}
.shortlist-button:hover,.shortlist-button.is-selected{background:#fff0e5;color:#b43800;border-color:#ffd1b9}
.product-actions .icon-button{flex-shrink:0}
.category-help{font-size:14px;margin:-5px 0 24px}
.category-heading{padding:24px}
.category-list{padding:0 24px 24px;display:grid;gap:12px}
.category-list>div{display:flex;align-items:center;gap:12px;background:#f7f8f4;border:1px solid var(--line);padding:14px 16px;border-radius:8px;overflow-wrap:anywhere;min-width:0}
.category-list svg{color:var(--orange)}
.impersonation-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff0e4;border:1px solid #ffd3b8;border-radius:12px;padding:18px 22px;margin-bottom:24px}
.impersonation-banner strong,.impersonation-banner span{display:block;overflow-wrap:anywhere}
.impersonation-banner span{font-size:14px;color:#674d3b;margin-top:3px}
.impersonation-banner .button{white-space:nowrap}
.analysis-panel .ring{--ring-color:var(--orange);background:conic-gradient(var(--ring-color) calc(var(--value)*1%),#f4f1eb 0)}
.analysis-panel .analysis-status{color:#8c4700;background:#fff4e5;font-weight:600}
.analysis-panel[data-selection="best"] .ring{--ring-color:#218453}
.analysis-panel[data-selection="best"] #live-margin,.analysis-panel[data-selection="best"] #live-gross,.analysis-panel[data-selection="best"] #live-net{color:#218453}
.analysis-panel[data-selection="best"] .analysis-status{color:#19683e;background:#e9f7ee;border:1px solid #c9e8d5}
.analysis-panel[data-selection="bad"] .ring{--ring-color:#cc3e45}
.analysis-panel[data-selection="bad"] #live-margin{color:#bf3039}
.analysis-panel[data-selection="bad"] .analysis-status{color:#ac2932;background:#fff0ef;border:1px solid #f3cdcd}
.margin-badge.selection-standard{background:#fff2e4;color:#925000}
.margin-badge.selection-best{background:#e9f7ee;color:#19683e}
.margin-badge.selection-bad{background:#fff0ef;color:#ac2932}
.mini-track.selection-standard i{background:#fe5504}
.mini-track.selection-bad i{background:#cc3e45}
@media(max-width:700px){
  .impersonation-banner{flex-direction:column;align-items:stretch;padding:16px}
  .impersonation-banner form,.impersonation-banner .button{width:100%}
  .product-actions{flex-wrap:wrap;align-items:stretch}
  .product-actions form{flex:1;min-width:140px}
  .product-actions .shortlist-button{width:100%}
  .product-row td:last-child .icon-button{flex:1;min-width:120px}
  .category-list{padding:0 18px 18px}
  .category-heading{padding:20px 18px}
}
/* Inline category editing, available to administrators. */
.category-list>.category-item{display:block}
.category-title{display:flex;align-items:center;gap:12px;min-width:0}
.category-title span{overflow-wrap:anywhere;min-width:0}
.category-editor{margin-top:12px}
.category-editor summary{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 14px;cursor:pointer;color:#b43800;background:#fff0e5;border:1px solid #ffd1b9;border-radius:8px;font-size:14px;font-weight:600;list-style:none}
.category-editor summary::-webkit-details-marker{display:none}
.category-editor summary:focus-visible{outline:3px solid #fe550480;outline-offset:3px}
.category-editor[open] summary{margin-bottom:16px}
.category-editor form{border-top:1px solid var(--line);padding-top:16px}
.category-editor input{background:white}
@media(max-width:700px){.category-editor form .button{width:100%}}
/* Product image gallery and explicit gross profit amounts. */
.product-gallery-trigger{position:relative}
.image-count{position:absolute;right:0;bottom:0;background:#151b17d9;color:white;padding:1px 5px;border-radius:5px 0 0 0;font-size:11px;line-height:1.5;font-weight:600}
.gallery-open{overflow:hidden}
#image-modal{width:min(960px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px;color:#fff;background:#161b19;overflow:auto;overscroll-behavior:contain}
.gallery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.gallery-header h2{color:white;font-size:18px;overflow-wrap:anywhere;min-width:0}
#image-modal .modal-close{position:static;flex-shrink:0;width:44px;height:44px;background:#ffffff15}
.gallery-stage{position:relative;display:grid;place-items:center;background:#0d1210;border-radius:9px;overflow:hidden;height:min(58dvh,560px);min-height:160px;touch-action:pan-y pinch-zoom}
#image-modal #modal-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;object-fit:contain}
.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:46px;height:52px;border:1px solid #ffffff50;border-radius:9px;background:#111b15bb;color:white;font-size:34px;line-height:1}
.gallery-prev{left:12px}.gallery-next{right:12px}
#gallery-error{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;background:#0d1210;color:#fff;padding:24px;text-align:center}
.gallery-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 2px;font-size:13px;color:#dce3da}
#gallery-counter{font-weight:600;color:white}
#gallery-thumbnails{position:relative;display:flex;gap:10px;overflow-x:auto;padding:4px 2px 10px;overscroll-behavior-x:contain}
#gallery-thumbnails button{flex:0 0 72px;width:72px;height:64px;min-height:44px;border:2px solid transparent;border-radius:7px;padding:2px;background:#ffffff15;overflow:hidden}
#gallery-thumbnails button[aria-pressed="true"]{border-color:var(--orange);background:#fe550425}
#image-modal #gallery-thumbnails img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;border-radius:3px}
@media(max-width:700px){
 #image-modal{padding:12px}
 .gallery-header{margin-bottom:10px;gap:8px}
 .gallery-header h2{font-size:16px}
 .gallery-stage{height:52dvh;min-height:140px}
 .gallery-prev,.gallery-next{width:44px;height:48px}
 .gallery-prev{left:6px}.gallery-next{right:6px}
 .gallery-footer{font-size:12px}
 #gallery-thumbnails button{flex-basis:60px;width:60px;height:56px}
}
/* Direct dealer contact via WhatsApp click-to-chat. */
.whatsapp-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #b5dec5;border-radius:8px;background:#edf9f1;color:#176b3b;font-size:14px;font-weight:600;white-space:nowrap}
.whatsapp-button:hover{background:#daf2e3;border-color:#87cba2}
.whatsapp-button svg{width:19px;height:19px}
.product-actions{flex-wrap:wrap;max-width:320px;min-width:150px}
.dealer-chat{margin:0 0 22px}
@media(max-width:700px){.product-actions{max-width:none}.product-actions>.whatsapp-button{flex:1 1 100%}.dealer-chat .whatsapp-button{width:100%}}