:root{font-family:Arial,sans-serif;color:#251f21;background:#f5efe3}*{box-sizing:border-box}body{margin:0}main{max-width:900px;margin:auto;background:white;padding:28px;min-height:100vh}h1{font-size:28px}h2{font-size:21px;margin-top:28px}label{display:block;margin:16px 0}input,select,button,a{font:inherit}input,select{display:block;max-width:100%;width:100%;padding:12px;border:1px solid #ccc;border-radius:4px;margin-top:6px;min-height:44px}button,a{display:inline-block;border:1px solid #bbb;border-radius:4px;background:white;color:#251f21;padding:12px;min-height:44px;margin:6px;cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be0030}.note{color:#585254}.product{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #eae9ea;padding:14px 0}.product>div{min-width:0;overflow-wrap:anywhere}.product label{width:80px;flex:none}.product input{width:80px;text-align:center}small{display:block;color:#585254;margin-top:5px}.error{color:#b00020}[hidden]{display:none!important}#history a{display:block}#status{white-space:pre-wrap;line-height:1.7}

.check{display:flex;align-items:center;gap:10px}.check input{display:inline;width:22px;min-height:22px;margin:0}#admin{border-block:1px solid #ccc;padding:16px 0}fieldset{border:1px solid #ccc}#users>div{border-bottom:1px solid #ccc;padding:12px 0}
#admin,#result{padding:20px 16px;border:1px solid #eae9ea;border-radius:8px;margin:24px 0}#admin h2,#result h2{margin-top:0}#users>div{padding:16px 4px}h1,h2,h3,h4{overflow-wrap:anywhere;line-height:1.5}#result a,#result button{max-width:100%}@media(max-width:400px){main{padding:20px}#admin,#result{padding:16px 12px}}
/* Sample app layout, mobile first. */
:root{--ink:#251f21;--muted:#585254;--line:#eae9ea;--teal:#be0030;--soft:#fbf0f2}body{background:#f5efe3;line-height:1.55}main{max-width:1080px;padding:32px 40px}h1{margin:0 0 12px;font-size:30px}h2{margin:24px 0 16px}.note{background:#f5efe3;border-radius:8px;padding:12px 16px;font-size:14px}nav{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:24px}nav button{margin:0;border-color:transparent;background:#f7f6f6;font-weight:600}nav button[aria-current=page]{color:var(--teal);background:var(--soft);border-color:#be0030}button,a{transition:background .12s}button:hover,a:hover{background:#f9f1e5}#logout{float:left;margin-top:0;color:var(--muted)}#new-order-screen,#saved-orders{clear:both}#new-order-screen>label{max-width:680px}input,select{background:#fff;color:var(--ink);border-color:#c0bebf}input:focus,select:focus{border-color:var(--teal)}#products{border:1px solid var(--line);border-radius:10px;padding:0 18px;margin:20px 0}.product:last-child{border-bottom:0}.product>div{font-weight:600}.product small{font-weight:400}.product input{font-size:18px}#count{font-weight:600;color:var(--teal)}#save,#save-share{background:var(--teal);border-color:var(--teal);color:#fff;font-weight:600}#new{color:var(--muted)}#share-support{font-size:14px;color:var(--muted);max-width:720px}#history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#history button{display:block;width:100%;text-align:right;margin:0;padding:18px;line-height:1.7;border-color:var(--line);border-radius:8px}#history-result{border:1px solid #d8b1b8;background:#fffcf8;border-radius:10px;padding:20px;margin-top:24px}#history-detail p{margin:10px 0;overflow-wrap:anywhere}#history-title{margin-top:0}#history-status{font-size:14px;color:var(--muted)}#admin{background:#fafafa}#status{background:var(--soft);border-right:4px solid #be0030;border-radius:4px;padding:12px 16px;margin-top:20px}#status:empty{display:none}button:disabled{opacity:.55;cursor:wait}@media(max-width:600px){main{padding:22px 18px}h1{font-size:26px}nav{gap:6px}nav button{flex:1;white-space:normal;padding:10px;font-size:15px}#history{grid-template-columns:1fr}#products{padding:0 12px}.product{gap:12px}#save,#save-share{width:100%;margin:6px 0}#history-result{padding:16px}#logout{font-size:14px;padding:8px 12px}}
/* Clearer workspace hierarchy, no changes to permissions or order actions. */
main{border-top:6px solid #be0030}nav{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.98);padding-block:12px}nav button{border-radius:7px}#new-order-screen>h2,#saved-orders>h2{font-size:24px;margin-block:22px}#new-order-screen>label{background:#fafbfa;padding:12px 16px;border:1px solid #eae9ea;border-radius:8px;margin-block:12px;max-width:none;font-weight:600}#new-order-screen>label input,#new-order-screen>label select{font-weight:400}#products{margin-top:24px;background:#fff;box-shadow:0 3px 14px #251f2108}.product{padding:18px 0}.product label{font-size:13px;color:#585254}.product input{margin-top:8px;background:#f9f5ee;border-color:#d8b1b8;color:#251f21;font-weight:600}#count{display:inline-block;background:#fbf0f2;border-radius:20px;padding:7px 16px;margin:16px 0}#new-order-screen>p:not(#count):not(#status){color:#585254;font-size:14px}#save,#save-share{padding:14px 24px;border-radius:7px;box-shadow:0 2px 6px #be003017}#new{border:1px dashed #c9b6a3;background:#fff;border-radius:7px;padding-inline:22px}#history button{border-right:4px solid #be0030;background:#fff;box-shadow:0 2px 8px #251f2105}#history button:hover{background:#fbf0f2;border-color:#be0030}#history-result{border-right:4px solid #be0030}#history-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}#history-detail p{border-bottom:1px solid #eae9ea;padding-bottom:10px}#history-detail p:last-child{grid-column:1/-1}#history-download{background:#be0030;color:#fff;border-color:#be0030;font-weight:600;text-decoration:none;border-radius:7px}@media(min-width:760px){#new-order-screen{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}#new-order-screen>h2,#new-order-screen>p,#products,#new-order-screen>#status,#new-order-screen>#result{grid-column:1/-1}#new-order-screen>label:nth-of-type(5){grid-column:1/-1}#new-order-screen>button{justify-self:start}#new-order-screen>#new{grid-column:1/-1}}@media(max-width:600px){main{border-top-width:4px}#new-order-screen>label{padding:10px 12px}#new{width:100%;margin:12px 0}#history-detail{grid-template-columns:1fr}nav{top:0}#logout{float:none;display:block;margin-left:0;margin-right:auto}#history-download{display:block;text-align:center}}
.app-hero{position:relative;display:flex;align-items:center;gap:18px;background:linear-gradient(115deg,#800020,#be0030 72%,#d51d49);color:#fff;border-radius:16px;padding:28px;margin-bottom:18px;overflow:hidden;min-height:172px}.app-hero h1{color:#fff;margin:0;font-size:34px}.hero-mark{font-size:42px;border:1px solid #ffffff55;border-radius:14px;padding:8px 18px;background:#ffffff12}.eyebrow{margin:0 0 5px;color:#f1dcc9;font-size:13px;font-weight:600;letter-spacing:.03em}.hero-copy{margin:8px 0 0;color:#fff4e5;font-size:16px}.hero-art{margin-right:auto;transform:rotate(-8deg);width:105px;height:115px;background:#fffdf8;border-radius:10px;padding:16px;box-shadow:8px 10px 0 #ffffff16;flex:none}.hero-art span{display:block;background:#f5e4e7;color:#be0030;width:31px;height:31px;border-radius:50%;text-align:center;font-weight:bold}.hero-art i{display:block;height:5px;background:#e8d9c5;margin-top:10px;border-radius:4px}.hero-art i:last-child{width:60%}#view-new:before{content:'＋';padding-left:7px;color:#be0030;font-size:20px}#view-history:before{content:'▤';padding-left:7px;color:#be0030;font-size:20px}#view-admin:before{content:'⚙';padding-left:7px;color:#be0030;font-size:18px}#new-order-screen>h2:before{content:'01';font-size:13px;color:#be0030;background:#f5e7df;padding:6px 9px;border-radius:6px;margin-left:10px;vertical-align:middle}#saved-orders>h2:before{content:'▤';color:#be0030;margin-left:10px}#products{border-top:4px solid #be0030}.product>div:before{content:'▣';display:inline-block;margin-left:9px;color:#be0030}#history button:before{content:'▤';color:#be0030;font-size:22px;display:inline-block;margin-left:14px;vertical-align:middle}body{background:radial-gradient(ellipse at top right,#ebdec7 0,transparent 35%),#f5efe3}main{border-top:0;box-shadow:0 0 60px #80002008}@media(max-width:600px){.app-hero{padding:22px 16px;gap:12px;border-radius:12px;min-height:148px}.app-hero h1{font-size:25px}.hero-mark{display:none}.hero-art{width:62px;height:88px;padding:9px}.hero-art span{width:23px;height:23px;font-size:15px}.hero-art i{height:4px;margin-top:7px}.hero-copy{font-size:14px}.eyebrow{font-size:11px}#view-new:before,#view-history:before,#view-admin:before{display:block;padding-left:0;font-size:21px}nav button{line-height:1.5}#history button:before{font-size:18px;margin-left:8px}}

/* Mitman source brand: meatman.co.il, approved by owner. */
.app-hero{background:linear-gradient(115deg,#940027,#be0030 75%,#c81a42);border-radius:10px;border-bottom:5px solid #ebdec7;padding:30px 28px;min-height:180px}.brand-block{display:flex;align-items:center;gap:25px;min-width:0}.brand-logo{display:block;width:185px;height:auto;flex:none}.brand-divider{height:72px;width:1px;background:#ffffff45;flex:none}.app-hero h1{font-size:30px}.hero-art{width:90px;height:105px}.hero-mark{display:none}#products{border-top-color:#be0030}#new-order-screen>h2:before{background:#f5efe3;color:#be0030}#admin{background:#fdfbf7}#history-result{background:#fffcf8}nav button[aria-current=page]{background:#fbf0f2;color:#9e0028}#status{border-right-color:#be0030}button:disabled{cursor:not-allowed}body{background:radial-gradient(ellipse at top right,#ebdec7 0,transparent 45%),#f5efe3}
@media(max-width:600px){.app-hero{padding:22px 18px;min-height:177px;align-items:flex-end}.brand-block{display:block}.brand-logo{width:122px;margin-bottom:16px}.brand-divider{display:none}.app-hero h1{font-size:25px}.hero-copy{margin-top:5px}.hero-art{width:57px;height:82px;margin-bottom:10px;align-self:center}.eyebrow{font-size:11px}}

/* Compact order actions: more room for the product list. */
.order-actions{grid-column:1/-1;margin:4px 0 0}.save-buttons{display:flex;gap:10px;align-items:stretch}.save-buttons #save,.save-buttons #save-share{margin:0;padding:11px 16px;min-height:46px;width:auto;flex:0 1 230px;font-size:15px;line-height:1.4}.save-help{font-size:12px;color:var(--muted);margin-top:6px}.save-help summary{cursor:pointer;min-height:30px;padding:5px 0}.save-help p{margin:5px 0;max-width:700px}.order-actions #share-support{font-size:12px}#count{margin:8px 0;padding:4px 12px;font-size:14px;justify-self:start}#products{margin-bottom:6px}@media(max-width:600px){.save-buttons{gap:8px}.save-buttons #save,.save-buttons #save-share{flex:1;padding:10px 8px;font-size:14px;min-width:0}.save-help summary{min-height:38px;padding-block:8px}}

/* Dense product rows, full-size touch targets. */
.product{padding:8px 0;gap:16px;min-height:80px}.product>div{font-size:15px}.product small{font-size:12px;margin-top:2px}.product>div:before{display:none}.product label{width:148px;margin:0;font-size:11px}.quantity-stepper{display:flex;direction:ltr;align-items:center;gap:4px;margin-top:3px}.quantity-stepper button{width:44px;height:44px;min-height:44px;flex:none;padding:0;margin:0;border-color:#dbc5c4;border-radius:5px;background:#f9f5ee;color:#a00028;font-size:23px;font-weight:600}.quantity-stepper input{appearance:textfield;-moz-appearance:textfield;width:52px;height:44px;min-height:44px;margin:0;padding:5px;font-size:17px}.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}@media(max-width:600px){.product{gap:9px;padding:7px 0;min-height:80px}.product>div{font-size:14px}.product small{font-size:11px}.product label{width:144px}.quantity-stepper{gap:2px}.quantity-stepper input{width:52px}.quantity-stepper button{width:44px}}

/* Compact order details while preserving brand and controls. */
#new-order-screen>h2{font-size:22px;margin:10px 0 8px}#new-order-screen>label{padding:6px 10px;margin:4px 0;font-size:13px}#new-order-screen>label input,#new-order-screen>label select{min-height:40px;height:40px;padding:7px 10px;margin-top:3px;font-size:15px}#new-order-screen>p:not(#count):not(#status){margin:4px 0;font-size:12px;line-height:1.5}#new-order-screen>label:nth-of-type(5){margin-bottom:4px}#products{margin-top:8px}nav{margin-bottom:10px;padding-block:8px}@media(min-width:760px){#new-order-screen{gap:0 12px}}@media(max-width:600px){#new-order-screen{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}#new-order-screen>h2,#new-order-screen>p,#products,#new-order-screen>#status,#new-order-screen>#result,#new-order-screen>label:nth-of-type(4),#new-order-screen>label:nth-of-type(5){grid-column:1/-1}#new-order-screen>label:nth-of-type(3){grid-column:1/-1}#new-order-screen>label{padding:6px 8px;font-size:12px}#new-order-screen>label input,#new-order-screen>label select{font-size:14px;min-height:40px}#new-order-screen>h2{font-size:21px;margin-top:6px}}

/* Long-list density: retain the full document height for all products. */
.product{min-height:56px;padding:5px 0}.product label{font-size:0}.quantity-stepper{margin-top:0}.product small{line-height:1.3}.product>div{line-height:1.35}#products{overflow:visible;max-height:none;height:auto}.product input{font-size:16px}.app-hero{min-height:116px;padding:18px 24px}.brand-logo{width:150px}.brand-divider{height:60px}.hero-art{width:66px;height:78px;padding:10px}.hero-art span{width:23px;height:23px;font-size:14px}.hero-art i{margin-top:6px;height:4px}.app-hero h1{font-size:26px}.hero-copy{font-size:14px;margin-top:4px}.note{margin-block:8px;padding:8px 12px}nav button{min-height:44px;padding:8px 12px}@media(max-width:600px){.product{min-height:56px;padding:5px 0}.app-hero{min-height:106px;padding:14px 16px;align-items:center}.brand-block{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:center}.brand-logo{width:100px;margin:0}.brand-block>div{min-width:0}.app-hero h1{font-size:20px}.hero-copy{display:none}.hero-art{display:none}.eyebrow{font-size:10px}nav button{font-size:13px;padding:6px}#view-new:before,#view-history:before,#view-admin:before{display:inline;font-size:16px;padding-left:4px}#new-order-screen>label:nth-of-type(3),#new-order-screen>label:nth-of-type(4){grid-column:auto}#new-order-screen>label:nth-of-type(5){grid-column:1/-1}}

#preview-order{margin:0 0 8px;border-color:#be0030;color:#a00028;font-weight:600;padding:9px 16px}#order-preview{width:min(680px,calc(100% - 24px));max-height:85dvh;padding:22px;border:0;border-top:5px solid #be0030;border-radius:10px;box-shadow:0 16px 80px #0004;color:#251f21;overflow:auto}#order-preview::backdrop{background:#251f2180}.preview-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.preview-heading h2{font-size:20px;margin:0}.preview-heading button{margin:0;flex:none}.preview-line{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #eae9ea;font-size:15px}.preview-line span{white-space:nowrap}#preview-meta{background:#f5efe3;padding:10px;border-radius:5px;overflow-wrap:anywhere;font-size:14px}#order-preview>p{font-size:13px}#preview-save,#preview-share{background:#be0030;color:#fff;border-color:#be0030;flex:1;margin:0;padding:12px 8px;font-size:14px}@media(max-width:600px){#order-preview{padding:16px}.preview-heading h2{font-size:18px}#preview-order{width:100%}}

.order-actions>.save-help{display:none}#preview-order{margin-bottom:0}

#history-detail{display:block}.history-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}#history-detail .history-meta p{grid-column:auto}.history-meta .history-notes{grid-column:1/-1!important;white-space:pre-wrap}.history-products{margin-top:20px}.history-products h4{margin:0 0 8px;color:#9e0028;font-size:18px}.history-products ul{list-style:none;padding:0;margin:0}.history-products li{display:flex;flex-direction:column;gap:3px;padding:12px 0;border-bottom:1px solid #eae9ea;text-align:right;overflow-wrap:anywhere}.history-products li span{font-size:14px;color:#585254}@media(max-width:600px){.history-meta{grid-template-columns:1fr}}

button.delete-user{color:#9e0028;border-color:#d8b1b8;margin-inline-start:8px;background:#fff}

#import-confirm{max-width:min(540px,calc(100vw - 36px));border:1px solid #d8b1b8;border-top:5px solid #be0030;border-radius:10px;padding:24px}#import-commit{background:#be0030;color:#fff}#import-confirm::backdrop{background:#0006}

.account-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ead7dc;background:#fbf0f2;border-radius:8px;padding:8px 12px;margin:12px 0 4px}.account-bar #signed-in-user{margin:0;font-size:15px;font-weight:600;color:#940027;min-width:0;overflow-wrap:anywhere}.account-bar #logout{float:none;flex:none;display:inline-block;margin:0;padding:8px 14px;font-size:14px;background:white}
.share-options{padding:14px;border:1px solid #d8b1b8;border-radius:8px;background:#fff8f5;margin-top:12px}.share-options textarea{width:100%;min-height:160px;margin-top:12px;white-space:pre-wrap;box-sizing:border-box}
