:root{font:16px/1.45 Inter,"Segoe UI",sans-serif;color:#1a302d;background:#f3f6f3}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{display:flex;align-items:center;gap:24px;background:#123d37;color:white;padding:16px 4vw}header strong{font-size:25px;letter-spacing:-1px}header b{color:#a6ebbd}#identity{margin-left:auto}main{max-width:1350px;margin:auto;padding:0 4vw 48px}nav,footer{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}button,input,select{font:inherit;border-radius:7px;padding:9px 12px}button{background:#165c50;color:white;border:1px solid transparent;cursor:pointer}button:disabled{opacity:.5;cursor:default}nav button,.row button,footer button{background:white;color:#184c43;border:1px solid #bfcfc7}nav button[aria-current=true]{background:#d9eee0}#logout{margin-left:auto}article,#login,dialog{background:white;border:1px solid #d6dfd8;border-radius:14px;padding:24px}#login{max-width:420px;margin:10vh auto}.columns{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}h1,h2{line-height:1.15;margin:4px 0 20px}h1{font-size:30px}h2{font-size:21px}input,select{width:100%;border:1px solid #aebfb5;background:white;color:inherit}label{display:grid;gap:4px;margin:12px 0;font-size:14px;font-weight:600}.row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e3e9e3}.row small{display:block;color:#51685c}.row input{width:84px}.row span:first-child{flex:1}#total{margin:20px 0}#slip{width:min(95vw,440px);max-height:90vh}#paper{font-family:"Segoe UI",sans-serif}#paper p{margin:5px 0}.receiptLine{padding:7px 0;border-bottom:1px dashed #aab5ab}@media(max-width:760px){.columns{grid-template-columns:1fr}header{gap:12px}article{padding:16px}}@media print{@page{margin:4mm}body,main,dialog{margin:0!important;padding:0!important;background:white}body>header,main>:not(dialog),dialog footer{display:none!important}dialog[open]{display:block;position:static;border:0;width:72mm;max-height:none;overflow:visible}dialog::backdrop{background:transparent}#paper{font-size:11pt}}
.settingsCard{max-width:600px}.settingsCard h2:not(:first-child){margin-top:28px}#reportBody{overflow-x:auto}#reportBody h2{margin-top:24px}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}td,th{padding:8px;border-bottom:1px solid #d6dfd8}th{text-transform:capitalize}hr{border:0;border-top:1px solid #d6dfd8;margin:22px 0}#tickets button{margin:4px}
#basketShelf{margin-top:24px}#basketStatus:empty{display:none}#shiftHint{padding:10px;background:#e5eee8;border-radius:8px}#shiftHint button{margin-left:6px}
#lookup{display:flex;gap:10px;align-items:end;margin-bottom:18px}#lookup label{margin:0}
#refundBox:has(form[hidden]):has(button[hidden]){display:none}fieldset{border:1px solid #c7d4ca;border-radius:8px;margin:12px 0}legend{font-weight:600}.receiptLine small{display:block}#paper{overflow-wrap:anywhere;font-family:"Noto Sans Sinhala","Nirmala UI","Segoe UI",sans-serif}
@media print{@page{margin:3mm}html,body,main{width:100%;max-width:none!important}#slip[open]{position:static!important;max-height:none!important;height:auto!important;width:72mm!important;max-width:100%!important;overflow:visible!important}#slip[data-width="58"][open]{width:50mm!important}#slip[data-width="58"] #paper{font-size:9pt}.receiptLine{break-inside:avoid}}

.reorderFilters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.worksheet{overflow-x:auto}.worksheet table{width:100%}#inventory>article{margin-bottom:16px}
#stocktaking>article{margin-bottom:16px}#countRows .row input{width:9em}#countApproval{margin-top:20px}

.eanLabel{display:block;width:39mm;max-width:100%;height:auto;background:white;fill:black;shape-rendering:crispEdges}

.till{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:14px;align-items:start}
.till article{min-width:0}.till .due{background:#123d37;color:white;padding:14px 18px;border-radius:9px}
.till #total{font-size:clamp(24px,3vw,38px);margin:4px 0 0;font-variant-numeric:tabular-nums}
.till summary{cursor:pointer;padding:10px 0;color:#165c50;font-weight:600}
.till #catalog{max-height:250px;overflow:auto}.bill td,.bill th{padding:7px}
.bill input{width:6em}.bill td:nth-child(4),.bill td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
.bill td:last-child button{background:white;color:#803525;border:1px solid #d4c4bd}
#cashKeys{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0}
#cashKeys button{min-height:44px;background:#f1f6f2;color:#173f36;border:1px solid #c1d2c8;font-weight:600}
#cashKeys button[data-cash-key="back"]{grid-column:span 2}.till #checkout{width:100%;min-height:44px}
.till #paymentPreview{font-size:18px;font-weight:600}.till #lineCount{color:#50665b}
@media(max-width:800px){.till{grid-template-columns:minmax(0,1fr)}}

#priceCheck{margin:8px 0}#priceDialog{width:min(94vw,440px);color:inherit}#priceDialog::backdrop{background:#17342f77}
#checkResult:not(:empty){background:#e7f2e9;border-radius:8px;padding:14px;font-weight:600}

.touchField{display:grid;align-content:start;gap:3px;font-size:.88rem;font-weight:600}
.touchField button{background:#edf5ef;color:#174c42;border:1px solid #acbeb3;text-align:left}
#choiceDialog,#optionsDialog{width:min(94vw,480px);max-height:88dvh;overflow:auto}
#choiceList{display:grid;gap:6px;margin:10px 0;max-height:54dvh;overflow:auto}
#choiceList button{text-align:left;min-height:44px}
#choiceList [aria-pressed=true]{outline:3px solid #85cda8;outline-offset:-4px}
#payView,#backToBill{display:none}
@media screen{
 body:has(#work:not([hidden]) #register:not([hidden])){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 body:has(#work:not([hidden]) #register:not([hidden])) main{display:flex;flex:1;flex-direction:column;min-height:0;width:100%;max-width:none;padding:0 1vw 6px}
 #work:has(#register:not([hidden])){display:flex;flex-direction:column;flex:1;min-height:0}
 #work:has(#register:not([hidden])) nav{flex:none;flex-wrap:nowrap;overflow-x:auto;margin:4px 0}
 #work:has(#register:not([hidden])) nav button{white-space:nowrap;min-height:44px}
 body:has(#work:not([hidden]) #register:not([hidden])) header{padding:5px 2vw}

 #register,.till{min-height:0;flex:1}.till{height:100%;align-items:stretch;gap:8px;grid-template-columns:minmax(0,1fr) clamp(265px,31vw,420px)}
 .till article{min-height:0;padding:10px;display:flex;flex-direction:column;gap:5px;overflow:hidden}
 .saleTools,.pickNotes,.tenderBody,.salePane>.worksheet{overflow:auto;overscroll-behavior:contain;min-height:0}
 .saleTools{max-height:44%;flex-shrink:0}.saleTools h1{font-size:21px;margin:0 0 4px}
 .saleTools #search{width:calc(100% - 150px)}.saleTools #priceCheck{margin:0}
 .saleTools .reorderFilters{grid-template-columns:1fr 1fr}
 .billTitle{margin:4px 0;font-size:17px}.salePane>.worksheet{flex:1}
 .bill thead{position:sticky;top:0;background:#e7f0ea;z-index:1}.bill td,.bill th{padding:5px;font-size:13px}
 .bill input{width:5.4em;padding:5px;min-height:44px}.bill button,.saleActions button,.touchField button{min-height:44px}
 .saleActions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.saleActions p{margin:0 auto 0 0}
 .pickNotes{max-height:16%}.pickNotes p{margin:2px 0}
 .tenderBody{flex:1}.tenderBody label{margin:4px 0}.tenderBody .due{padding:7px 12px}
 .till #cashKeys{margin:5px 0;gap:4px}.till #cashKeys button{font-size:clamp(25px,3.5vh,40px);font-weight:800;padding:2px;line-height:1.2;min-height:46px;font-variant-numeric:tabular-nums}
 .till #cashKeys [data-cash-key="back"],.till #cashKeys [data-cash-key="clear"]{font-size:18px}
 .till #paymentPreview{margin:4px 0}.till #checkout,.till #retry{flex:none}
}
@media screen and (max-width:880px){
 .till{grid-template-columns:minmax(0,1fr)}#payView,#backToBill{display:block}
 #register:not([data-pane=pay]) .tender,#register[data-pane=pay] .salePane{display:none}
 .till .bill{min-width:600px}
}
.touchModes{display:flex;flex-wrap:wrap;gap:4px}
.touchModes button{flex:1 0 auto;padding:5px 9px;min-height:44px;text-align:center}
.touchModes button[aria-pressed=true]{background:#165c50;color:white;border-color:#165c50}
.customerDisplay{min-height:100dvh;margin:0;padding:clamp(12px,4vh,40px);display:grid;align-content:center;justify-items:center;background:#eef5ef;color:#123d37}
.customerDisplay form{width:min(390px,95%);display:grid;gap:8px}
.customerDisplay label{font-size:1.25rem}.customerDisplay input{font-size:1.5rem}
.customerDisplay button{min-height:44px}.mobileKeys{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.mobileKeys button{font-size:1.45rem;font-weight:700}.customerDisplay p:empty,#customerGreeting:empty{display:none}

.customerDisplay{height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr);align-content:stretch;align-items:stretch;gap:8px;padding:clamp(8px,2vh,20px);overflow:auto}
.customerDisplay h1{margin:0;font-size:clamp(20px,4vh,34px)}
.customerDisplay:has(form){grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
.customerDisplay:has(form)>h1{grid-column:1/-1}
.customerDisplay form{width:100%;overflow:auto;align-content:start}
.customerBill{width:100%;min-height:0;display:flex;flex-direction:column;background:white;border-radius:12px;padding:12px}
.customerBill h2{margin:0 0 8px}.customerItems{overflow:auto;flex:1}.customerItems th{position:sticky;top:0;background:#edf5ef}
.customerItems td:last-child,.customerItems th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.customerBill strong{padding:12px;background:#123d37;color:white;border-radius:6px;text-align:right;font-size:clamp(20px,4vh,38px)}
@media(max-width:530px){.customerDisplay:has(form){grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) minmax(140px,.7fr)}}
.quickShelf{display:grid;grid-template-columns:clamp(100px,22%,175px) minmax(0,1fr);gap:8px;height:clamp(92px,22dvh,230px);flex:0 1 auto;min-height:0;border-top:1px solid #d6dfd8;padding-top:6px}
#quickCategories,#quickProducts{overflow:auto;overscroll-behavior:contain;align-content:start;gap:5px}
#quickCategories{display:grid}#quickProducts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(115px,100%),1fr))}
.quickShelf button{min-height:46px;line-height:1.15;text-align:left;overflow-wrap:anywhere;background:#f2f7f2;color:#173f36;border:1px solid #c4d6ca;padding:7px}
#quickCategories button{display:flex;align-items:center;gap:7px}#quickCategories button span:first-child{font-size:24px}
#quickCategories [aria-pressed=true]{background:#165c50;color:white}#quickProducts button{background:white;font-weight:650}
#quickProducts small{display:block;font-size:.76rem;margin-top:5px;font-weight:400}
#quickWeight{width:min(90vw,360px)}.salePane>.worksheet{min-height:min(10vh,80px)}
.platformMark{width:132px;height:40px;object-fit:cover;border-radius:5px;background:white}
#tillClock{margin-left:auto;font-size:clamp(16px,1.7vw,25px);font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
#identity{margin-left:0}.appFooter{display:grid;place-items:center;flex:none;gap:0;margin:0;text-align:center;padding:3px;color:#35544d}
.shortcutHelp{font-size:13px}.appFooter small{font-size:11px}body:not(:has(#work:not([hidden]) #register:not([hidden]))) .shortcutHelp{display:none}
#lookupProducts{width:min(760px,95vw);max-height:90dvh}#lookupProducts #catalog{max-height:48dvh;overflow:auto}
#lookupProducts .row button{min-height:44px}#logoPreview,.shopMark{max-width:192px;max-height:80px;object-fit:contain}
#paper .shopMark{display:block;margin:0 auto 3mm;max-width:75%;max-height:18mm}.receiptCredit{text-align:center;font-size:9px}
.customerDisplay{background:#101c28;color:#e8f0f7;font-family:"Segoe UI",sans-serif}
.customerDisplay .customerBill{background:#192b3a;border:1px solid #30495c;color:#edf4fa}
.customerDisplay .customerItems th{background:#23394a;color:#bcd0df}.customerItems td,.customerItems th{border-color:#375266}
.customerDisplay .customerBill strong{background:#b2ead2;color:#13382f}.customerDisplay button{background:#2b4959;color:#f4fbff}
.customerDisplay[data-mode=idle]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.customerDisplay[data-mode=idle] .shopMark{max-width:min(320px,65vw);max-height:140px;border-radius:10px}
.customerDisplay[data-mode=idle] p{font-size:clamp(20px,4vw,32px);color:#b5cbd9;margin:0}
@media print{.appFooter{display:none!important}}

.customerDisplay input{background:#10202c;color:#f4fbff;border-color:#577184}
@media(max-width:600px){header{gap:8px;flex-wrap:wrap}.platformMark{width:104px;height:34px}#identity,#shop{max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#tillClock{font-size:16px}}
.scanTools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:stretch}
.saleTools .scanTools #search{width:100%;min-width:0}
.scanTools button,.saleActions button{min-height:44px}
#cashDialog{width:min(94vw,380px)}
@media(max-width:560px){.scanTools button{font-size:.85rem;padding:6px}.saleActions{flex-wrap:wrap}}

.tillStatus{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:14px;font-weight:600}.tillStatus span{white-space:nowrap}
#networkStatus::before{content:"";display:inline-block;width:.65em;height:.65em;margin-right:.4em;border-radius:50%;background:#d7c98a}
#networkStatus[data-status=Online]::before{background:#7be5a4}#networkStatus[data-status=Offline]::before{background:#ff927c}

#labelPreview{max-width:98vw;max-height:94vh;overflow:auto}
#labelPages{background:#ddd;color:black;width:max-content;font:10pt/1.15 Arial,sans-serif}
.a4Stickers,.rollSticker{display:grid;background:white;align-content:start;box-sizing:border-box}
.a4Stickers{width:210mm;height:297mm;grid-template:repeat(7,38.1mm)/repeat(3,63.5mm);gap:0 2.5mm;padding:15.15mm 7.25mm}
.rollSticker{width:60mm;height:40mm;grid-template:40mm/60mm}
.stockSticker{overflow:hidden;padding:1mm 2mm;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:.3mm}
.stockSticker strong{font-size:10pt;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.stockSticker .eanLabel{width:48mm;height:13mm;max-width:100%;margin:0;fill:black}
.stockSticker .lotQR{width:21mm;height:21mm;flex:none;fill:black}
.stockSticker svg{background:white;shape-rendering:crispEdges}
.stockSticker small{font-size:8pt}
@page stickerSheet{size:A4;margin:0}
@page stickerRoll{size:60mm 40mm;margin:0}
@media print{
 body.printingLabels>:not(#labelPreview){display:none!important}
 #labelPreview[open]{display:block!important;position:static!important;width:auto!important;height:auto!important;max-width:none;max-height:none;overflow:visible;border:0}
 #labelPreview footer{display:none}
 #labelPages{background:white}
 .a4Stickers,.rollSticker{break-inside:avoid;break-after:page}
 .a4Stickers{page:stickerSheet}.rollSticker{page:stickerRoll}
 #labelPages>:last-child{break-after:auto}
}
.remoteDisplay{min-height:100dvh;box-sizing:border-box;padding:clamp(16px,4vw,64px);overflow:auto}
.remoteDisplay main{width:min(100%,900px);margin:auto;color:inherit}
.remoteDisplay .shopMark{max-height:90px}
.remoteDisplay td,.remoteDisplay th{padding:.65rem;text-align:right}
.remoteDisplay td:first-child,.remoteDisplay th:first-child{text-align:left}
.remoteDisplay{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.remoteDisplay:has(main[hidden]){justify-content:center}
.remoteDisplay main{flex:0 0 auto;margin:0 auto}
.remoteDisplay th{background:#23394a;color:#c6dae7}
.remoteDisplay td{color:#edf4fa}
.serviceLayout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(340px,2fr);gap:1rem;align-items:start}
.serviceTiles,#serviceOrders section{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
#serviceOrders h3{width:100%;margin-bottom:.25rem}
#diningEditor{width:min(850px,94vw);max-height:85dvh;overflow:auto}
#diningEditor button,.serviceLayout button{margin:.25rem}
.menuLine{display:grid;grid-template-columns:2fr 1fr 2fr auto;gap:.5rem;align-items:end;margin:.6rem 0}
.menuLine input,.menuLine select{width:100%}
.serviceDue{background:#925800}.serviceLate{background:#9d2424}
@media(max-width:720px){.serviceLayout,.menuLine{grid-template-columns:1fr}}
#pharmacy{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:1rem;align-items:start}
#pharmacy h1,#controlLog{grid-column:1/-1}
#medicineResults,#controlRows{overflow:auto;max-height:60vh}
#medicineResults p{padding:.45rem 0;border-bottom:1px solid #d7e3db}
#medicineResults button{margin:.25rem}
#rxTotal{font-size:1.3rem;font-weight:700}

#paper .thermalInvoice{box-sizing:border-box;width:72mm;max-width:100%;margin:auto;color:#000;background:#fff;font:9pt/1.27 "Nirmala UI","Noto Sans Sinhala",Arial,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#slip[data-width="58"] .thermalInvoice{width:48mm;font-size:8pt}
.thermalInvoice h2,.thermalInvoice h3,.invoiceContact,.invoiceCenter,.invoiceThanks{text-align:center;display:block}
.thermalInvoice h2{font-size:15pt;margin:0}.thermalInvoice h3,.invoiceThanks{border-block:1px dashed;padding:1mm 0;margin:1mm 0;font-size:11pt}
.invoiceContact{white-space:pre-line}.invoiceMeta{display:grid;grid-template-columns:1fr 1fr;column-gap:3mm;border-bottom:1px dashed}
#slip[data-width="58"] .invoiceMeta{grid-template-columns:1fr}
.invoicePair{display:flex;justify-content:space-between;gap:1mm}.invoicePair>:last-child{text-align:right;min-width:0}
.invoiceCols{display:grid;grid-template-columns:1fr 1fr .85fr 1.2fr;gap:.5mm;text-align:right}
.invoiceCols>:first-child{text-align:left}.invoiceHead{border-block:1px solid;padding:.7mm 0;margin-top:1mm}
.invoiceItem{padding:1mm 0;border-bottom:1px dotted;break-inside:avoid}.invoiceItem small{display:block}
.invoiceTotals{padding:1.5mm 0;break-inside:avoid}.invoiceTotals strong{font-size:1.18em}
.invoiceBarcode{display:block;width:auto;max-width:100%;height:10mm;margin:2mm auto 0;fill:#000}
.thermalInvoice .receiptCredit{font-size:7pt;text-align:center}

#configuration{max-width:1100px;margin-inline:auto}.profileLine{color:#495e57}.settingsGroups{display:grid;gap:12px}.settingsGroups>details{background:white;border:1px solid #cdd9d1;border-radius:12px}.settingsGroups summary{padding:16px 20px;cursor:pointer;font-size:1.12rem;font-weight:700}.settingsGroups summary small{display:block;margin:4px 0 0 18px;color:#4c655e;font-size:.88rem;font-weight:400}.settingsGroups summary:focus-visible{outline:3px solid #226459;outline-offset:2px;border-radius:10px}.settingsBody,.settingsLinks{padding:0 20px 18px}.settingsBody{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:24px}.settingsGroups h3{margin:14px 0 6px}.settingsBody button,.settingsLinks button{min-height:44px;margin:4px 2px 4px 0}.displayToggle{display:flex;align-items:center;gap:8px}.displayToggle input{width:auto}.settingsLinks{display:flex;flex-wrap:wrap;gap:8px}

@media screen {
 body:has(#work:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 body:has(#work:not([hidden])) main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:none;padding:0 1vw 6px}
 body:has(#work:not([hidden])) header{padding:5px 2vw}
 #work:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
 #work>nav{flex:none;flex-wrap:nowrap;overflow-x:auto;margin:4px 0}
 #work>nav button{white-space:nowrap;min-height:44px}
 #work>section:not(#register):not([hidden]){display:flex;flex-direction:column;min-height:0;overflow:auto;flex:1;width:100%;max-width:none}
 .taskMatrix{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:5px;margin:0 0 8px}
 .taskMatrix button{min-height:42px;background:white;color:#194e45;border:1px solid #bccec5;text-align:left}
 .taskMatrix button[aria-pressed=true]{background:#165c50;color:white}
 .taskMatrix small{display:block;font-size:.8rem}
 .taskPanel{overflow:auto;min-height:0}.taskPanel>article+article{margin-top:10px}
 .catalogTool summary{padding:12px 0;cursor:pointer;font-weight:600}
 .cashEntry{display:flex;align-items:stretch;gap:5px}.cashEntry input{flex:1;min-width:0}.cashEntry button{white-space:nowrap}
 .tender [data-modes=payment]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 .tender [data-modes=payment] button{min-height:40px;padding:4px 1px}
 .till .bill td,.till .bill th{font-size:13.65px;padding:2px 5px}
 .till .bill td input,.till .bill td button{font-size:inherit;min-height:34px;padding:3px 5px}
 #offlineList{font-size:.82rem;padding:5px 8px;border-color:#81a69b}
 #configuration .taskPanel{background:white;padding:14px;border-radius:10px}
 @media(max-width:600px){.taskMatrix{grid-template-columns:repeat(2,minmax(0,1fr))}header{flex-wrap:wrap;gap:4px 8px}.taskPanel{flex-shrink:0}}
}

.invoiceAddress{white-space:pre-line;overflow-wrap:anywhere;text-align:center}
#settingsForm textarea{font:inherit;width:100%;padding:9px 12px;border-radius:7px;border:1px solid #aebfb5;resize:vertical}
@media screen {
 #work>section:not(#register):not([hidden]):has(>.taskMatrix){
   display:grid;grid-template-columns:clamp(8rem,19vw,15rem) minmax(0,1fr);
   grid-template-rows:auto minmax(0,1fr);gap:8px 12px;overflow:hidden
 }
 #work>section>.taskMatrix{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-self:stretch;overflow:auto;margin:0;padding:2px}
 #work>section>.taskMatrix button{flex:none;overflow-wrap:anywhere}
 #work>section>.taskPanel{grid-column:2;grid-row:2;min-width:0;overflow:auto}
 #work>section:has(>.taskMatrix)>h1{grid-column:1/-1;margin:3px 0}
 .configurationHeading{grid-column:1/-1;min-width:0}
 .configurationHeading h1{margin:3px 0}
 .configurationHeading .profileLine{margin:2px 0 5px;overflow-wrap:anywhere}
 #settingsForm select{max-width:100%;min-width:0}
 @media(max-width:600px){#work>section:not(#register):not([hidden]):has(>.taskMatrix){grid-template-columns:minmax(6rem,29%) minmax(0,1fr);column-gap:5px}.taskMatrix button{padding:7px 5px}}
}

html[data-register-starting] body > :not(#stationGate){display:none!important}
html:not([data-register-starting]) #stationGate{display:none}
#stationGate{max-width:35rem;margin:12vh auto;padding:1.5rem;background:white;border-radius:.75rem}

.currencyUnit{white-space:nowrap}
#message{position:fixed;inset:auto max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) auto;
 margin:0;box-sizing:border-box;width:max-content;max-width:min(28rem,calc(100vw - 2rem));
 border:1px solid #39746a;border-radius:9px;padding:.8rem 1rem;background:#123f39;color:white;
 box-shadow:0 4px 18px #10292338;overflow-wrap:anywhere;pointer-events:none;z-index:1000}
#message:empty{display:none}
@media print{#message{display:none!important}}
