#kd-market-v5 .shop-entry-tools{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:32px;flex:none}
#kd-market-v5 .shop-entry-tools .market-register-label{margin:0;min-width:0;flex:1}
#kd-market-v5 .shop-entry-tools .shop-money-toggle{margin-left:auto;min-width:48px;height:32px;padding:3px}
#kd-market-v5 .shop-math-hint{min-width:44px;min-height:32px;padding:3px 6px;border:1px solid #7b5e95;border-radius:9px;background:#fff6ce;color:#442354;font:750 11px/1.1 system-ui;flex:none;cursor:pointer}
#kd-market-v5 .shop-math-hint[data-suggested=true]{outline:3px solid #94631f;outline-offset:1px}
#kd-market-v5 :is(.shop-math-hint,.shop-money-piece,.shop-money-toggle):focus-visible{outline:3px solid #40215f;outline-offset:2px;box-shadow:0 0 0 5px #fff}
#kd-market-v5 :is(.shop-entry-tools,.shop-math-hint)[hidden]{display:none!important}
#kd-market-v5:is([data-phase=pay],[data-phase=done],[data-phase=review],[data-phase=picker],[data-phase=camera],[data-phase=story]) .shop-entry-tools{display:none!important}
#kd-market-v5 .shop-math-coach{width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:0;border:3px solid #765395;border-radius:18px;background:#fff9e9;color:#342040}
#kd-market-v5 .shop-math-coach::backdrop{background:#2b173c88}
#kd-market-v5 .shop-math-coach header{position:sticky;top:0;z-index:2;background:#eadcf3;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:8px;border-bottom:1px solid #9c80ae}
#kd-market-v5 .shop-math-coach h2{font:750 17px/1.2 system-ui;margin:0;overflow-wrap:anywhere}
#kd-market-v5 .shop-math-close{min-height:44px;min-width:92px;background:#644080;color:#fff;border:2px solid #44245b;border-radius:10px;font:700 12px system-ui;padding:6px;cursor:pointer}
#kd-market-v5 .shop-math-content{padding:10px 12px;max-height:calc(100dvh - 130px);overflow:auto;box-sizing:border-box}
#kd-market-v5 .shop-math-expression{font:800 clamp(19px,4.5vw,27px)/1.6 system-ui;text-align:center;background:#f8e8b9;border:1px solid #c6ac61;border-radius:12px;padding:7px;overflow-wrap:anywhere}
#kd-market-v5 .shop-math-content h3{font:700 13px/1.3 system-ui;margin:10px 0 5px}
#kd-market-v5 .shop-math-pictures{display:flex;gap:6px;flex-wrap:wrap}
#kd-market-v5 .shop-math-pictures>span{width:44px;height:48px;display:grid;place-items:center;background:#fff;border:2px solid #baa3cd;border-radius:8px;box-sizing:border-box}
#kd-market-v5 .shop-math-pictures img{width:36px;height:38px;object-fit:contain}
#kd-market-v5 .shop-math-note{font:600 13px/1.45 system-ui;color:#43334c}
#kd-market-v5 .shop-math-compare{display:grid;gap:10px;font:700 13px/1.3 system-ui}
#kd-market-v5 .shop-math-track{display:block;background:#e2d5e9;border:1px solid #9d85ad;border-radius:6px;height:18px;margin-top:4px;overflow:hidden}
#kd-market-v5 .shop-math-track i{display:block;height:100%;background:#795292}
#kd-market-v5 .shop-money-selected{color:#493713;background:#fff3c4}
#kd-market-v5 .shop-money-piece.word{background:#f2e8f8;color:#40234e}
#kd-market-v5 .market-main{color:#183d2e}
#kd-market-v5 .shop-fullscreen-dismiss{min-width:32px;min-height:32px;margin-left:8px;border:1px solid #856b43;background:#fff6df;color:#4d3657;border-radius:6px}
#kd-market-v5 .shop-fullscreen-message:not(:empty){display:flex;align-items:center;justify-content:space-between}
#kd-market-v5 .shop-npc-camera[data-npc-state=unavailable]>canvas,#kd-market-v5 [data-npc-state=unavailable]>canvas{visibility:hidden}
@media(min-width:500px) and (max-height:440px){#kd-market-v5.cashier-r2 .market-register{grid-template-rows:32px 44px minmax(44px,1fr) 12px}#kd-market-v5 .shop-entry-tools{grid-column:1;grid-row:1;gap:3px}#kd-market-v5 .shop-entry-tools [data-entry-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#kd-market-v5 .shop-entry-tools .shop-money-toggle{min-width:46px;font-size:9px}#kd-market-v5 .shop-math-hint{padding:2px;min-width:44px}}
@media(min-height:700px){#kd-market-v5 .shop-math-hint,#kd-market-v5 .shop-entry-tools .shop-money-toggle{min-height:40px;height:40px}}
@media(prefers-reduced-motion:reduce){#kd-market-v5 .shop-math-hint{transition:none}}

#kd-market-v5.cashier-r2 .market-receipt{font-size:12px;color:#2b2131}
#kd-market-v5.cashier-r2 .market-receipt-row .line-price{font-size:12px;color:#2b2131}
#kd-market-v5.cashier-r2 .market-item-value{font-size:11.5px;line-height:12px}
#kd-market-v5.cashier-r2 .market-item-unit{font-size:9px;line-height:10px}
@media(max-width:680px) and (min-height:641px){#kd-market-v5.cashier-r2 .market-key{min-height:40px}}

#kd-market-v5.cashier-r2 .shop-entry-tools .market-register-label{color:#281333}
