@font-face{font-family:Lora;src:url(lora.woff2) format("woff2");font-display:swap}*{box-sizing:border-box}body{margin:0;background:#f4eee2;color:#302e2b;font:16px/1.45 system-ui,sans-serif}main{width:min(1100px,100%);margin:auto;padding:0 clamp(12px,4vw,48px) 24px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #c8bfae;padding:12px 0;gap:14px}header img{width:75px;height:46px}a{color:#92395a;text-underline-offset:4px}h1,h2{font-family:Lora,Georgia,serif;line-height:1.14;font-weight:600}h1{font-size:clamp(30px,4vw,54px);margin:24px 0 5px;color:#622c45}#sb-sale-sub{margin:0 0 18px;color:#595149}.sb-sale-desk{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(245px,1fr);gap:clamp(16px,3vw,36px);align-items:start}.sb-sale-paper{background:#fff;border-radius:5px;box-shadow:0 3px 10px #543b1b19;padding:8px clamp(8px,2vw,22px) 12px}.sb-sale-pagebar{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:center;padding:3px 0}.sb-sale-pagebar h2{margin:2px 0;font-size:clamp(16px,2vw,23px)}small{color:#775460;font-variant-numeric:tabular-nums}.sb-sale-picture{width:min(100%,64vh);margin:4px auto 0;position:relative}canvas{width:100%;height:auto;display:block;touch-action:manipulation;cursor:crosshair}button,select,.sb-sale-output a{font:inherit;color:inherit;min-height:44px;border-radius:10px;border:1px solid #cfc3af;background:#fffaf1;cursor:pointer;padding:7px 12px}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible,select:focus-visible{outline:3px solid #784867;outline-offset:2px}button svg,a svg{width:22px;height:22px;vertical-align:middle;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
aside h2{font-size:22px;margin:7px 0 12px}#sb-sale-palette{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:3px}#sb-sale-palette button{border:none;background:transparent;padding:2px;display:grid;place-items:center}#sb-sale-palette i{width:32px;height:32px;border-radius:50%;background:var(--pigment);box-shadow:inset 0 0 0 1px #0002}#sb-sale-palette [aria-pressed=true] i{outline:2px solid #493948;outline-offset:3px}#sb-sale-tools{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}#sb-sale-tools [aria-pressed=true]{background:#f4d4e0;border-color:#953e62}.sb-sale-printbox{border-top:1px solid #c8bfae;padding-top:12px}.sb-sale-output{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.sb-sale-output a,.sb-sale-output button{display:inline-flex;align-items:center;gap:5px;text-decoration:none;font-size:.9rem}.sb-sale-output a{color:#78364d}#sb-sale-status{min-height:1.4em}#sb-sale-spark{position:absolute;pointer-events:none;color:#98436c;font-size:32px;transform:translate(-50%,-75%);text-shadow:0 1px white;animation:sb-sale-glint .45s ease-out both}@keyframes sb-sale-glint{to{opacity:0;transform:translate(-50%,-120%) scale(1.25)}}dialog{border:0;border-radius:14px;padding:20px;background:#fffaf1}dialog::backdrop{background:#352b3266}#sb-sale-sheets{display:none}
@media(max-width:850px){#sb-sale-palette{grid-template-columns:repeat(5,1fr)}}@media(max-width:650px) and (orientation:portrait){.sb-sale-desk{grid-template-columns:1fr;gap:9px}.sb-sale-picture{width:min(100%,45svh)}#sb-sale-palette{grid-template-columns:repeat(6,1fr)}h1{margin-top:14px}aside h2{margin:6px 0}#sb-sale-tools{margin:8px 0}}@media(orientation:landscape) and (max-height:520px){header{padding:3px 0}header img{height:32px}h1{font-size:24px;margin:6px 0}#sb-sale-sub{display:none}.sb-sale-picture{width:min(100%,63vh)}.sb-sale-desk{grid-template-columns:minmax(0,1fr) minmax(235px,.85fr)}}
@media(prefers-reduced-motion:reduce){#sb-sale-spark{display:none}}@page{size:A4 portrait;margin:0}@media print{body{background:white}main,dialog{display:none!important}#sb-sale-sheets{display:block}.sb-sale-sheet{position:relative;height:296mm;display:grid;place-items:center;break-after:page}.sb-sale-sheet:last-child{break-after:auto}.sb-sale-sheet>img{width:176mm}.sb-sale-sheet footer{position:absolute;bottom:12mm;font:10pt sans-serif}.sb-sale-sheet footer img{width:11mm;vertical-align:middle;margin-right:4mm}}
@media screen{
 body .sb-sale-workshop{width:100%;height:100vh;height:100dvh;padding:0 clamp(8px,2vw,32px) 8px;display:flex;flex-direction:column}
 .sb-sale-workshop header{padding:5px 0;flex:none}.sb-sale-workshop header img{height:36px;width:54px}.sb-sale-workshop h1{font-size:clamp(16px,2.5vw,32px);margin:0;flex:1}
 .sb-sale-workshop #sb-sale-sub{margin:4px 0 8px}.sb-sale-workshop .sb-sale-desk{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) clamp(260px,27vw,395px);align-items:stretch}
 .sb-sale-workshop .sb-sale-paper{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:5px 8px 8px}
 .sb-sale-paper .sb-sale-picture{align-self:center;justify-self:center;width:auto;height:auto;min-height:0;max-height:100%;max-width:100%;aspect-ratio:1;margin:0;display:grid;place-items:center}
 .sb-sale-picture #sb-sale-art{height:100%;width:auto;max-width:100%;max-height:100%;aspect-ratio:1;touch-action:none}
 .sb-sale-workshop aside{overflow:auto;padding:0 4px}.sb-sale-workshop #sb-sale-status:empty{display:none}
 #sb-sale-cover{width:min(90vw,420px);text-align:center;padding:32px;background:#fffaf1}#sb-sale-cover img{width:76px}#sb-sale-cover h2{color:#622c45;font-size:clamp(24px,5vw,36px)}#sb-sale-enter{background:#843653;color:white}
}
@media screen and (orientation:portrait) and (max-width:850px){
 .sb-sale-workshop .sb-sale-desk{grid-template-columns:1fr;grid-template-rows:minmax(190px,1fr) auto;gap:6px}
 .sb-sale-workshop aside{max-height:32dvh;overflow:auto}.sb-sale-workshop aside h2{margin:4px 0;font-size:17px}.sb-sale-workshop #sb-sale-palette{grid-template-columns:repeat(6,1fr)}
 .sb-sale-workshop #sb-sale-tools{margin:5px 0}.sb-sale-workshop #sb-sale-sub{display:none}
}
@media screen and (max-height:520px) and (orientation:landscape){.sb-sale-workshop .sb-sale-desk{grid-template-columns:minmax(0,1fr) minmax(225px,32vw)}.sb-sale-workshop #sb-sale-sub{display:none}}
@media screen{.sb-sale-slot{container-type:size;display:grid;place-items:center;min-height:0}.sb-sale-slot .sb-sale-picture{width:min(100cqw,100cqh);height:min(100cqw,100cqh)}}
#sb-sale-touch-tip{display:none}
#sb-sale-loupe{position:fixed;z-index:1000;pointer-events:none;width:104px;height:104px;border-radius:50%;outline:3px solid #fff;box-shadow:0 3px 13px #49332555}
@media screen and (any-pointer:coarse){
 .sb-sale-workshop .sb-sale-paper{grid-template-rows:auto auto minmax(0,1fr)}
 #sb-sale-touch-tip{display:block;text-align:center;font:500 12px/1.3 system-ui;color:#594539;padding:1px 4px 4px}
}
@media print{#sb-sale-loupe{display:none}}
#sb-sale-aim-dock{display:none}
@media screen{
 #sb-sale-aim-dock[data-touch=true]{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
 .sb-sale-paper:has(#sb-sale-aim-dock[data-touch=true]){grid-template-rows:auto auto minmax(0,1fr)}
 #sb-sale-aim-dock[data-touch=true] #sb-sale-touch-tip{display:block;text-align:left;max-width:34ch;color:#604958;font:13px/1.25 system-ui,sans-serif}
 #sb-sale-loupe:not(.sb-sale-aiming){position:static;width:40px;height:40px;flex:none;border:2px solid #92536f;box-shadow:none;outline:0}
 #sb-sale-loupe.sb-sale-aiming{outline:3px solid #8b4261}
}
#sb-sale-help-dialog{width:min(420px,calc(100% - 28px));max-height:85dvh;overflow:auto;box-sizing:border-box;color:#332930}
#sb-sale-help-dialog h2{margin:0;color:#682e48}#sb-sale-help-list dt{font-weight:650;margin-top:14px}#sb-sale-help-list dd{margin:3px 0 0}
#sb-sale-help-close{color:white;background:#813655;border:0;padding-inline:20px}
