/* StudioFlow · Capi mascot + reversible cancelled tasks (2026-11-17) */
.sf-mascot-toggle {border:1px solid #e6cdd5;border-radius:999px;background:#fff7f9;color:#693745;font-weight:800;font-size:11px;padding:9px 12px;white-space:nowrap;cursor:pointer}
.sf-mascot-toggle:hover,.sf-mascot-toggle:focus-visible {background:#ffe8ef;outline-offset:2px}
.sf-mascot {position:fixed;left:270px;bottom:20px;width:120px;z-index:8;pointer-events:none;filter:drop-shadow(0 6px 10px rgba(77,45,29,.15));animation:sf-capi-walk 24s linear infinite alternate;opacity:.96;will-change:transform}
.sf-mascot[hidden]{display:none!important}
.sf-mascot img{display:block;width:100%;height:auto;animation:sf-capi-hop 2.7s ease-in-out infinite}
@keyframes sf-capi-walk {from{transform:translateX(0)}to{transform:translateX(max(0px,calc(100vw - 470px)))}}
@keyframes sf-capi-hop{0%,100%{translate:0 0}50%{translate:0 -5px}}
/* Gray cancellation presentation with preserved readable titles and source metadata. */
.sf-cancelled-card,.job-card.sf-cancelled-card {background:#f1f1f1!important;border:1px solid #dadada!important;box-shadow:none!important;color:#666!important;filter:none!important;cursor:pointer}
.sf-cancelled-card:hover {transform:none!important;box-shadow:0 2px 8px rgba(90,90,90,.11)!important}
.sf-cancelled-card .brand-bullet {background:#b9b9b9!important}
.sf-cancelled-card .brand-tag,.sf-cancelled-card h3,.sf-cancelled-card .job-product,.sf-cancelled-card .assignee-name,.sf-cancelled-card .date,.sf-cancelled-card .card-brief-hint{color:#777!important}
.sf-cancelled-card .size-chip,.sf-cancelled-card .priority,.sf-cancelled-card .revision-pill {color:#818181!important;background:#e3e3e3!important}
.sf-cancelled-pill {display:inline-block;border-radius:7px;color:#696969;background:#dedede;border:1px solid #d2d2d2;font-size:10px;font-weight:800;padding:4px 7px;margin-top:10px}
.sf-cancelled-group{border-radius:16px;border:1px solid #dedede;background:#f5f5f5;overflow:hidden;margin-top:18px}
.sf-cancelled-group>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;min-height:54px;cursor:pointer;list-style:none;background:#eaeaea!important;color:#6b6b6b!important}
.sf-cancelled-group>summary::-webkit-details-marker{display:none}
.sf-cancelled-group>summary strong{font-size:13px}
.sf-cancelled-group .sf-group-icon,.sf-cancelled-group .sf-summary-arrow{color:#898989!important}
.sf-cancelled-group .sf-group-num{margin-left:auto;background:#dcdcdc;color:#666}
.sf-cancelled-group .sf-group-cards{padding:14px}
.sf-cancelled-group .sf-group-card>.status-badge,.status-badge.cancelled{background:#e0e0e0;color:#777;border-color:#d3d3d3}
.status-dot.cancelled{background:#a5a5a5!important}
.sf-cancelled-bottom{margin-top:5px}
.sf-cancel-action{margin-top:14px;padding:12px 14px;background:#f6f6f6;border:1px dashed #dedede;border-radius:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.sf-cancel-action p{margin:0;font-size:11px;color:#777;flex:1}
.sf-cancel-button,.sf-restore-button{border-radius:9px;font-weight:800;font-size:11px;padding:9px 12px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.sf-cancel-button{background:#f1f1f1;color:#676767;border:1px solid #d8d8d8}
.sf-restore-button{background:#eff5dc;color:#566625;border:1px solid #bbc889}
.sf-cancel-button:hover,.sf-restore-button:hover{filter:brightness(.96)}
.status-badge.cancelled .status-dot{background:#999}
.work-table tr:has(.status-badge.cancelled){background:#f5f5f5;color:#858585}
.work-table tr:has(.status-badge.cancelled) .brand-bullet{background:#b6b6b6!important}
@media(max-width:780px){.sf-mascot{left:8px;bottom:9px;width:75px;animation:sf-capi-mobile 20s linear infinite alternate;opacity:.82}.sf-mascot-toggle{padding:7px 8px;font-size:10px}@keyframes sf-capi-mobile{from{transform:translateX(0)}to{transform:translateX(min(175px,calc(100vw - 100px)))}}}
@media(max-width:490px){.sf-mascot-toggle{font-size:0;padding:7px 9px;min-width:32px}.sf-mascot-toggle::before{content:"🐾";font-size:15px}}
@media(prefers-reduced-motion:reduce){.sf-mascot,.sf-mascot img{animation:none!important;will-change:auto}}

/* Mascot interaction: only the button catches taps; its overlay never blocks the board. */
.sf-mascot{pointer-events:none}
.sf-mascot-button{display:block;position:relative;z-index:2;width:100%;padding:0;margin:0;border:0;background:transparent;border-radius:20px;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sf-mascot-button img{pointer-events:none;user-select:none;-webkit-user-drag:none}
.sf-mascot-button:focus-visible{outline:3px solid #a2ab38;outline-offset:3px}
.sf-mascot:has(.sf-mascot-button:hover),.sf-mascot:has(.sf-mascot-button:focus-visible){animation-play-state:paused}
.sf-mascot-reaction{position:absolute;left:50%;bottom:92%;transform:translate(-50%,8px) scale(.88);opacity:0;white-space:nowrap;padding:7px 11px;background:#fff;border:1px solid #f4cedb;border-radius:20px;color:#754051;font-size:12px;font-weight:850;box-shadow:0 3px 13px rgba(91,42,54,.11);pointer-events:none;z-index:3}
.sf-mascot-heart{position:absolute;left:18%;top:16%;opacity:0;font-size:20px;color:#f086ab;pointer-events:none;z-index:3}
.sf-mascot-heart-two{left:76%;top:30%;font-size:15px;color:#d9a23e}
.sf-mascot.is-cheering .sf-mascot-button{animation:sf-capi-cheer .55s ease-in-out 2}
.sf-mascot.is-cheering .sf-mascot-reaction{animation:sf-capi-bubble 1.5s ease-out both}
.sf-mascot.is-cheering .sf-mascot-heart-one{animation:sf-capi-heart-a 1.3s ease-out both}
.sf-mascot.is-cheering .sf-mascot-heart-two{animation:sf-capi-heart-b 1.3s ease-out both}
@keyframes sf-capi-cheer{0%,100%{transform:translateY(0) rotate(0)}32%{transform:translateY(-14px) rotate(-8deg)}66%{transform:translateY(-5px) rotate(7deg)}}
@keyframes sf-capi-bubble{0%{opacity:0;transform:translate(-50%,8px) scale(.88)}20%,75%{opacity:1;transform:translate(-50%,-8px) scale(1)}100%{opacity:0;transform:translate(-50%,-20px) scale(1)}}
@keyframes sf-capi-heart-a{0%{opacity:0;transform:translate(0,12px) scale(.65)}25%{opacity:1}100%{opacity:0;transform:translate(-15px,-38px) scale(1.15)}}
@keyframes sf-capi-heart-b{0%{opacity:0;transform:translate(0,12px) scale(.65)}30%{opacity:1}100%{opacity:0;transform:translate(12px,-41px) scale(1.15)}}
@media(prefers-reduced-motion:reduce){.sf-mascot.is-cheering .sf-mascot-button,.sf-mascot.is-cheering .sf-mascot-heart{animation:none!important}.sf-mascot.is-cheering .sf-mascot-reaction{animation:none!important;opacity:1;transform:translate(-50%,-8px) scale(1)}}

/* Draggable mascot: preserve the last dropped location; no forced auto-walk after placement. */
.sf-mascot.is-positioned{bottom:auto!important;animation:none!important;transform:none!important;will-change:auto}
.sf-mascot.is-dragging{opacity:1;filter:drop-shadow(0 10px 14px rgba(77,45,29,.25));user-select:none}
.sf-mascot-button{cursor:grab;touch-action:none}
.sf-mascot.is-dragging .sf-mascot-button{cursor:grabbing}
.sf-mascot.is-dragging .sf-mascot-button img{animation-play-state:paused}
