/* case-check.css — maintained styles; declaration order preserves the existing cascade. */
/* Quiet search cue: one-second rest, a small look-around, then settle. */
.case-check>img{transform-origin:50% 50%;animation:case-search-idle 2.4s ease-in-out infinite}
@keyframes case-search-idle{0%,41.67%,100%{translate:0 0;rotate:0deg}57%{translate:-1px -1px;rotate:-9deg}72%{translate:1px 0;rotate:6deg}88%{translate:0 0;rotate:-2deg}}
.case-check:focus-visible>img,body.case-check-open .case-check>img{animation:none}
@media(hover:hover) and (pointer:fine){.case-check:hover>img{animation:none}}
@media(prefers-reduced-motion:reduce){.case-check>img{animation:none}}
.case-check { position: fixed; right: 14px; transform: translateY(-50%); z-index: 52; padding: 12px; border: 0; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; }
.case-check img { filter: brightness(0) invert(1); }
.case-check span { font-weight: 700; }
.case-check:hover,.case-check:focus-visible { border-radius: 12px; }
.case-check-search { position: fixed; bottom: max(20px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; width: min(440px,calc(100vw - 40px)); padding: 6px; border-radius: 32px; background: #fff; box-shadow: 0 4px 24px #0002; }
.case-check-search[hidden] { display: none; }
.case-check-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 14px; border-radius: 24px; background: #f5f5f5; font: inherit; font-size: 13px; }
.case-check-search [role=status] { white-space: nowrap; }
.case-check-search button { border: 0; border-radius: 50%; background: #f5f5f5; font-size: 22px; }
.case-check-open #mode-switch { visibility: hidden!important; pointer-events: none!important; }
#projects>.project[hidden] { display: none!important; }
@media(hover:none),(pointer:coarse) {
  .case-check { width: 40px; height: 40px; right: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .case-check { transition: none; }
}
.project-rail-tick[hidden] { display: none!important; }
.case-check { width: 48px; height: 48px; padding: 0; overflow: hidden; transition: width .32s cubic-bezier(.22,1,.36,1),border-radius .32s ease; }
.case-check img { position: absolute; width: 24px; height: 24px; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 1; transition: opacity .16s ease,transform .3s ease; }
.case-check span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity .2s ease,transform .3s ease; white-space: nowrap; line-height: 1; }
.case-check:hover,.case-check:focus-visible { border-radius: 13px; }
.case-check:hover img,.case-check:focus-visible img { display: block; opacity: 0; transform: translate(-50%,-50%) scale(.7); }
.case-check:hover span,.case-check:focus-visible span { display: flex; opacity: 1; transform: translateY(0); transition-delay: .1s; }
.case-check-search { padding: 6px 7px 6px 14px; gap: 8px; box-shadow: none; overflow: visible; }
.case-check-search input { background: transparent; padding: 12px 8px; color: #191919; }
.case-check-search input::placeholder { color: #b8b8b8; }
.case-check-search [role=status] { position: absolute; right: 58px; top: -13px; font-size: 25px; line-height: 1; font-weight: 700; color: #000; pointer-events: none; }
.case-check-search button { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; background: #000; color: #fff; font: 300 32px/1 Arial; }
@media(hover:none),(pointer:coarse) {

}
.case-check { transition: width .32s cubic-bezier(.22,1,.36,1),border-radius .32s ease,opacity .24s ease,transform .3s ease,visibility .3s; }
.case-check span { font-size: 17px; }
.case-check:hover,.case-check:focus-visible { width: 122px; }
.case-check-search { border-radius: 12px; }
.case-check-status { position: fixed; z-index: 41; left: max(40px,calc(50% - 200px)); bottom: calc(max(20px,env(safe-area-inset-bottom)) + 66px); color: #fff; mix-blend-mode: difference; font-size: 13px; line-height: 1.5; pointer-events: none; }
.case-check-status strong { font-size: 19px; font-weight: 700; margin: 0 2px; }
.case-check-status[hidden] { display: none; }
@media(prefers-reduced-motion:reduce) {
  .case-check,.case-check img,.case-check span { transition: none; }
}
.case-check:hover,.case-check:focus-visible { border-radius: 999px; }
.case-check { top: 20%; }
@media(hover:none),(pointer:coarse) {
  .case-check { top: 20%!important; }
}
.case-check,.case-check:hover,.case-check:focus-visible { width: 40px; height: 40px; padding: 0; border-radius: 999px; background: #292929; animation: none; transition: opacity .24s ease,transform .3s ease,visibility .3s; }
.case-check img,.case-check:hover img,.case-check:focus-visible img { display: block; left: auto; right: 10px; top: 50%; width: 20px; height: 20px; opacity: 1; transform: translateY(-50%); transition: none; }
@media(max-width:600px) {
  .case-check,.case-check:hover,.case-check:focus-visible { width: 32px; height: 32px; }
  .case-check img,.case-check:hover img,.case-check:focus-visible img { right: 7px; width: 18px; height: 18px; }
}
@media(max-width:600px) {
  .case-check-search { bottom: calc(var(--case-search-keyboard-inset,0px) + max(12px,env(safe-area-inset-bottom))); }
  .case-check-search input { font-size: 16px; }
  .case-check-status { bottom: calc(var(--case-search-keyboard-inset,0px) + max(12px,env(safe-area-inset-bottom)) + 66px); }
}
.case-check,.case-check:hover,.case-check:focus-visible { top: 50%!important; transform: translate(0,-50%); transition: opacity .3s ease,transform .4s cubic-bezier(.22,1,.36,1),visibility 0s; }
.case-check.is-unavailable { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(12px,-50%); transition-delay: 0s,0s,.4s; }
@media(prefers-reduced-motion:reduce) {
  .case-check { transition: none; }
}
