*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#203047;font:16px/1.5 system-ui,-apple-system,sans-serif}header{background:#013369;display:flex;align-items:center;gap:22px;padding:8px max(18px,calc((100% - 1080px)/2));color:white}header img{object-fit:cover;width:120px;height:52px}header p{font-size:14px;margin:0}.prototype{background:#e7edf4;text-align:center;font-size:12px;letter-spacing:.02em;padding:7px 14px;color:#364f6b}nav{max-width:1080px;margin:auto;padding:16px 18px;display:flex;align-items:center;gap:18px;border-bottom:1px solid #d6dee7}nav>div{flex:1}nav strong,nav span{display:block}nav span{font-size:13px;color:#637389}nav a{color:#194773;font-weight:700}nav form{margin:0}main{max-width:1080px;margin:22px auto;padding:0 18px}h1{font-size:28px;line-height:1.2;margin:0 0 10px;letter-spacing:-.025em}h2{font-size:20px;line-height:1.3;margin:8px 0 16px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.heading p{margin:0;color:#617086}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch}.card{background:white;border:1px solid #e1e6ed;border-radius:12px;padding:22px;margin-bottom:18px;box-shadow:0 3px 12px #192d4810}.items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.item{margin:0 0 18px}.badge{display:inline-block;font-size:12px;color:#425a73;background:#edf2f7;border-radius:20px;padding:3px 10px}.button,button{display:inline-flex;align-items:center;justify-content:center;background:#c66c2e;color:white;border:0;border-radius:7px;text-decoration:none;padding:10px 16px;font:700 16px/1.3 system-ui;min-height:46px;cursor:pointer;text-align:center;max-width:100%}.secondary{background:#526b85;color:white}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2a72bd;outline-offset:3px}dl{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}dt{color:#637389;font-size:13px}dd{margin:3px 0;font-size:23px;font-weight:700}dd small{font-size:14px;font-weight:500}.muted{color:#637389;font-size:14px}.purchase-list a{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:14px 0;border-top:1px solid #edf0f3;color:inherit;text-decoration:none}.purchase-list small{color:#637389;grid-column:1/-1}.form-card{max-width:640px;margin:0 auto}form .field{margin:16px 0}label{display:block;font-weight:650;margin:12px 0 6px}input,select{font:inherit;padding:11px 12px;border:1px solid #b9c6d5;border-radius:7px;width:100%;min-width:0;background:#fff;color:#203047}form .actions{margin-top:24px}.errorlist{color:#a3221b;padding:10px 10px 10px 25px;background:#fff0ed;border-radius:6px;font-size:14px}.success{background:#eaf6ee;color:#22683f;border-left:4px solid #378551;padding:13px 16px;margin-bottom:18px}.notice,#connection{background:#fff4db;border-left:4px solid #ce8b24;padding:12px 16px;margin:18px 0}.receipt{grid-template-columns:1fr}.receipt>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #edf0f3;padding-bottom:10px}.receipt dd{font-size:17px;text-align:right}.login{max-width:520px;margin:36px auto}.login button{margin-top:24px;width:100%}footer{text-align:center;color:#718095;font-size:12px;padding:16px 18px 30px}[hidden]{display:none!important}@media(max-width:650px){header{padding:10px 18px;gap:14px}header p{font-size:12px}nav{padding:12px 18px;gap:12px}nav strong{font-size:15px}nav button{font-size:14px;padding:8px 10px}main{margin:18px auto}.heading{align-items:flex-start;flex-direction:column;gap:16px}.heading .actions{width:100%}.heading .button{flex:1}.items{grid-template-columns:1fr;gap:0}.card{padding:18px}.purchase-list a{grid-template-columns:1fr}.purchase-list small{grid-column:auto}.receipt>div{gap:10px}.form-card .actions>*{flex:1}h1{font-size:26px}.login{margin:18px auto}.prototype{font-size:11px}}

.product-photo{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:16px auto;border-radius:8px}.product-thumb{width:48px;height:48px;object-fit:contain;border:1px solid #e1e6ed;border-radius:7px;float:right}.item h2 a{color:inherit;text-decoration:none}.correction{border-top:1px solid #e1e6ed;padding:12px 0;margin-top:12px}.correction summary{cursor:pointer;font-weight:650}

/* Compact mobile buttons; desktop dimensions remain unchanged. */
@media(max-width:650px){.button,button{min-height:44px;padding-top:7px;padding-bottom:7px}nav button{padding-top:7px;padding-bottom:7px}}

textarea{font:inherit;width:100%;max-width:100%;padding:11px;border:1px solid #b9c6d5;border-radius:7px}.order-line{border:1px solid #d6dee7;border-radius:8px;padding:14px;min-width:0;margin:16px 0}.order-line legend{font-weight:700}.order-line small{display:block;color:#637389}.order-action{margin-top:16px}.order-heading{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}nav{flex-wrap:wrap}nav>div{min-width:140px}.order-line input[type=checkbox]{width:auto}

.material-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #edf0f3;overflow-wrap:anywhere}.material-row strong{flex-shrink:0}.bake-action{margin-top:18px}button.danger{background:#b42318}button:disabled{opacity:.5;cursor:not-allowed}

.delivery-dates{margin-bottom:12px}.delivery-date-form{margin-bottom:22px}.delivery-select-all,.delivery-card-heading label{display:flex;align-items:center;gap:10px;margin:0}.delivery-select-all input,.delivery-card-heading input{width:22px;height:22px;flex:0 0 22px}.delivery-batch .actions>*{flex:1}.delivery-items{padding-left:20px}.delivery-items li{padding:7px 0}.delivery-status{display:flex;gap:8px;flex-wrap:wrap}.collect-amount{font-size:19px}.delivery-single .actions>*{flex:1;min-width:0;white-space:normal}.delivery-notes{background:#f4f6f8;padding:12px;border-radius:7px}.completed-delivery{border-top:1px solid #e1e6ed;padding:10px 0}

/* Business identity and private profile editor. */
header.business-brand{gap:10px;padding:7px 18px;min-width:0;flex-wrap:nowrap}
.business-brand>div{min-width:0;overflow-wrap:anywhere}.business-brand strong{display:block;font-size:21px;line-height:1.15}.business-brand small{display:block;font-size:12px;margin-top:3px}
header.business-brand img.business-logo{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
.business-links{padding:5px 18px;display:flex;gap:10px;flex-wrap:wrap;font-size:13px;overflow-wrap:anywhere}.business-links details{width:100%}
.business-settings{min-width:0}.business-settings input[type=checkbox]{width:20px;height:20px}.business-settings fieldset{min-width:0}.business-settings .field{min-width:0;overflow-wrap:anywhere}.business-logo-preview{max-width:100%;width:110px;height:90px;object-fit:contain}

/* Main navigation buttons are mobile-only; desktop link styling is unchanged. */
@media(max-width:650px){
 nav.app-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;padding:8px 18px}
 nav.app-nav>div{grid-column:1/-1;min-width:0;overflow-wrap:anywhere}
 nav.app-nav>a.main-nav-link,nav.app-nav>form>button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;height:40px;min-height:40px;padding:4px 6px;border:0;border-radius:7px;background:#53697b;color:#fff;font:700 13px/1.2 system-ui,-apple-system,sans-serif;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
 nav.app-nav>a.main-nav-link[aria-current=page]{background:#c66c2e;color:#fff}
 nav.app-nav>form{display:flex;min-width:0;margin:0}
}
