:root{color-scheme:light;--paper:#fbf8f5;--ink:#33262c;--muted:#74676b;--rose:#993655;--line:#e8deda;--wine:#422333;--soft:#f4e8e7;font:15px/1.5 "DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:var(--rose)}button,input,select{font:inherit}button,.button{min-height:41px;padding:9px 17px;background:#fff;border:1px solid #d9c9ca;border-radius:9px;color:var(--ink);cursor:pointer;text-decoration:none;font-weight:620}button:hover,.button:hover{background:#f7efed}.primary{background:var(--rose);color:white;border-color:var(--rose)}.primary:hover{background:#792944}.quiet{border:0;background:transparent;color:var(--rose)}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:3px solid #bf6980;outline-offset:3px}aside{position:fixed;inset:0 auto 0 0;width:220px;background:var(--wine);color:#fff6f2;padding:32px 19px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font:25px/1.05 Georgia,serif}.brand img{width:51px}.brand i{display:block;color:#edbac4}.asidefoot{margin-top:auto;border-top:1px solid #704a5b;padding-top:16px;color:#e3becb;font:italic 16px Georgia,serif}nav{display:grid;gap:6px;margin-top:55px}nav a{display:flex;align-items:center;gap:13px;color:#f3dfe5;padding:12px;border-radius:9px;text-decoration:none}nav a[aria-current]{background:#69394c;color:white}svg.icon{width:20px;height:20px;vertical-align:middle;flex:none}main{margin-left:220px;padding:46px clamp(22px,5vw,85px) 70px;max-width:1550px}.head,.bar,.actions,.identity{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.head{border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:26px}.eyebrow,th{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.11em;color:var(--muted)}h1,h2,h3,p{margin:0}h1,h2,.big{font-family:Georgia,"Times New Roman",serif;font-weight:normal}h1{font-size:clamp(38px,5vw,61px);line-height:1.12;margin:5px 0 0;letter-spacing:-.045em}h2{font-size:28px;letter-spacing:-.025em}.sub,.hint,small{color:var(--muted)}.sub{margin-top:7px}.hint{font-size:13px}.stats,.grid,.cards,.formgrid{display:grid;gap:14px}.stats{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));margin:20px 0 30px}.metric,.box,.card{background:#fffdfb;border:1px solid var(--line);border-radius:14px}.metric{padding:18px 20px}.big{font-size:clamp(24px,2.3vw,35px);margin:6px 0;color:var(--wine)}.metric:first-child{background:#f6e7e6;border-color:#edced3}.box{padding:22px;margin:16px 0}.bar{margin:22px 0 12px}.actions{justify-content:flex-start;gap:8px}.empty{padding:48px 20px;text-align:center;border:1px dashed #d4bfc2;border-radius:14px;background:#fffbf8}.empty img{width:63px;margin-bottom:11px}.empty p{margin:6px auto 17px;max-width:410px;color:var(--muted)}.cards{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.card{overflow:hidden;text-align:left;padding:0;font-weight:normal}.card img,.cover{width:100%;height:155px;object-fit:cover}.cover{display:grid;place-items:center;background:#f2e4e2}.cover img{width:56px;height:56px}.cardbody{padding:15px}.cardbody strong{font:24px Georgia,serif;display:block;margin:4px 0}.tablewrap{overflow:auto;background:#fffdfb;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}td,th{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}th{background:#f4eeeb;white-space:nowrap}td.num{text-align:right}.warn{color:#8a4522}.search{width:min(100%,300px)}input,select{padding:10px 12px;border:1px solid #d6c8c9;color:var(--ink);background:white;border-radius:8px;min-width:0;max-width:100%}label{display:grid;gap:5px;font-size:13px;font-weight:650;align-content:start}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0 20px}.wide{grid-column:1/-1}.recipe{display:grid;grid-template-columns:minmax(110px,1fr) 90px 65px 42px;gap:7px;align-items:end;margin:8px 0}.recipe button{padding:8px}.footactions{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.error{color:#982c3b;font-weight:600;margin-top:10px}.detailphoto{display:block;max-width:100%;max-height:230px;border-radius:12px;margin:15px 0}.avatar{width:70px;height:70px;object-fit:cover;border-radius:50%}.identity{justify-content:flex-start}.amount{font-weight:bold;color:var(--rose)}dialog{width:min(720px,95vw);max-height:92vh;padding:0;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--paper);box-shadow:0 22px 90px #27142240}dialog::backdrop{background:#29192280}#sheet{padding:24px}#sheet>.bar{margin:0 0 18px}.skip{position:fixed;top:-60px;z-index:5;background:white;padding:8px}.skip:focus{top:0}#toast:not(:empty){position:fixed;bottom:20px;right:20px;color:white;background:var(--wine);padding:11px 16px;border-radius:10px;z-index:10;max-width:90vw}.rowbtn{padding:5px 10px;min-height:34px}.badge{display:inline-block;background:#f4e4df;color:#894527;border-radius:6px;padding:2px 7px;font-size:12px}details{margin:8px 0}summary{cursor:pointer}button,input,td,strong,h2{overflow-wrap:anywhere}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:820px){aside{position:static;width:auto;padding:14px 18px 0}.brand{font-size:20px}.brand i{display:inline}.brand img{width:35px}.asidefoot{display:none}nav{display:flex;margin:12px -5px 0;gap:3px;overflow:auto}nav a{padding:10px 9px;white-space:nowrap;border-radius:7px 7px 0 0;font-size:13px;gap:5px}nav .icon{width:15px}main{margin:0;padding:24px 16px 50px}.head{margin-bottom:16px}.stats{gap:8px}.metric{padding:13px}.box,#sheet{padding:16px}}
@media(max-width:520px){.formgrid{grid-template-columns:1fr}.recipe{grid-template-columns:minmax(0,1fr) 70px 54px 35px;gap:4px}.recipe input,.recipe select{padding:9px 4px}.stats{grid-template-columns:1fr 1fr}.grid .stats{margin:10px 0}.head .actions button{min-height:37px}.tablewrap td,.tablewrap th{padding:9px 8px}.recipe label{font-size:11px}nav a{flex-direction:column;gap:2px}nav{justify-content:space-between}}
.stockfilters,.pager{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.stockfilters label{max-width:100%}.stocknote{margin:10px 0 16px}.linehint{display:block;font-size:12px;font-weight:normal;color:var(--muted);margin-top:3px}.linehint.warn{color:#8a4522}.itemlink{padding:0;text-align:left;min-height:26px}.pager{justify-content:space-between;margin:13px 0}.price-preview{margin:10px 0 0;padding-left:18px;font-size:13px}.price-preview li{margin:3px 0}
@media(max-width:520px){.stockfilters{display:grid;grid-template-columns:1fr}.stockfilters .search{width:100%}}
