/* Capy preview only: warm pastel surfaces and sharp, dark inventory labels. */
html[data-theme=capy][data-macaron=true]{
 --m-action:#965e39;--m-deep:#65432c;--m-title:#483425;--m-nav:#4e4339;
 --ink:#513925;--muted:#715f4e;--deep:#65432c;--green:var(--m-action);
 --paper:#fffbf3;--surface:#fff;--tile:#fffcf7;--line:#ecddc8;
 --soft:#fff6e1;--tint:#ffedc7;
 --nova-action:var(--m-action);--nova-grad:linear-gradient(135deg,#a76b40,#7b5032);
}
html[data-theme=capy] body.farm-ui{font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink)}
html[data-theme=capy] body.farm-ui[data-density] .main>header h1{color:#483425;text-shadow:none}
html[data-theme=capy] body.farm-ui[data-density] .main>header :is(p,.muted){color:#685340}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card{
 background:linear-gradient(160deg,#fff3d8,#fffaf0 76%,#fffdf8);
 border-color:#e8cfaa;
}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .item-name{
 color:#513925;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:0;
 text-shadow:none;filter:none;-webkit-text-fill-color:currentColor;
}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .aggregate-quantity{
 color:#573a24;font-weight:700;font-size:22px;line-height:1.1;
 text-shadow:none;background:none;-webkit-text-fill-color:currentColor;
 font-variant-numeric:tabular-nums;grid-column:1/-1;grid-row:2;text-align:center;
 white-space:nowrap;overflow-wrap:normal;word-break:normal;letter-spacing:0;
}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .item-open{row-gap:8px}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .item-open img{grid-row:1}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .compact-stock-status{
 color:#715b43;font-size:11px;line-height:1.4;background:#fffaf0;border-color:#ecddc8;
 margin-right:36px;min-width:0;overflow-wrap:anywhere;min-height:30px;display:flex;align-items:center;
}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-grid>.aggregate-card::after{z-index:0;width:28px;height:28px;pointer-events:none;animation:none}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card>*{z-index:1}
html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .compact-stock-status[data-kind=attention]{color:#78411c;background:#fff3df}
html[data-theme=capy] body.farm-ui[data-density] .zero-items-section .aggregate-quantity{color:#75624f;-webkit-text-fill-color:currentColor}
html[data-theme=capy] body.farm-ui[data-density] .stat-icon{position:relative}
html[data-theme=capy] body.farm-ui :is(.inventory-table th,thead th){background:#fff7e9;color:#66503d}
html[data-theme=capy] body.farm-ui :is(.inventory-table td,tbody td,.catalog-open){color:#513925}
html[data-theme=capy] body.farm-ui .table-link{color:#875533;font-weight:500}
html[data-theme=capy] body.farm-ui .catalog-open strong{font-weight:600}
html[data-theme=capy] body.farm-ui[data-density] .main>footer::before{
 max-width:calc(100% - 24px);white-space:normal;text-align:center;box-sizing:border-box;
}
html[data-theme=capy] body.farm-ui .main>footer::before,
html[data-theme=capy] body.farm-ui .main>header h1::after,
html[data-theme=capy] body.farm-ui .stat-icon::after{pointer-events:none}
html[data-theme=capy] body.farm-ui dialog{background:#fffdf9;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(hover:hover) and (pointer:fine){
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card:hover::after{animation:capyHop .7s var(--nova-ease)}
}
@media(max-width:700px){
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card{padding-left:3px;padding-right:3px}
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .item-open{gap:4px}
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .item-name{font-size:13px}
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .aggregate-quantity{font-family:Arial,"Helvetica Neue",sans-serif;font-size:clamp(14px,4.1vw,18px);margin:2px 0}
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card .compact-stock-status{margin-right:25px;font-size:11px;min-height:26px;display:flex;align-items:center}
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-grid>.aggregate-card::after{width:24px;height:24px;bottom:3px;right:3px}
 html[data-theme=capy] body.farm-ui[data-density] .main>header h1::after{width:1em;height:1em;margin-left:5px;vertical-align:-3px}
}
@media(hover:none),(pointer:coarse){
 html[data-theme=capy] body.farm-ui{background-attachment:scroll}
 html[data-theme=capy] body.farm-ui[data-density] .main>footer,
 html[data-theme=capy] body.farm-ui[data-density] .main>header h1::after,
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card::after{animation:none!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme=capy] body.farm-ui[data-density] .main>footer,
 html[data-theme=capy] body.farm-ui[data-density] .main>header h1::after,
 html[data-theme=capy] body.farm-ui[data-density] #workspace .aggregate-card::after{animation:none!important}
}
