@font-face{font-family:SoLen;src:url('fonts/NotoSans-Regular.ttf') format('truetype');font-weight:100 500;font-style:normal;font-display:swap}
@font-face{font-family:SoLen;src:url('fonts/NotoSans-Bold.ttf') format('truetype');font-weight:501 900;font-style:normal;font-display:swap}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:#f8f7f2;color:#282f29;font:15px/1.52 SoLen,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,select,input[type=checkbox]{touch-action:manipulation}button,select{cursor:pointer}button{border:0;color:inherit;background:transparent}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bb654d;outline-offset:3px}button:disabled{opacity:.5;cursor:default}.top,.layout{max-width:1520px;margin:auto}header{background:#fffefb;border-bottom:1px solid #dcded4}.top{display:flex;align-items:center;justify-content:space-between;padding:13px 4%;gap:12px}.brand{display:inline-flex;align-items:center;gap:10px;font:600 31px/1 SoLen,"Segoe UI",Arial,sans-serif;text-decoration:none;color:#284c3a}.role,.role label{display:flex;align-items:center;gap:10px}.role label{font-size:13px;color:#535e54}.role select{background:#fff;border:1px solid #c6cfc1;padding:9px;border-radius:9px;color:#254b36;font-weight:650}.demo,.pill{font-size:12px;display:inline-flex;border-radius:20px;align-items:center;padding:3px 10px;font-weight:650}.demo{background:#f1ede1;color:#695d42}.layout{min-height:calc(100vh - 71px);display:grid;grid-template-columns:218px minmax(0,1fr)}aside{border-right:1px solid #dddfd5;padding:35px 17px;background:#f2f3ec;display:flex;flex-direction:column}.aside-head{margin:2px 10px 14px;font-size:12px;color:#647064;font-weight:650}.aside-bottom{margin-top:auto;padding:42px 10px 0;font-size:12px;color:#616a62}.aside-bottom button{display:block;margin-top:7px;text-decoration:underline;padding:3px 0}.seed{display:inline-block;background:#648867;width:7px;height:7px;border-radius:50%;margin-right:6px}nav{display:flex;flex-direction:column;gap:5px}nav button{display:flex;text-align:left;align-items:center;gap:12px;border-radius:9px;padding:12px 14px;color:#596259;font-weight:600}nav button.active{background:#dce8d8;color:#284e36}nav button:hover,.quiet:hover{background:#e8ece2}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}main{width:100%;max-width:1220px;margin:0 auto;padding:32px clamp(18px,3.5vw,58px) 65px}.crumb{color:#616b61;font-size:12px;margin-bottom:14px}.crumb span{color:#838a7c;margin:0 8px}.heading,.row,.actions,.sectionhead,.stage,.checkline{display:flex;align-items:center;gap:10px}.heading,.sectionhead,.between{justify-content:space-between}.heading{margin-bottom:19px}.heading h1{font:normal clamp(32px,4.2vw,55px)/1.12 SoLen,"Segoe UI",Arial,sans-serif;letter-spacing:-1.6px;margin:0;color:#243f2e}.heading p,.dim{color:#626d62}.heading p{margin:6px 0 0}.avatar,.ico{display:grid;place-items:center;flex:none;border-radius:12px}.avatar{width:44px;height:44px;border-radius:50%;background:#d9e5cd;color:#3e643a;font:24px SoLen,"Segoe UI",Arial,sans-serif}.ico{background:#ffffff94;width:38px;height:38px}.panel,.card{background:#fffefb;border:1px solid #d9ded3;border-radius:15px;overflow:hidden}.panel{padding:18px 20px;margin-bottom:24px}.queue{background:#f0f4eb;border-color:#cfdbca}.sectionhead{flex-wrap:wrap}.sectionhead h2,.hbtn,h2{margin:0;font:600 22px/1.25 SoLen,"Segoe UI",Arial,sans-serif;letter-spacing:-.4px}.hbtn,.button,.quiet,.link,.tag,.pill{display:inline-flex;align-items:center;gap:7px}.hbtn{padding:4px 0;color:#344a33}.count{font:600 12px SoLen,"Segoe UI",sans-serif;border:1px solid #c6d4bd;padding:2px 8px;border-radius:12px}.button,.quiet,.link{font-size:14px;font-weight:600;justify-content:center}.button,.quiet{padding:9px 13px;border-radius:8px}.button{background:#315b43;color:white;border:1px solid #315b43}.button:hover:enabled{background:#224632}.quiet{background:#fffefb;border:1px solid #c9d3c6}.link{padding:7px;color:#345d40}.qgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:10px}.qitem{display:flex;align-items:center;gap:9px;border-top:1px solid #d6e0d1;min-height:39px;font-size:14px;color:#495b47}.qitem button{text-align:left;flex:1;padding:7px 0}.qitem input,.payrow input[type=checkbox]{width:18px;height:18px;accent-color:#345e44;flex:none}.qitem .icon{width:16px;height:16px}.card{padding:16px;box-shadow:0 2px 5px #20392408}.cardhead{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tag{font-size:10px;font-weight:750;letter-spacing:.6px;background:#ebeee1;color:#536844;padding:3px 8px;border-radius:5px}.tag.hot{background:#fae3da;color:#9e4025}.stage{font-size:12px;color:#536357}.stage:before{content:"";display:block;background:#729b76;border-radius:100%;height:7px;width:7px}.card h3{font:600 22px/1.2 SoLen,"Segoe UI",Arial,sans-serif;margin:8px 0 5px}.card p{color:#596358;margin:0 0 10px;font-size:14px}.gallery{display:flex;gap:5px;overflow-x:auto;padding:2px 1px 5px}.photo{padding:0;background:#e9e7db;flex:0 0 33%;height:82px;border-radius:7px;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover;display:block}.cardfooter{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e4e6df;margin-top:9px;padding-top:9px}.cardfooter small,.small{color:#636c61;font-size:12px}.detailbtn{padding:4px 0;color:#315b43;font-weight:650}.empty{color:#636f62;margin:15px 0}.stack{display:grid;gap:10px}.payrow,.reportrow{border-top:1px solid #e0e4da;padding:13px 0;display:flex;align-items:center;gap:11px}.payrow label{flex:1}.payrow small,.reportrow small{display:block;color:#647062}.money{width:132px;max-width:40%;border:1px solid #bdc9b8;background:white;border-radius:7px;padding:9px;color:#2d4933}.amount{margin-left:auto;white-space:nowrap}.summary{margin-top:13px;background:#e9efe2;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.reportrow{justify-content:space-between}.actions{flex-wrap:wrap}.error{color:#963e26}.receipt{background:#faf8ef;border:1px dashed #bfc6b3;border-radius:12px;padding:18px}.receipt h3{font:600 22px SoLen,"Segoe UI",Arial,sans-serif;margin:0 0 4px}dialog{padding:0;border:1px solid #ced5c7;border-radius:16px;width:min(490px,94vw);max-height:88vh;overflow-y:auto;background:#fffefb;color:inherit}dialog::backdrop{background:#15251da6}.modal{padding:24px}.modal h2{font-size:26px}.modal p{margin:13px 0}.modal label.field{display:grid;gap:5px;margin:13px 0}.field select,.field input,.modal textarea{width:100%;padding:10px;border:1px solid #bbc7b5;border-radius:8px}.modal .actions{justify-content:flex-end;margin-top:16px}.close{font-size:24px;padding:0 8px}.zoom{width:100%;max-height:54vh;object-fit:contain;background:#f1f1e9;border-radius:9px}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#294331;color:white;border-radius:11px;padding:10px 18px;box-shadow:0 4px 20px #142b1733;z-index:9;text-align:center;width:max-content;max-width:90vw}#toast:empty{display:none}
@media(min-width:1500px){.layout{border-inline:1px solid #dddfd5}}@media(max-width:900px){.layout{grid-template-columns:175px minmax(0,1fr)}aside{padding-inline:9px}.ico{width:30px;height:30px}.panel{padding:15px}.photo{height:65px}}
@media(max-width:700px){header .top{padding:9px 14px}.brand{font-size:26px}.brand svg{width:34px;height:34px}.role{gap:6px}.role label{gap:5px}.layout{display:block}aside{position:static;border-right:0;border-bottom:1px solid #d7dece;padding:4px 12px}.aside-head,.aside-bottom{display:none}nav{flex-direction:row;gap:4px;overflow:auto}nav button{padding:9px 11px;gap:5px;font-size:13px;white-space:nowrap}nav .icon{width:16px;height:16px}main{padding:18px 14px 48px}.heading{margin-bottom:13px}.heading h1{font-size:36px}.crumb{margin-bottom:9px}.panel{padding:13px;margin-bottom:17px}.qgrid{grid-template-columns:1fr}.qitem{min-height:41px}.photo{height:90px}.card h3{font-size:23px}.sectionhead h2,.hbtn{font-size:20px}.button,.quiet{font-size:13px;padding:9px 10px}.role .demo{font-size:10px}.payrow{flex-wrap:wrap}.money{max-width:35%;width:115px}.avatar{display:none}.mobile-reset{display:block!important;margin:20px auto 0}.modal{padding:17px}}.mobile-reset{display:none}

.cardfooter .late{color:#913321}
.urgent-card{border-top:4px solid #b63223}
.tag.hot{background:#ad291f;color:white;font-size:13px;font-weight:800;letter-spacing:.8px;padding:4px 10px}
.tag.hot span{font-size:14px}
.board-list:not([hidden]){display:grid;gap:2px;margin:0 0 6px 18px;padding-left:8px;border-left:2px solid #cbd8c5}
.board-option{padding:8px 12px}
.board-option[aria-pressed=true]{background:#e2eadc;color:#294f36}
.delivery-meta{display:flex;flex-wrap:wrap;gap:5px 14px;margin:7px 0 10px;font-size:13px;color:#51604e}
.order-note{white-space:pre-wrap;overflow-wrap:anywhere}
.order-size {
 display:inline-block;
 white-space:nowrap;
 font-weight:800;
 font-variant-numeric:tabular-nums;
 color:var(--strong);
 background:var(--soft);
 border-radius:3px;
 padding-inline:.18em;
}
@media(max-width:700px){
 
 nav{flex-wrap:wrap}
 .board-list:not([hidden]){order:2;flex-basis:100%;display:flex;flex-wrap:wrap;margin:0;padding:5px;border-left:0;border-top:1px solid #d4dccf}
}

:root{
 --paper:#f8f7f2; --surface:#fffefb; --side:#f2f3ec; --soft:#eef3e9; --selected:#dce8d8;
 --text:#28342b; --muted:#536353; --strong:#264a34; --accent:#315b43; --on-accent:#fff;
 --line:#cdd8c9; --bill:#faf8ef; --warm:#f5ebe2; --alert-bg:#f8e8e3; --alert-text:#893324; --urgent:#ad291f; --urgent-text:#fff;
}
:root[data-palette=rose]{
 --paper:#fbf5f2; --surface:#fffaf8; --side:#f6eae6; --soft:#faeeeb; --selected:#f1d7cf;
 --text:#422e31; --muted:#715554; --strong:#703d45; --accent:#854653; --line:#e3cac2; --bill:#fff6ee; --warm:#f8ebd9;
}
:root[data-palette=lavender]{
 --paper:#f6f4fa; --surface:#fdfbff; --side:#eeeaf5; --soft:#f2eff8; --selected:#e3dcef;
 --text:#342e42; --muted:#635a72; --strong:#514366; --accent:#655082; --line:#d8d0e3; --bill:#faf7ff; --warm:#f5e9e7;
}
:root[data-palette=denim]{
 --paper:#f1f5f8;--surface:#fcfdff;--side:#e6edf2;--soft:#e5edf4;--selected:#cfdfeb;
 --text:#1c2d3c;--muted:#455e70;--strong:#173e60;--accent:#25577a;--line:#b6c7d3;--bill:#f1f5f8;--warm:#e2e9ed;
}
:root[data-palette=rattan]{
 --paper:#f8f3e8;--surface:#fffcf5;--side:#efe6d5;--soft:#f1e8d5;--selected:#e9d9b8;
 --text:#34281d;--muted:#66533f;--strong:#5b3c20;--accent:#73502b;--line:#cfc1a8;--bill:#fbf5e7;--warm:#f1e3cc;
}
:root[data-light=dark]{
 color-scheme:dark;
 --paper:#191a19; --side:#1e1f1e; --surface:#242524; --soft:#2c2d2b; --selected:#393b38;
 --text:#eeeee9; --strong:#f4f3ed; --muted:#bdbfb7; --line:#414440;
 --accent:#b9c9ad; --on-accent:#20231f; --bill:var(--surface); --warm:var(--soft);
 --alert-bg:#402c2d; --alert-text:#f2b4b5; --urgent:#f1cd88; --urgent-text:#30291c;
}
:root[data-light=dark][data-palette=rose]{--accent:#dfb5bc}
:root[data-light=dark][data-palette=lavender]{--accent:#cec0e2}
:root[data-light=dark][data-palette=denim]{--accent:#b0c9dd}
:root[data-light=dark][data-palette=rattan]{--accent:#d9c49c}
:root[data-light=dark] .brand svg{color:var(--accent)}
:root[data-light=dark] dialog::backdrop{background:#111212b8}
:root[data-palette=denim] header { border-bottom:2px dashed var(--line); }
:root[data-palette=rattan] header { border-bottom:3px double var(--line); }
body{background:var(--paper);color:var(--text)}
header,.panel,.card,dialog,.quiet,.money,.field select,.field input,.modal textarea,.role select{background:var(--surface);color:var(--text);border-color:var(--line)}
aside{background:var(--side);border-color:var(--line)}
.brand,.heading h1,.link,.detailbtn,.hbtn,.money,.role select{color:var(--strong)}
.role label,.aside-head,.aside-bottom,nav button,.crumb,.crumb span,.heading p,.dim,.empty,.card p,.stage,.small,.cardfooter small,.delivery-meta,.payrow small,.reportrow small,.qitem{color:var(--muted)}
nav button.active,.board-option[aria-pressed=true],.avatar,.summary{background:var(--selected);color:var(--strong)}
nav button:hover,.quiet:hover,.board-option:hover{background:var(--soft);color:var(--strong)}
.queue,.tag{background:var(--soft);color:var(--strong);border-color:var(--line)}
.demo{background:var(--warm);color:var(--text);border-color:var(--line)}

.cardfooter .late{color:var(--alert-text)}
.ico{background:var(--surface)}.receipt{background:var(--bill);border-color:var(--line)}
.board-list:not([hidden]),.qitem,.payrow,.reportrow,.cardfooter,.count{border-color:var(--line)}
.button,.button:hover:enabled{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.urgent-card{border-top-color:var(--urgent)}.tag.hot{background:var(--urgent);color:var(--urgent-text)}
input[type=checkbox],input[type=radio]{accent-color:var(--accent)}
#toast{background:var(--strong);color:var(--paper)}
.return-line{display:block;text-align:left;text-decoration:underline;text-underline-offset:3px;color:var(--strong);font-size:13px;padding:7px 0}
.receipt-line{align-items:flex-start}.receipt-line .amount{padding-top:2px}
.theme-toggle{white-space:nowrap}.theme-toggle [aria-hidden]{font-size:18px;line-height:1}.theme-text{margin-left:5px}
.theme-group{border:none;padding:0;margin:18px 0}
.theme-group legend{font-weight:650;margin-bottom:8px}
.choices{display:flex;flex-wrap:wrap;gap:8px}
.color-choice,.light-choice{display:flex;align-items:center;gap:5px;cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:9px;background:var(--surface);color:var(--text);font-size:14px}
.color-choice{display:grid;grid-template-columns:auto 1fr;flex:1;min-width:96px}
.color-choice:has(:checked),.light-choice:has(:checked){border-color:var(--accent);background:var(--soft)}
.theme-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); }
.theme-options .color-choice { min-width:0; padding:8px; margin:0; column-gap:6px; align-content:start; }
.theme-sample {
 grid-column:1/-1; display:block; width:100%; height:27px; margin-bottom:3px; border-radius:4px;
 background:repeating-linear-gradient(32deg,var(--thread1) 0 4px,var(--thread2) 4px 7px,var(--thread3) 7px 9px);
}
[data-swatch=tea] { --thread1:#426448; --thread2:#abc2ab; --thread3:#739278; }
[data-swatch=rose] { --thread1:#984b5b; --thread2:#eac2b5; --thread3:#c87f87; }
[data-swatch=lavender] { --thread1:#6f5981; --thread2:#d8c5df; --thread3:#a990bb; }
[data-swatch=denim] .theme-sample { background-color:#284e71; background-image:repeating-linear-gradient(55deg,transparent 0 2px,#f0f5f33b 2px 3px),repeating-linear-gradient(125deg,transparent 0 5px,#122a443b 5px 7px); }
[data-swatch=rattan] .theme-sample { background-color:#ac7d45; background-image:repeating-linear-gradient(45deg,transparent 0 6px,#ebd7a9 6px 10px,transparent 11px 14px),repeating-linear-gradient(-45deg,transparent 0 6px,#805627 6px 10px,transparent 11px 14px); }
@media(max-width:700px){.role .demo{display:none}.theme-toggle{font-size:12px;padding:7px}.role{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:390px){.top{gap:5px}.role label{font-size:11px}.role select{padding:6px}.choices{gap:5px}.color-choice{min-width:80px;padding:7px 3px}}

.payrow{flex-wrap:wrap}.order-rate{flex:0 0 100%;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;background:var(--soft);color:var(--strong);border-radius:7px}.order-rate .link{white-space:nowrap;font-size:12px}
.rate-controls,.rate-tables{display:grid;grid-template-columns:1fr 1.35fr;gap:14px}
.rate-controls{margin-top:14px}.rate-controls label{display:grid;gap:4px;color:var(--muted);font-size:13px;font-weight:600}
.rate-controls input,.rate-controls select{width:100%;min-width:0;background:var(--surface);color:var(--text);border-radius:8px;border:1px solid var(--line);padding:10px}
.rate-result{padding:12px;background:var(--selected);color:var(--strong);border-radius:8px;font-weight:650}
.rate-file{display:grid;gap:6px;font-size:13px;color:var(--muted)}.rate-file input{width:100%;min-width:0;max-width:100%}
.rate-tables{align-items:start}.rates-table{width:100%;border-collapse:collapse;margin-top:12px;font-size:14px}.rates-table th,.rates-table td{text-align:left;border-bottom:1px solid var(--line);padding:8px 4px}.rates-table td{text-align:right;white-space:nowrap}.rates-table thead th{font-size:12px;color:var(--muted)}.rates-table thead th:not(:first-child){text-align:right}.rates-table tbody th{font-weight:500}
.edit-line{border-bottom:1px solid var(--line);padding-bottom:10px}.unsettled-choice{display:inline-flex;align-items:center;gap:6px;padding:5px 0}.unsettled-choice input{width:18px;height:18px}
@media(max-width:1000px){.rate-tables{grid-template-columns:1fr}}@media(max-width:550px){.rate-controls{grid-template-columns:1fr}}

.rate-transfer{margin-top:16px;color:var(--muted);font-size:14px}
.rate-transfer summary{cursor:pointer;color:var(--strong)}
.rate-transfer .rate-file{margin-top:12px}
.rates-table .rate-edit{font-size:13px;padding:6px}
.rates-table th:first-child{overflow-wrap:anywhere}
@media(min-width:1001px) and (max-width:1300px){.rate-tables{grid-template-columns:1fr 1.15fr}.rate-tables .panel{padding:13px}.rates-table{font-size:13px}}
@media(max-width:430px){.rate-tables .panel{padding:11px}.rates-table{font-size:12px}.rates-table th,.rates-table td{padding:8px 2px}}
/* Semantic colours stay consistent across the workspace themes. */
:root{
 --waiting-surface:#f0f0f0;--waiting-ink:#494949;
 --making-surface:#fff2ad;--making-ink:#624900;
 --ready-surface:#dff3e8;--ready-ink:#1b5c3a;
 --late-surface:#fff0ed;--late-ink:#9e242a;--late-solid:#a52129;--late-on:#fff;
 --rush-surface:#ffd052;--rush-ink:#402900;
 --stock-surface:#efe5ff;--stock-ink:#60319a;
}
:root[data-light=dark]{
 --waiting-surface:var(--soft);--waiting-ink:var(--muted);
 --making-surface:var(--soft);--making-ink:#d9c795;
 --ready-surface:var(--soft);--ready-ink:#b2cbb8;
 --late-surface:#412b2d;--late-ink:#f2b4b5;--late-solid:#ce8283;--late-on:#241a1b;
 --rush-surface:#393324;--rush-ink:#f1cd88;
 --stock-surface:var(--soft);--stock-ink:var(--muted);
}
body{font-size:1rem}
.stage.tone-wait{background:var(--waiting-surface);color:var(--waiting-ink)}
.stage.tone-work{background:var(--making-surface);color:var(--making-ink)}
.stage.tone-ready,.stage.tone-sent{background:var(--ready-surface);color:var(--ready-ink)}


.queue{background:var(--surface);border-color:var(--line)}
.queue .hbtn{color:var(--text)}.queue .count{background:var(--ready-surface);color:var(--ready-ink)}
.tag:not(.hot):not(.late-badge){background:var(--stock-surface);color:var(--stock-ink)}
.tag.hot{background:var(--rush-surface);color:var(--rush-ink)}
.tag.late-badge{background:var(--late-solid);color:var(--late-on);padding:4px 10px}
.cardhead .stage{padding:4px 9px;border-radius:5px;font-weight:600}.stage:before{display:none}
.tag,.tag.hot,.cardhead .stage,.cardfooter small,.qitem{font-size:.875rem}
.urgent-card{border-top:1px solid var(--line)}

.card.late-card{border-inline-start:2px solid var(--late-solid)}
.late-card .cardfooter .late{color:var(--late-ink);font-weight:700}
.view-toggle{display:inline-flex;gap:2px;align-items:center;background:var(--side);border:1px solid var(--line);border-radius:9px;padding:3px}
.view-toggle button{padding:5px 11px;font-weight:600;font-size:.875rem;color:var(--muted);border-radius:6px}.view-toggle [aria-pressed=true]{background:var(--surface);color:var(--strong);box-shadow:0 1px 4px #0002}
.stock-line{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:9px;display:grid;grid-template-columns:minmax(60px,.65fr) minmax(100px,1.35fr);gap:7px 12px}
.stock-line label{display:grid;gap:3px;font-size:.875rem;color:var(--muted)}
.stock-line label:first-child,.stock-sub{grid-column:1/-1}
.stock-line input{width:100%;min-width:0;padding:8px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:7px}
.stock-sub{display:flex;align-items:center;justify-content:space-between}
.stock-sub output{font-weight:650}.stock-cost{background:var(--stock-surface);color:var(--stock-ink)}

.heading h1,.brand,.sectionhead h2,.hbtn,h2,.card h3,.modal h2,.receipt h3{line-height:1.4;letter-spacing:normal}
.new-order-btn{white-space:nowrap}.order-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#new-order textarea{resize:vertical;font:inherit;color:var(--text);background:var(--surface)}
.order-flags{display:flex;gap:18px}.order-flags label{display:flex;gap:6px;align-items:center;font-weight:600}.order-flags input{width:18px;height:18px}
.new-photos{display:flex;flex-wrap:wrap;gap:8px}.new-photos>div{display:grid;gap:3px}.new-photos img{width:80px;height:64px;object-fit:cover;border-radius:6px}.new-photos button{font-size:.8rem;padding:4px}
.listing a{color:var(--strong);font-weight:600}.new-order-btn:focus-visible{outline-offset:3px}
@media(max-width:700px){.heading{flex-wrap:wrap}.heading h1{font-size:clamp(1.6rem,6vw,2.25rem)}.order-columns{grid-template-columns:1fr}.order-columns label.field{margin:4px 0}}
.quick-line{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:12px 16px;border:1px dashed var(--line);border-radius:9px;background:var(--surface);color:var(--text)}
.quick-line:focus-within,.line-selected{outline:2px solid var(--accent);outline-offset:-2px}
.quick-name{flex:1 1 100%;display:flex;align-items:center;gap:8px;color:var(--strong)}
.quick-name input{font:inherit;min-width:0;width:100%;padding:8px 2px;border:0;border-bottom:1px solid var(--line);color:var(--text);background:transparent}
.quick-assets{flex:1 0 100%}.quick-assets:empty,.quick-line [data-tool-panel]:empty{display:none}
.inline-tools,.quick-end{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.quick-end{margin-left:auto}
.inline-tools button,.inline-tools label,.quick-end button,.order-grip,.tag-panel button{font:inherit;font-size:.875rem;color:var(--strong);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:4px 9px;cursor:pointer}
.inline-tools [aria-expanded=true],.quick-end [data-quick-save]{background:var(--selected);font-weight:650}
.tool-file{position:relative}.tool-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.tool-file:focus-within{outline:2px solid var(--accent)}
.card .inline-tools{margin-top:6px}
.quick-line [data-tool-panel]{flex-basis:100%}.inline-panel{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:10px;background:var(--soft);border-radius:8px;margin-top:6px}
.inline-panel label,.tag-panel form{display:flex;gap:6px;align-items:center}.inline-panel:not(.tag-panel) label{display:grid;flex:1 1 160px}.inline-panel input:not([type=checkbox]){min-width:0;max-width:100%;padding:7px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:5px;font:inherit}
.tag-panel form{max-width:100%}.tag-panel input[type=checkbox]{width:18px;height:18px}
.order-grip{touch-action:none;cursor:grab;font-size:1.2rem;line-height:1;padding:7px 10px;user-select:none}
.dragging-order .order-grip{cursor:grabbing}.dragging-order{opacity:.65}.order-list .drop-before{box-shadow:inset 0 4px var(--accent)!important}.order-list .drop-after{box-shadow:inset 0 -4px var(--accent)!important}
.link-preview{margin:7px 0;border:1px solid var(--line);border-radius:7px;background:var(--soft);max-width:36rem;overflow:hidden}
.link-preview a{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--strong);padding:8px}.link-preview span{min-width:0}.link-preview strong,.link-preview small{display:block;overflow-wrap:anywhere}.link-preview small{color:var(--muted)}.link-preview img{width:85px;height:58px;object-fit:contain}.link-preview iframe{border:none;width:100%;aspect-ratio:16/9}
.draft-photo{position:relative}.draft-photo img{width:64px;height:50px;object-fit:cover}.draft-photo span{position:absolute;right:2px;top:0;background:var(--surface);border-radius:50%;padding:0 4px}
.custom-tag{margin:2px}.quick-line .link,.card .inline-tools button{min-height:32px}@media(max-width:700px){.order-grip,.inline-tools button,.inline-tools label{min-height:38px}.quick-end{margin-left:0}.quick-line{padding:9px}.order-list .cardhead{gap:5px}}
.tag.custom-tag:not(.hot):not(.late-badge){background:var(--side);color:var(--text)}

/* Workspace hierarchy and order attachments */
:root {
 --paper:#f5f6f1;
 --surface:#fffefb;
 --side:#eef1e9;
 --focus:var(--accent);
}
.nav-label-short { display:none; }
header { border-color:var(--line); }
.top { padding:12px clamp(14px,3vw,42px); }
.brand { font-size:1.55rem; font-weight:750; gap:8px; }
.brand svg { width:34px; height:34px; }
aside { padding-top:25px; }
nav button { font-size:.9rem; }
main { padding-top:19px; }
.heading { min-height:34px; margin-bottom:8px; }
.heading h1 { font-size:clamp(1.3rem,2.65vw,2.1rem); font-weight:720; line-height:1.3; }
.worker-picker { display:flex; align-items:center; gap:8px; font-size:.875rem; color:var(--muted); }
.worker-picker select { color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:9px; min-height:42px; padding:7px 10px; }
.sectionhead h2,.hbtn,h2 { font-weight:700; font-size:1.125rem; }
.panel { border-radius:15px; }



.stats {
 display:flex; flex-wrap:wrap; align-items:center; gap:4px;
 margin:0 0 14px;
}
.stat {
 display:inline-flex; align-items:center; gap:4px; min-height:32px; padding:3px 8px;
 border:1px solid var(--line); border-radius:7px;
 background:var(--surface); color:var(--text); font-size:.8rem; line-height:1.4; white-space:nowrap;
}
.stat b { font-variant-numeric:tabular-nums; }
.stat.tone-all { background:var(--surface); color:var(--text); }
.stat.tone-wait { background:var(--waiting-surface); color:var(--waiting-ink); }
.stat.tone-work { background:var(--making-surface); color:var(--making-ink); }
.stat.tone-ready { background:var(--ready-surface); color:var(--ready-ink); }
.stat.tone-late { background:var(--late-surface); color:var(--late-ink); }
.stat:hover,.stat[aria-pressed=true] { border-color:currentColor; }
.stat[aria-pressed=true] { box-shadow:inset 0 -2px currentColor; font-weight:700; }
.stat:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.queue { padding:6px 11px; margin-bottom:13px; border-radius:10px; }
.queue .sectionhead { gap:4px 10px; }
.queue .hbtn { font-size:.96rem; padding-block:2px; }
.queue .count { padding:1px 6px; }
.queue .quiet { font-size:.8rem; padding:4px 7px; }
.queue .empty { margin:4px 0; font-size:.875rem; }
.queue .qitem { min-height:28px; }
.queue .qitem button { padding-block:3px; }
#board-results .sectionhead h2 { font-size:1rem; }
.queue .qgrid { margin-top:5px; }
.qitem button:hover { color:var(--strong); text-decoration:underline; text-underline-offset:3px; }
.order-list {
 display:flex;
 flex-direction:column;
 margin:6px 0 23px;
 overflow:hidden;
 border:1px solid var(--line);
 border-radius:10px;
 background:var(--surface);
}
.order-list:empty { display:none; }
.order-list .card {
 min-width:0;
 padding:8px clamp(9px,1.5vw,16px);
 border:0;
 border-bottom:1px solid var(--line);
 border-radius:0;
 box-shadow:none;
 background:transparent;
}
.order-list .card:last-child { border-bottom:0; }
.order-list .late-card {
 border-inline-start:2px solid var(--late-solid);
 background:color-mix(in srgb,var(--late-surface) 20%,var(--surface));
}
.order-list .cardfooter { border-top:0; padding-top:0; margin-top:4px; }
.order-header { display:flex; align-items:center; gap:3px 7px; flex-wrap:wrap; }
.order-title-line {
 flex:1 1 7rem;
 min-width:0;
 overflow-wrap:anywhere;
 line-height:1.45;
}
.order-list .order-title-line h3 {
 display:inline;
 margin:0;
 font-size:.97rem;
 font-weight:680;
 line-height:inherit;
}
.order-labels .tag {
 display:inline-block;
 max-width:100%;
 margin:0 4px 0 0;
 padding:1px 4px;
 font-size:.69rem;
 font-weight:720;
 letter-spacing:0;
 border-radius:4px;
 overflow-wrap:anywhere;
}
.order-labels .tag .icon { width:1em; height:1em; vertical-align:-.12em; stroke-width:2; }
.order-grip { padding:4px 6px; background:transparent; border-color:transparent; color:var(--muted); }
.order-grip:hover { border-color:var(--line); background:var(--soft); }
.order-status {
 display:inline-flex; align-items:center; max-width:100%; position:relative; border-radius:10px;
}
.order-status::after {
 content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
 transform:rotate(45deg); position:absolute; right:14px; top:calc(50% - 5px); pointer-events:none;
}
.order-status select {
 appearance:none; background:transparent; color:inherit; padding:8px 36px 8px 13px;
 min-inline-size:min(9rem,100%); max-width:100%; min-height:44px; font-size:1rem; font-weight:650;
 border:1px solid color-mix(in srgb,currentColor 32%,transparent); border-radius:inherit;
}
.order-status option { background:var(--surface); color:var(--text); }
@supports (field-sizing:content) {
 .order-status select { field-sizing:content; inline-size:auto; }
}

.order-list .card .order-note { margin:2px 0 0; font-size:.875rem; }
.order-list .card .gallery,.modal .gallery {
 display:flex; flex-wrap:wrap; gap:7px; overflow:visible; padding:0; margin:9px 0;
}
.photo-tile { position:relative; min-width:0; }
.order-list .card .photo-tile,.modal .photo-tile { flex:0 1 clamp(88px,12vw,146px); }
.order-list .card .photo,.modal .photo {
 display:block; width:100%; height:auto; aspect-ratio:5/4; background:var(--soft);
 border:1px solid var(--line); border-radius:11px;
}
.order-meta { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:6px; }
.order-meta:empty { display:none; }
.date-chip {
 display:inline-flex; align-items:center; gap:6px; color:var(--muted); background:var(--soft);
 border:1px solid transparent; padding:2px 6px; border-radius:100px; font-size:.78rem;
}
.date-chip .icon { width:13px; height:13px; }
.inline-tools .icon { width:16px; height:16px; }
button.date-chip:hover,button.date-chip[aria-expanded=true] { color:var(--strong); border-color:var(--line); }
.late-card .date-chip { color:var(--late-ink); background:var(--late-surface); }
:root[data-light=dark] .stat { background:var(--surface); color:var(--muted); }
:root[data-light=dark] .stat[aria-pressed=true] { background:var(--selected); color:var(--strong); }
:root[data-light=dark] .tone-late b { color:var(--late-ink); }
:root[data-light=dark] .tone-work b { color:var(--making-ink); }
:root[data-light=dark] .tone-ready b { color:var(--ready-ink); }
:root[data-light=dark] .order-list .late-card { background:var(--surface); }
:root[data-light=dark] .tag.late-badge { background:var(--late-surface); color:var(--late-ink); }
:root[data-light=dark] .order-status select { color:var(--text); border-color:#737670; }
:root[data-light=dark] .card .date-chip { color:var(--muted); background:transparent; }
.card .inline-tools { margin-top:6px; }
.inline-tools button,.inline-tools label {
 display:inline-flex; align-items:center; gap:5px; padding:6px 8px;
 color:var(--muted); background:transparent; border-color:transparent; font-size:.875rem;
}
.inline-tools button:hover,.inline-tools label:hover,.inline-tools button[aria-expanded=true],.inline-tools button[aria-pressed=true] {
 background:var(--soft); border-color:var(--line); color:var(--strong);
}
.inline-tools .attachment-toggle { margin-left:auto; text-decoration:underline; text-underline-offset:3px; }
.inline-panel textarea { width:100%; padding:7px; font:inherit; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:6px; resize:vertical; }
.link-preview { position:relative; border-radius:9px; }
.link-preview:has(.remove-attachment) a { padding-right:49px; }
.link-preview.etsy-preview { width:clamp(88px,17vw,108px); max-width:100%; border-radius:6px; }
.link-preview.etsy-preview a { display:block; padding:0; }
.etsy-preview etsy-thumbnail { display:flex; flex-direction:column; gap:3px; align-items:center; justify-content:center; aspect-ratio:5/4; font-size:.78rem; text-align:center; }
.etsy-preview etsy-thumbnail img { width:100%; height:100%; object-fit:cover; display:block; }
.etsy-preview .etsy-label { display:block; padding:3px 6px; font-size:.8rem; overflow-wrap:anywhere; }
.etsy-preview:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
.link-preview .remove-attachment,.photo-tile .remove-attachment {
 position:absolute; z-index:1; top:4px; right:4px; display:grid; place-items:center; width:34px; height:34px;
 border:1px solid var(--line); border-radius:999px; background:var(--late-surface); color:var(--late-ink); font-weight:700; font-size:1.3rem; line-height:1;
}
.remove-attachment:hover { box-shadow:0 0 0 1px var(--late-solid); }
.quick-line { border-color:var(--line); background:var(--soft); padding:12px 15px; }
.quick-name input { padding-block:10px; }
.quick-name input::placeholder { color:var(--muted); }
.line-selected { outline:none; box-shadow:inset 0 0 0 1px var(--line); }
.order-list .card.line-selected { box-shadow:inset 0 0 0 1px var(--focus); }
.line-selected:focus-visible,.line-selected:has([aria-pressed=true].attachment-toggle) { outline:2px solid var(--focus); outline-offset:-2px; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible { outline-color:var(--focus); }
@media(max-width:700px){
 .top { padding:9px 12px; }
 aside { padding:5px 10px; }
 nav { overflow:visible; gap:3px; }
 nav > button { flex:1 1 auto; justify-content:center; min-height:42px; padding-inline:5px; gap:4px; }
 nav > button > .icon:first-child { display:none; }
 .nav-label-wide { display:none; }
 .nav-label-short { display:inline; }
 main { padding:12px 12px 42px; }
 .heading { margin-bottom:6px; }
 .heading h1 { font-size:1.28rem; }

 
 .queue { padding:5px 9px; }
 .queue .qitem { min-height:32px; }
 .queue .qgrid { grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:0 10px; }
 .order-grip,.card .inline-tools button,.inline-tools label { min-height:38px; }
 button.date-chip { min-height:32px; }
 .order-list .card .photo-tile,.modal .photo-tile { flex-basis:clamp(73px,25vw,118px); }
 .inline-tools .attachment-toggle { margin-left:0; }
}
@media(max-width:480px){
 .stats { gap:3px; }
 .stat { padding-inline:5px; min-height:36px; }
 .tag-panel form { flex-wrap:wrap; }
 .theme-toggle { min-height:38px; }
}

.quick-note:not([hidden]) {
 flex:1 1 100%;
 display:grid;
 gap:4px;
 margin-bottom:4px;
 color:var(--strong);
 font-size:.875rem;
 font-weight:600;
}
.quick-note textarea {
 min-height:4rem;
 padding:8px 10px;
 border:1px solid var(--line);
 border-radius:8px;
 background:var(--surface);
 color:var(--text);
 resize:vertical;
 font-weight:400;
}
.quick-note textarea::placeholder { color:var(--muted); }
.preview-and-more {
 display:flex;
 align-items:center;
 gap:5px;
 min-width:0;
}
.order-list .card .gallery-preview {
 flex:none;
 flex-wrap:nowrap;
 gap:5px;
 min-width:0;
 width:max-content;
 max-width:100%;
 margin:5px 0;
}
.order-list .card .gallery-preview .photo-tile {
 flex:none;
 width:clamp(48px,17vw,108px);
}
.order-list .card .gallery-preview .photo { border-radius:6px; }
.photo-overflow {
 display:inline-flex;
 flex:none;
 align-items:center;
 gap:3px;
 padding:2px 5px;
 min-height:28px;
 font-size:.76rem;
 font-weight:650;
 color:var(--muted);
 border-radius:5px;
 white-space:nowrap;
}
.photo-overflow .icon { width:13px; height:13px; }
.photo-overflow[hidden] { display:none; }
.photo-overflow:hover { background:var(--soft); color:var(--strong); }
@media(max-width:700px) {
 .photo-overflow { min-height:32px; }
}

.view-toggle { max-width:100%; flex-wrap:wrap; }
.compact-ready { margin-top:7px; }
.compact-ready .compact-order {
 padding:8px clamp(9px,1.5vw,16px);
 border:0;
 border-radius:0;
 box-shadow:none;
 background:var(--surface);
}
.compact-ready .compact-order+.compact-order { border-top:1px solid var(--line); }
.compact-order h3 {
 margin:0;
 font-size:1rem;
 line-height:1.45;
 overflow-wrap:anywhere;
}
.order-list .compact-order p.order-note,
.compact-order p.order-note {
 margin:2px 0 0;
 font-size:.875rem;
 color:var(--muted);
}
@media(max-width:380px) {
 .stat { padding-inline:4px; gap:3px; }
 .view-toggle button { padding-inline:8px; }
}

.ship-actions { margin:8px 0; }
.compact-title { display:flex; align-items:center; gap:8px; }
.compact-title h3 { margin:0; }
.order-name { font:inherit; color:inherit; text-align:start; padding:0; background:transparent; border:0; }
.order-name:hover { text-decoration:underline; }
input[data-ship] { flex:none; width:18px; height:18px; margin:0; accent-color:var(--strong); }
.order-list label[for^="ship-"] { display:inline-block; align-content:center; min-height:44px; cursor:pointer; }

@media(max-width:480px){
 .stats { display:grid; grid-template-columns:repeat(5,minmax(max-content,1fr)); gap:3px; overflow-x:auto; }
 .stats .stat { flex-direction:column; justify-content:center; gap:0; min-height:42px; padding:2px; }
 .stats .stat [aria-hidden] { display:none; }
}

stored-sample { display:contents; }
.order-return, .draft-note-preview {
 background:transparent; color:var(--strong); border:0; border-radius:6px;
 text-align:start; font:inherit; text-decoration:underline; text-underline-offset:3px;
}
.order-return { padding:5px 6px; font-size:.875rem; }
.draft-note-preview { width:100%; padding:8px; }
.order-note, .draft-note-preview { white-space:pre-wrap; overflow-wrap:anywhere; }
dialog:has(.touch-edit-form)[open] {
 position:fixed; inset:auto 0; top:calc(var(--editor-top, 0px) + 8px);
 width:min(480px, calc(100% - 16px)); max-width:calc(100% - 16px);
 max-height:calc(var(--editor-height, 100dvh) - 16px); margin:0 auto;
 overflow:hidden; box-sizing:border-box;
}
dialog:has(.touch-edit-form) .modal {
 display:flex; flex-direction:column; max-height:calc(var(--editor-height, 100dvh) - 20px);
 box-sizing:border-box; padding:12px 16px;
}
dialog:has(.touch-edit-form) .sectionhead { flex:none; margin:0 0 4px; }
.touch-edit-form { min-height:0; display:flex; flex-direction:column; }
.touch-edit-fields { min-height:0; overflow:auto; overscroll-behavior:contain; }
.touch-edit-form .edit-context { margin:4px 0; font-weight:600; }
.touch-edit-form label.field { margin:6px 0 10px; }
.touch-edit-form :is(textarea,input) { font-size:16px; line-height:1.45; }
.touch-edit-form textarea { min-height:5rem; height:clamp(5.5rem,calc(var(--editor-height,100dvh) * .32),12rem); resize:vertical; }
.touch-edit-form .actions { flex:none; margin:4px 0 0; padding-top:6px; border-top:1px solid var(--line); }
.touch-edit-form .actions button { min-height:44px; }
.touch-edit-form [data-remove-order] { margin-right:auto; }
@media (max-width:700px), (pointer:coarse) {
 .inline-tools [data-tool="note"], .inline-tools [data-toggle-quick-note], .order-return { min-height:44px; }
}

.compact-note {
 display:block; max-width:100%; min-height:44px; padding:4px 0;
 background:transparent; border:none; color:var(--muted); font:inherit;
 text-align:start; white-space:pre-wrap; overflow-wrap:anywhere;
}

/* Mobile browsers keep the layout viewport tall when the keyboard covers its lower half. */
@media (max-width:700px), (pointer:coarse) {
 body[data-page-entry]::after { content:""; display:block; height:var(--entry-space); pointer-events:none; }
 input:not([type=checkbox],[type=radio]), textarea, select, .inline-panel input:not([type=checkbox]) { font-size:max(16px,1em); }
 dialog[data-keyboard-dialog][open]:not(:has(.touch-edit-form)) {
  position:fixed; inset:auto 0; top:calc(var(--editor-top) + 8px);
  margin:0 auto; max-height:calc(var(--editor-height) - 16px); overflow:auto;
  scroll-padding-block:12px; overscroll-behavior:contain;
 }
 .quick-name input { min-height:44px; font-size:16px; }
 dialog .close { flex:none; min-width:44px; min-height:44px; }
 .quick-end button, .card .inline-tools button, .inline-tools label, .inline-tools button { min-height:44px; }
}

@media(max-width:480px) {
 .brand { flex:none; white-space:nowrap; }
 .role { flex-wrap:nowrap; }
 .role-caption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .theme-toggle { min-height:44px; }
}
@media(max-width:355px) {
 .theme-text { display:none; }
 .theme-toggle { min-width:44px; }
}

.money[aria-invalid="true"] { border-color:var(--late-solid); }
.pay-history-nav { margin-bottom:12px; }
.paid-history .field { display:grid; gap:5px; margin-bottom:12px; }
.paid-history .reportrow > div { min-width:0; }
.paid-history .order-name { min-height:32px; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.paid-history .amount { white-space:nowrap; }
