@font-face{font-family:Jost;src:url('/erp-assets/jost-400.ttf')}@font-face{font-family:Jost;src:url('/erp-assets/jost-800.ttf');font-weight:800}@font-face{font-family:Roam;src:url('/erp-assets/roam-regular.ttf')}*{box-sizing:border-box}body{margin:0;background:#f5f4f0;color:#191b20;font-family:Jost,Arial,sans-serif;font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ee4b91;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(34px,4.3vw,60px);font-weight:800;line-height:1.02;letter-spacing:-.055em;margin-bottom:15px}h2{font-size:24px;letter-spacing:-.025em}h3{font-size:19px;margin-bottom:8px}p{color:#66696f}small,.small{font-size:12px}.muted{color:#94979b}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:800;display:block;margin-bottom:12px}.brand{display:flex;flex-direction:column;gap:12px;text-decoration:none}.brand img{width:155px;height:57px;object-fit:contain;object-position:left}.brand span{font-size:10px;letter-spacing:.18em}.erp-shell{display:flex;min-height:100dvh}.erp-sidebar{width:244px;flex-shrink:0;position:fixed;inset:0 auto 0 0;background:#101113;color:#f6f5f1;padding:34px 25px;display:flex;flex-direction:column;overflow-y:auto;z-index:5}.workspace{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.1em;margin:45px 0 23px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a4cf86}.erp-sidebar nav{display:flex;flex-direction:column;gap:7px}.erp-sidebar nav button{background:none;border:0;color:#a7a9ad;display:flex;gap:13px;text-align:left;padding:12px 11px;border-radius:7px;align-items:center}.erp-sidebar nav button.active{background:#29252b;color:#ff86b9;border:1px solid #44313d}.erp-sidebar nav button:hover{background:#25262a}.sidebar-foot{margin-top:auto;padding-top:60px}.sidebar-foot a{font-size:13px;color:#c4c5c9;text-decoration:none}.sidebar-foot p{color:#faf8f4;font-size:18px;font-weight:800;margin:23px 0 8px}.erp-main{min-width:0;width:calc(100% - 244px);margin-left:244px}.erp-topbar{height:80px;border-bottom:1px solid #deded9;display:flex;align-items:center;gap:14px;padding:0 40px;background:#faf9f6}.erp-topbar>a{font-size:11px;letter-spacing:.1em;text-decoration:none}.erp-topbar>span{color:#a7a7a3}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}.button{border:1px solid transparent;padding:11px 18px;font-weight:600;font-size:14px;display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:6px;text-decoration:none;min-height:43px}.button.primary{background:#1c1d21;color:white}.button.pink{background:#ef4b92;color:#111}.button.secondary{background:#fff;color:#202329;border-color:#dbdcd7}.button.danger{background:#fff1f0;color:#a62d2d;border-color:#f2cccc}.button.small{min-height:34px;font-size:12px;padding:7px 12px}.button.link{background:none;color:#a23065;padding:0;text-decoration:underline;min-height:30px}.erp-content{max-width:1540px;margin:0 auto;padding:40px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-head p{margin-bottom:0;max-width:680px}.page-head h1{font-size:clamp(32px,3.7vw,52px)}.page-head .eyebrow{color:#a54870}.actions{display:flex;gap:9px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{border:1px solid #deded7;background:white;padding:22px;border-radius:9px}.metric .label{font-size:12px;color:#656970}.metric strong{display:block;font-size:38px;line-height:1.1;letter-spacing:-.04em;margin:11px 0}.metric small{color:#92959a}.panel{background:#fff;border:1px solid #deded7;border-radius:9px;margin-bottom:22px;overflow:hidden}.panel.pad{padding:25px}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid #e8e8e3;gap:15px}.panel-head h2{font-size:20px;margin:0}.panel-head p{margin:5px 0 0;font-size:13px}.grid-two{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;align-items:start}.checklist{display:flex;flex-direction:column}.checkrow{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #efefe8}.checkrow:last-child{border-bottom:0}.checknum{width:27px;height:27px;background:#f3f1ed;flex-shrink:0;border-radius:50%;font-size:12px;display:grid;place-items:center}.checkrow.complete .checknum{background:#e8f2df;color:#4b6736}.checkrow strong{display:block;font-weight:500}.checkrow small{color:#92959a}.badge{display:inline-flex;align-items:center;gap:6px;background:#ececea;color:#666c72;border:1px solid #e0e0dc;padding:4px 8px;border-radius:5px;font-size:11px;white-space:nowrap;font-weight:600}.badge.green{background:#edf5e6;color:#4b6b3d;border-color:#d7e8ca}.badge.orange{background:#fff3e5;color:#9c5d14;border-color:#f2dfc1}.badge.pink{background:#fff0f7;color:#a43f70;border-color:#f4d3e4}.badge.red{background:#fff0ee;color:#a94e42;border-color:#f4d3cd}.badge.dark{background:#28292e;color:white;border-color:#36373c}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{background:#fafaf7;text-transform:uppercase;letter-spacing:.07em;color:#888c90;font-size:10px;text-align:left;padding:12px 22px}td{padding:18px 22px;border-top:1px solid #edede8;vertical-align:middle}td strong{font-size:14px;display:block}td small{display:block;color:#95989b;font-size:11px}.clickable{cursor:pointer}.clickable:hover{background:#fcfafb}.right{text-align:right}.empty{padding:55px 25px;text-align:center}.empty h2{font-size:22px;margin-bottom:8px}.empty p{max-width:470px;margin:0 auto 20px}.notice{padding:16px 19px;background:#fff8e9;border:1px solid #ecdfc2;color:#73572d;border-radius:7px;font-size:13px;margin-bottom:20px}.notice p{color:inherit;margin:5px 0 0}.notice.success{background:#edf5e8;border-color:#d4e7c6;color:#456238}.notice.error{background:#fff0ed;border-color:#f0d5d0;color:#9c4037}.notice.neutral{background:#f5f5f2;border-color:#e1e1db;color:#74787c}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-grid>div{padding:10px 0}.detail-grid small{display:block;color:#979a9d;font-size:11px;text-transform:uppercase}.inline-label{color:#85888c;font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .wide{grid-column:1/-1}label{display:block;font-size:12px;color:#6d7278;font-weight:500}label input,label select,label textarea{display:block;margin-top:6px;width:100%;border:1px solid #d9ddd9;background:white;border-radius:5px;padding:10px 12px;color:#212329;min-height:43px}input[type=checkbox]{accent-color:#eb4d93;width:17px;height:17px;min-height:0;display:inline-block;margin:0 8px 0 0}.checklabel{display:flex;align-items:center;color:#353a40;font-size:13px;padding:8px 0}.form-grid h3{margin:14px 0 0}.form-actions{margin-top:24px;display:flex;gap:10px;align-items:center;justify-content:flex-end}.field-help{font-size:11px;color:#95999d;margin-top:5px;font-weight:400}.subtle-rule{border:0;border-top:1px solid #e6e8e1;margin:25px 0}dialog{border:1px solid #d3d5ce;border-radius:12px;max-width:760px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);padding:0;box-shadow:0 20px 80px #0003;color:#202329}dialog::backdrop{background:#101119aa;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid #e7e8e2;position:sticky;top:0;background:white;z-index:2}.dialog-head h2{margin:0;font-size:23px}.dialog-head button{border:0;background:#f1f1ed;width:32px;height:32px;border-radius:50%;font-size:23px}#dialog-content{padding:25px;overflow:auto}.error-text{color:#a33636;font-size:13px}.email-body{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 Jost,Arial,sans-serif;background:#f7f7f2;border:1px solid #e4e5df;padding:18px;border-radius:6px;max-height:380px;overflow:auto}.email-card{padding:20px 25px;border-top:1px solid #e8e9e2;display:grid;grid-template-columns:1fr auto;gap:15px}.email-card strong{display:block}.email-card p{font-size:12px;margin:5px 0}.email-card .small{color:#92979b}.activity{padding:16px 0;border-bottom:1px solid #eee}.activity:last-child{border:0}.activity strong{font-size:13px}.activity small{color:#999;display:block}.summary{background:#131519;color:#fff;border:0;padding:27px;border-radius:9px}.summary p{color:#a7abb0}.summary h2{font-size:27px}.summary-row{display:flex;justify-content:space-between;gap:20px;margin:14px 0;font-size:14px}.summary-row.total{border-top:1px solid #3b3d41;padding-top:18px;font-size:21px;font-weight:800}.summary .button{width:100%;margin-top:14px}.summary .small{color:#a7abb0;margin-top:16px;display:block}.quote-option{border:1px solid #dcded6;border-radius:6px;display:flex;justify-content:space-between;align-items:center;padding:16px;margin:9px 0;gap:15px;background:#fff}.quote-option.selected{border:2px solid #ef4b92;background:#fff8fb}.quote-option input{margin-right:10px;accent-color:#e64188}.quote-option strong{display:block}.quote-option small{color:#96999e;display:block}.quote-option .price{font-size:22px;font-weight:800}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{background:#fff;border:1px solid #dedfd6;border-radius:9px;overflow:hidden}.product-photo{height:240px;display:flex;align-items:center;justify-content:center;background:#f7edf2}.product.mpm .product-photo{background:#fff2d9}.product.cit .product-photo{background:#edf2e7}.product-photo img{height:85%;max-width:80%;object-fit:contain;filter:drop-shadow(4px 12px 12px #0002)}.product-copy{padding:20px}.product-copy h3{font-size:18px;line-height:1.2;min-height:44px}.product-copy .price{font-weight:800;font-size:23px}.product-copy p{font-size:12px;margin:3px 0 16px}.quantity{display:flex;border:1px solid #d9dcd5;align-items:center;border-radius:5px;overflow:hidden;width:100%}.quantity button{border:0;background:#f4f4ef;width:37px;height:38px;font-size:21px;flex-shrink:0}.quantity input{width:100%;border:0;text-align:center;font-size:15px;min-width:35px;-moz-appearance:textfield}.quantity input::-webkit-inner-spin-button{display:none}.buyer-header{background:#111215;color:white;display:flex;justify-content:space-between;align-items:center;padding:22px max(25px,5vw);gap:20px}.buyer-header .brand{flex-direction:row;align-items:center;gap:25px}.buyer-header .brand img{height:46px;width:130px}.buyer-header .brand span{border-left:1px solid #4c4c51;padding-left:25px;color:#c6c6c8;font-size:11px}.buyer-header nav{display:flex;align-items:center;gap:17px;font-size:12px}.buyer-header a{text-decoration:none}.buyer-header button{color:white;background:none;border:1px solid #555;border-radius:5px;padding:6px 12px;font-size:12px}.buyer-wrap{max-width:1370px;margin:0 auto;padding:55px 40px}.buyer-hero{display:grid;grid-template-columns:1.25fr 1fr;gap:70px;align-items:center;min-height:calc(100dvh - 230px)}.buyer-hero h1{font-size:clamp(58px,6vw,94px);max-width:700px}.buyer-hero .eyebrow{color:#c0437d}.buyer-hero p{font-family:Jost,Arial,sans-serif;max-width:500px;font-size:17px}.can-lineup{display:flex;justify-content:center;align-items:flex-end;gap:10px;padding:25px 15px 10px;background:radial-gradient(ellipse at 50% 62%,#f8dfe9,transparent 67%);height:285px;max-width:520px}.can-lineup img{height:240px;object-fit:contain;max-width:31%;filter:drop-shadow(7px 17px 10px #0002)}.can-lineup img:nth-child(2){height:270px}.auth-panel{padding:34px;background:white;border:1px solid #dedfd7;border-radius:10px;max-width:470px}.auth-panel h2{font-size:28px;margin-bottom:5px}.auth-panel p{font-size:13px;margin-bottom:25px}.auth-panel form{display:flex;flex-direction:column;gap:17px}.auth-panel .button{width:100%}.auth-switch{margin-top:20px;text-align:center;font-size:12px}.auth-switch button{border:0;background:none;font:inherit;text-decoration:underline;color:#b13d75}.buyer-layout{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:27px;align-items:start}.buyer-layout .summary{position:sticky;top:22px}.buyer-header .badge{background:#28292d;color:#e9e9e5;border-color:#414346}.buyer-footer{padding:30px 40px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid #dedfd7;font-size:11px;color:#939796}.buyer-footer strong{color:#212328;font-size:14px;letter-spacing:.07em}.buyer-footer a{color:inherit}.erp-footer{display:flex;justify-content:space-between;gap:20px;margin:0 40px;padding:22px 0;border-top:1px solid #dfe1d9;color:#939794;font-size:11px}.erp-footer span:first-child{font-weight:800;color:#282b2d;letter-spacing:.08em}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:100;padding:14px 23px;border-radius:8px;background:#25272c;color:white;box-shadow:0 8px 25px #0002;max-width:calc(100% - 30px);font-size:14px;display:none}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.toolbar input,.toolbar select{border:1px solid #d9dcd5;border-radius:5px;padding:10px 12px;background:white;min-width:0}.toolbar input{flex:1}.pale-card{padding:23px;background:#f7f7f2;border:1px solid #e4e6de;border-radius:7px}.pale-card .button{margin-top:10px}.connection-card{padding:26px;border:1px solid #dfe2d9;background:white;border-radius:9px}.connection-card h2{margin:10px 0}.connection-card p{font-size:13px}.shipping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.breakword{overflow-wrap:anywhere;word-break:break-word}.zero{margin:0}.my15{margin:15px 0}.mb20{margin-bottom:20px}.mt20{margin-top:20px}.nowrap{white-space:nowrap}#workspace [hidden],#buyer-main [hidden]{display:none!important}
@media(min-width:1450px){.erp-content{padding-top:48px}.product-photo{height:290px}}@media(max-width:1150px){.erp-sidebar{width:210px;padding:28px 18px}.erp-main{margin-left:210px;width:calc(100% - 210px)}.erp-content{padding:28px}.erp-topbar{padding:0 28px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{grid-template-columns:1fr}.buyer-layout{grid-template-columns:minmax(0,1fr) 285px}.product-grid{gap:10px}.product-copy{padding:14px}.product-photo{height:205px}.buyer-hero{gap:35px}.buyer-header nav .badge{display:none}}@media(max-width:800px){.erp-shell{display:block}.erp-sidebar{position:static;width:100%;padding:20px 20px 0;overflow:visible}.erp-sidebar .brand{flex-direction:row;align-items:center;gap:20px}.erp-sidebar .brand img{width:120px;height:42px}.erp-sidebar .brand span{font-size:9px}.workspace,.sidebar-foot{display:none}.erp-sidebar nav{flex-direction:row;overflow-x:auto;margin-top:20px;padding-bottom:13px;gap:8px;scrollbar-width:none}.erp-sidebar nav button{white-space:nowrap;padding:10px 12px;font-size:12px}.erp-main{margin:0;width:100%}.erp-topbar{padding:13px 20px;min-height:65px;height:auto;flex-wrap:wrap;gap:8px}.erp-topbar>strong{font-size:13px}.erp-topbar .badge{display:none}.topbar-right{gap:7px}.erp-content{padding:25px 20px}.erp-footer{margin:0 20px}.page-head{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:24px}.page-head h1{font-size:39px}.page-head p{font-size:13px}.shipping-grid{grid-template-columns:1fr}.buyer-wrap{padding:32px 20px}.buyer-hero{grid-template-columns:1fr;gap:30px}.buyer-hero h1{font-size:70px;max-width:500px}.buyer-hero p{max-width:500px}.can-lineup{height:210px}.can-lineup img{height:180px}.can-lineup img:nth-child(2){height:205px}.auth-panel{max-width:none;padding:26px}.buyer-layout{grid-template-columns:1fr}.buyer-layout .summary{position:static}.product-photo{height:220px}.buyer-header{padding:17px 20px}.buyer-header .brand{gap:12px}.buyer-header .brand img{width:100px;height:37px}.buyer-header .brand span{font-size:9px;padding-left:12px}.buyer-header nav{gap:10px;font-size:10px}.buyer-footer{padding:25px 20px;flex-direction:column}.email-card{padding:18px;grid-template-columns:1fr}.grid-two{gap:0}}@media(max-width:480px){.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.metric-grid{gap:10px}.metric{padding:17px}.metric strong{font-size:32px}.metric .label{font-size:11px}.metric small{font-size:10px}.product-grid{grid-template-columns:1fr}.product{display:grid;grid-template-columns:105px 1fr}.product-photo{height:205px}.product-photo img{max-width:85%;height:80%}.product-copy{padding:19px 16px}.product-copy h3{min-height:0;font-size:18px}.product-copy p{margin-bottom:9px}.product-copy .price{font-size:20px}.quantity{max-width:175px}.buyer-hero h1{font-size:61px}.buyer-hero .can-lineup{max-width:370px}.erp-footer span:last-child{max-width:180px;text-align:right}.panel.pad{padding:19px}.panel-head{padding:18px}.form-actions{flex-wrap:wrap}.form-actions .button{flex:1}.topbar-right .button{font-size:10px;padding:7px 9px}.dialog-head,#dialog-content{padding:19px}.detail-grid{grid-template-columns:1fr}.quote-option{padding:13px}.quote-option .price{font-size:20px}.buyer-header nav>a{display:none}}
/* Buyer ordering improvements */
[hidden]{display:none!important}.buyer-header nav{flex-wrap:wrap;gap:12px}.buyer-header nav [aria-current=page]{color:#ef4b92;text-decoration:underline;text-underline-offset:5px}.auth-switch{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.buyer .summary-row{gap:12px}.buyer .summary-row span{min-width:0;overflow-wrap:anywhere}.buyer .summary-row strong{flex-shrink:0}.location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.order-cards{display:grid;gap:4px}.order-cards h2{overflow-wrap:anywhere}.order-progress{list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:25px 0}.order-progress li{border-top:4px solid #deded7;padding-top:8px;font-size:12px;color:#656970}.order-progress li.complete{border-color:#ea4d92;color:#191b20}.invoice-summary{padding:18px;background:#f5f4f0;border-radius:6px}.buyer dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ccc;border-radius:12px;overscroll-behavior:contain}.buyer dialog::backdrop{background:#101113aa}.buyer-dialog-body{padding:26px;overflow-wrap:anywhere}.buyer input,.buyer select,.buyer textarea{min-width:0;font-size:16px}.buyer button,.buyer a.button{min-height:44px}.buyer .product-copy small{display:block;color:#66696f;font-size:11px}.buyer .order-cards .panel-head{align-items:flex-start}.buyer .order-cards .panel-head h2{font-size:22px}
@media(max-width:700px){.buyer-header{align-items:flex-start;padding:20px;gap:14px}.buyer-header nav{justify-content:flex-end;font-size:12px}.buyer-header .brand img{width:110px}.location-grid{grid-template-columns:1fr}.order-progress{grid-template-columns:1fr;gap:5px}.order-progress li{border-top:0;border-left:4px solid #deded7;padding:3px 0 3px 10px}.order-progress li.complete{border-color:#ea4d92}.buyer .page-head,.buyer .panel-head{flex-direction:column;align-items:stretch}.buyer .summary{position:static}.buyer-dialog-body{padding:22px}.buyer .actions .button{flex:1 1 auto}.buyer-wrap{padding-bottom:calc(35px + env(safe-area-inset-bottom))}}
/* Staff operations follow the NH Retail workspace system; buyer styles stay scoped. */
body.admin{background:#f5f5f7;color:#1d1d22;font-size:15px}body.admin .erp-topbar{height:66px;background:#fff;border-color:#dedee5;padding:0 28px}body.admin .erp-sidebar{background:#1c1c1f;padding:26px 18px;border-right:1px solid #36363d}body.admin .erp-sidebar nav button{min-height:46px;border-radius:11px;font-size:14px;padding:11px 12px}body.admin .erp-sidebar nav button.active{background:#322331;border-color:transparent}body.admin .erp-content{padding:30px;max-width:1280px}body.admin h1,body.admin .page-head h1{font-size:34px;font-weight:800;letter-spacing:-1px;line-height:1.15}body.admin .eyebrow{font-size:11px;letter-spacing:.05em;font-weight:400;color:#686872}body.admin .page-head p{font-size:14px;line-height:1.5}body.admin .panel,body.admin .metric{border-radius:18px;border-color:#dedee5;box-shadow:0 4px 18px #20202805}body.admin .button{min-height:44px;border-radius:11px;font-size:14px;padding:10px 15px}body.admin .button.primary{background:#ef86d3;color:#281321}body.admin .metric strong{font-size:31px}body.admin .metric .label{font-size:13px}body.admin input,body.admin select,body.admin textarea{min-height:46px;border-radius:10px;font-size:16px}body.admin table th{font-size:11px;letter-spacing:.04em;font-weight:400}body.admin table td{font-size:14px;padding-top:16px;padding-bottom:16px}body.admin .badge{border-radius:7px}body.admin dialog{border-radius:20px;border:1px solid #dedee5;padding:0;max-height:calc(100dvh - 24px);overscroll-behavior:contain}body.admin .dialog-head{padding:20px 24px}body.admin .dialog-head h2{font-size:24px;letter-spacing:-.5px}body.admin .dialog-head>button{width:44px;height:44px;border-radius:11px}body.admin #toast{border-radius:13px;font-size:14px}body.admin .erp-footer{font-size:12px;color:#71717c}
@media(max-width:900px){body.admin .erp-content{padding:24px 16px 30px}body.admin .erp-topbar{padding:12px 16px;height:auto;min-height:62px;flex-wrap:wrap}body.admin .erp-sidebar{padding:14px 16px}body.admin .erp-sidebar nav{gap:6px}body.admin .erp-sidebar nav button{white-space:nowrap;font-size:13px;padding:10px 12px}body.admin .page-head h1{font-size:30px}body.admin .actions .button{min-height:46px}body.admin .panel.pad{padding:20px}body.admin .metric{padding:17px}body.admin .metric strong{font-size:28px}body.admin dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);border-radius:18px}body.admin .dialog-head{padding:16px 18px}}

/* Application decisions stay visible and comfortable to tap on phones. */
.application-section{margin-bottom:26px}.application-section>.panel-head{padding:0 0 18px;border:0}.application-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.application-card{margin:0;min-width:0}.application-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.application-card h3{margin:0 0 5px;font-size:22px;line-height:1.2;overflow-wrap:anywhere}.application-card-head p{margin:0}.application-contact{line-height:1.8;overflow-wrap:anywhere}.application-contact a{color:inherit;text-underline-offset:3px}.application-actions{display:flex;gap:10px;margin-top:20px}.application-actions .button{flex:1;min-height:48px}.application-review{margin-top:12px}.customer-mail{max-width:350px;white-space:normal;line-height:1.5}.mail-sent{color:#497342}button[disabled]{cursor:wait;opacity:.6}.application-section .small{font-size:13px}
@media(max-width:1050px){.application-grid{grid-template-columns:1fr}}@media(max-width:480px){.application-card-head{flex-direction:column}.application-actions{flex-wrap:wrap}.application-actions .button{min-width:110px}body.admin .application-section>.panel-head{align-items:flex-start;flex-direction:column}.application-card{padding:20px}.application-card .button{font-size:14px}}
/* A consistent, readable New History interface, with square corners. */
body.admin,body.buyer{background:#fff;color:#111215}
body.admin .panel,body.admin .metric,body.admin .button,body.admin input,body.admin select,body.admin textarea,body.admin .badge,body.admin dialog,body.admin .dialog-head>button,body.admin #toast,body.admin .erp-sidebar nav button,body.buyer .panel,body.buyer .product,body.buyer .summary,body.buyer .button,body.buyer input,body.buyer select,body.buyer textarea,body.buyer .badge,body.buyer dialog,body.buyer .auth-panel,body.buyer .quantity,.notice,.connection-card,.email-body,.quote-option,.invoice-summary{border-radius:0!important}
body.admin .erp-sidebar nav button{color:#fff}body.admin .erp-sidebar nav button.active{background:#ef86d3;color:#111215}
body.admin .erp-content{max-width:1540px}body.admin p,body.buyer p,body.admin label,body.buyer label,body.admin .small,body.buyer .small,body.admin .muted,body.buyer .muted,body.admin td small,body.admin th,body.admin .metric small,body.admin .metric .label,body.admin .detail-grid small,body.admin .checkrow small,body.admin .field-help,body.buyer .field-help,body.buyer .product-copy small,body.admin .email-card .small{color:#34363c}
body.admin .summary p,body.admin .summary .small,body.buyer .summary p,body.buyer .summary .small{color:#fff}
body.admin label,body.buyer label{font-size:14px}body.admin small,body.buyer small,body.admin .small,body.buyer .small{font-size:13px;line-height:1.6}
body.admin .notice.neutral,body.buyer .notice.neutral{background:#fff;border:1px solid #a0a0a4;color:#111215}
.readiness-progress{width:100%;height:8px;border:0;accent-color:#ef86d3}.readiness-progress::-webkit-progress-bar{background:#ececec}.readiness-progress::-webkit-progress-value{background:#a03575}.checkrow{align-items:center}.checkrow>div{flex:1;min-width:0}.checkrow .button{flex-shrink:0}
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:16px;margin:24px 0}.report-grid .metric{margin:0;padding:18px}.report-grid .metric strong{font-size:30px}.report-value{font-size:38px;font-weight:800}
.record-link{background:none;border:0;padding:0;color:#111215;text-align:left;text-decoration:underline;text-underline-offset:4px;font-weight:800;min-height:44px}.history-pager{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:16px 0 26px}.history-search{flex-wrap:wrap}.history-search input{min-height:46px}.history-search select{min-height:46px}.account-readiness,.template-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #d9d9dd}.account-readiness:last-child,.template-row:last-child{border:0}.account-readiness p,.template-row p{margin:6px 0}.thread-message{padding:18px 0;border-bottom:1px solid #d9d9dd}.thread-message summary{font-weight:800;cursor:pointer;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.checkout-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:26px}.checkout-steps button{background:#fff;border:1px solid #999;color:#111215;text-align:left;padding:14px 16px;font-size:15px;display:flex;align-items:center;gap:12px;min-height:56px}.checkout-steps [aria-current=step]{border:2px solid #111215;background:#fff0fa;font-weight:800}.checkout-steps button span{font-weight:800}.checkout-dock{display:none}.delivery-address,.freight-options{padding:18px;border:1px solid #b0b0b5;background:#fff}.delivery-address summary,.freight-options summary{cursor:pointer;color:#111215;font-size:15px}.delivery-address summary span{display:block;text-decoration:underline;margin-top:10px}.delivery-address>summary::marker{color:#111215}body.buyer .order-progress{grid-template-columns:repeat(6,minmax(0,1fr))}.order-progress li{font-size:13px}
body:has(dialog[open]){overflow:hidden}body.admin dialog{overflow:hidden}body.admin dialog[open]{display:flex;flex-direction:column}body.admin .dialog-head{flex-shrink:0}body.admin #dialog-content{overflow-y:auto;overscroll-behavior:contain}body.buyer dialog{overscroll-behavior:contain}
@media(max-width:800px){.checkout-wrap{padding-bottom:calc(145px + env(safe-area-inset-bottom))}.checkout-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:15;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:2px solid #111215;box-shadow:0 -5px 18px #1112150d}.checkout-dock>div{min-width:0;flex-shrink:0}.checkout-dock strong{display:block;font-size:23px}.checkout-dock small{display:block;font-size:12px;color:#34363c}.checkout-dock .button{min-height:50px;font-size:15px;padding:12px 16px;flex:0 1 230px}.checkout-steps{gap:7px;margin-bottom:22px}.checkout-steps button{padding:12px 8px;display:block;font-size:13px;line-height:1.25}.checkout-steps button span{display:block;font-size:17px;margin-bottom:5px}.checkout-summary{margin-top:0}.checkout-summary #submit-order{display:none}.checkout-summary>p{margin-bottom:0}.buyer-layout{gap:20px}body.buyer .product{grid-template-columns:90px minmax(0,1fr)}body.buyer .product-photo{height:170px}body.buyer .product-photo img{height:80%;max-width:80%}body.buyer .product-copy{padding:14px}body.buyer .product-copy h3{font-size:17px;margin-bottom:5px}body.buyer .product-copy small{font-size:12px}body.buyer .product-copy p{font-size:12px}.quantity button{height:44px;min-width:44px}.quantity input{height:44px}.buyer-footer{padding-bottom:30px}.template-row,.account-readiness{align-items:flex-start;flex-direction:column;gap:8px}.history-search{align-items:stretch}.history-search input{flex:1 1 100%}.history-pager{align-items:flex-start}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-grid .metric strong{font-size:26px}.checkrow .button{font-size:12px;padding:8px}body.buyer .order-progress{grid-template-columns:1fr}.buyer .form-grid>details{grid-column:1/-1}}
/* Keep the phone header compact and the primary tabs within one swipe. */
@media(max-width:700px){body.buyer .buyer-header{flex-wrap:wrap;gap:12px;padding:16px 20px}body.buyer .buyer-header .brand{flex:1 1 100%;gap:14px}body.buyer .buyer-header nav{flex:1 1 100%;width:100%;max-width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}body.buyer .buyer-header nav button{flex:0 0 auto;padding:8px;white-space:nowrap}body.buyer .buyer-header .brand img{height:34px;width:110px}}
