.cube-compare-work{padding:1rem;background:#f1faf5;border:2px solid #72a58c;border-radius:.8rem}.cube-compare-work button{min-height:44px;margin:.2rem}.cube-compare-work button[aria-pressed=true]{outline:3px solid #9c5100}.cc-rack{display:flex;align-items:center;gap:.5rem;padding:.5rem;border:2px dashed #8cad9d;border-radius:.7rem;min-height:60px}.cc-boards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.8rem}.cc-board{border:1px solid #7da995;border-radius:.7rem;padding:.5rem;background:white}.cc-columns{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:.4rem}.ccolumn{border:1px solid #93b6a4;background:#f2f7f5;padding:.3rem;min-height:190px}.ccolumn strong{display:block}.cc-stack{min-height:90px;display:flex;flex-direction:column-reverse;align-items:center}.cc-cube{display:flex;width:46px;height:30px;min-height:30px!important;margin:1px auto!important;border:2px solid #2d6396;background:#a7caed;border-radius:3px;touch-action:none}.cc-top,.cc-supply{cursor:grab}.cc-supply{min-height:44px!important}.cc-cube span{display:block;width:100%;height:100%;background:linear-gradient(145deg,transparent 45%,#649bc7 46%,#649bc7 52%,transparent 53%)}.cc-front{display:flex;gap:2px;align-items:end;padding:.2rem}.cc-front-col{display:flex;flex-direction:column}.cc-front-cell{width:32px;height:24px;border:1px dashed #b9cdc4;background:white}.cc-front-cell.on{border:1px solid #367660;background:#80bda4}.cube-compare-work [data-cc-status]{padding:.55rem;background:#e3f4e9;border-left:4px solid #39836a}

/* Keep the four front/back columns together inside a phone-sized student workspace. */
@media(max-width:520px){
 .cube-compare-work{min-width:0;max-width:100%;padding:8px}
 .cube-compare-work .cc-boards{grid-template-columns:minmax(0,1fr);min-width:0}
 .cube-compare-work .cc-board{min-width:0;padding:6px}
 .cube-compare-work .cc-columns{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 .cube-compare-work .ccolumn{min-width:0;padding:4px;overflow-wrap:anywhere}
 .cube-compare-work .ccolumn>button:not(.cc-cube){max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:7px 3px}
 body.mamoste-theme .cube-compare-work button.cc-cube.cc-top{align-items:flex-end;justify-content:center;height:44px!important;min-height:44px!important;padding:0!important;border:0;background:transparent}
 .cube-compare-work button.cc-cube.cc-top>span{box-sizing:border-box;flex:none;width:46px;height:30px;border:2px solid #2d6396;border-radius:3px;background:linear-gradient(145deg,transparent 45%,#649bc7 46%,#649bc7 52%,transparent 53%) #a7caed}
}
