/* Charcoal buttons, cream thread. Motion is feedback, never the only state cue. */
.sewn-button { display: block; width: 30px; height: 30px; flex: 0 0 auto; overflow: visible; fill: none; }
.button-body { fill: #292d26; stroke: #191c17; stroke-width: 1.6; }
.button-rim { fill: none; stroke: #686e5b; stroke-width: .8; }
.thread-hole { fill: #11150f; stroke: #82816c; stroke-width: .6; }
.button-stitch { opacity: 1; transform-origin: 16px 16px; }
.is-sewn .button-stitch { opacity: 1; }
.thread, .thread-shadow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread-shadow { stroke: #151a12; stroke-width: 4.3; }
.thread { stroke: #ffffff; stroke-width: 2.6; }
.button .sewn-button, .button.voted .sewn-button { width: 27px; height: 27px; fill: none; }
.button.primary .action-button-mark { width: 23px; height: 23px; }
.button.primary { column-gap: 10px; }
.hero-copy .button.primary { column-gap: 12px; }
.button.primary:hover .action-button-mark { transform: rotate(-12deg); }
.action-button-mark { transition: transform .24s ease; }
.just-sewn .is-sewn .thread { animation: thread-draw .56s cubic-bezier(.2,.7,.2,1) both; }
.just-sewn .is-sewn .button-stitch { animation: thread-tighten .56s ease-out both; }
.just-sewn .is-sewn .thread-shadow { animation: thread-shadow .56s ease-out both; }
@keyframes thread-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes thread-tighten { 0% { transform: scale(1.35) rotate(-14deg); } 65% { transform: scale(.91) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes thread-shadow { 0%, 30% { opacity: 0; } 100% { opacity: 1; } }
.destination-actions .vote-button, .destination-actions .voted { min-height: 46px; padding: 7px 14px 7px 9px; }
.vote-context { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.vote-context > span:not(.dangling-button), .vote-context > small { grid-column: 2; }
.vote-context:not(:has(.dangling-button)) > span, .vote-context:not(:has(.dangling-button)) > small { grid-column: 1 / -1; }
.vote-context .dangling-button { grid-row: 1 / 3; width: 26px; height: 42px; }
.dangling-button { display: inline-block; width: 42px; height: 64px; flex: 0 0 auto; }
.dangling-button > svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; }
.loose-thread { fill: none; stroke: #8f7756; stroke-width: 1.2; stroke-linecap: round; }
.loose-button { transform-origin: 20px 2px; animation: button-dangle 5.6s ease-in-out infinite; }
@keyframes button-dangle { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.empty-notes > .dangling-button { margin: -8px 1px 0 0; }
.empty-shortlist > .dangling-button { display: block; margin: 0 auto 18px; width: 44px; height: 68px; }
.empty-shortlist > .empty-index { display: block; }
.search-empty { display: flex; align-items: center; gap: 12px; }
.search-empty[hidden] { display: none; }
.search-empty .dangling-button { width: 27px; height: 44px; }
.game-plan-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0 7px; padding-bottom: 19px; border-bottom: 1px dashed #fffbf13b; }
.game-plan-buttons > a, .game-plan-buttons > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 8px 0; border: 0; border-radius: 8px; background: transparent; color: #e3e3d1; font-size: 10px; line-height: 1.2; }
.game-plan-buttons .sewn-button { width: 35px; height: 35px; }
.game-plan-buttons .done { color: #fffbf1; font-weight: 600; }
.game-plan-buttons > :hover { background: #fffbf10b; }
.game-plan-buttons .button-body { stroke: #1c2519; }
.game-plan-buttons .button-rim { stroke: #95977e; }
.member-votes { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; }
.member-votes > .sewn-button { width: 25px; height: 25px; }
.member-votes .dangling-button { width: 30px; height: 48px; margin-top: -12px; }
.member-dates small { display: block; margin-top: 5px; font-size: 10px; color: #756041; }
.roster .member-row:nth-child(3n) .loose-button { animation-delay: -1.5s; }
.roster .member-row:nth-child(3n + 1) .loose-button { animation-delay: -3s; }
.availability-reply { margin-top: 21px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.availability-reply > span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.availability-choices { display: flex; align-items: stretch; gap: 6px; }
.availability-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--rule); background: #fffcf5; color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 500; }
.availability-choice .sewn-button { width: 28px; height: 28px; }
.availability-choice[aria-pressed=true] { background: #e7eadc; border-color: #7a8669; color: #303e2b; }
.availability-choice:hover { border-color: #7a8669; }
.availability-choice:focus-visible, .clear-availability:focus-visible { outline: 2px solid #765d40; outline-offset: 3px; }
.clear-availability { border: 0; background: transparent; font-size: 10px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 8px; margin-left: auto; min-height: 44px; }
.maybe-names { font-size: 10px; color: #756041; line-height: 1.65; margin-top: 7px; }
.date-actions { margin-top: 10px; }
.loading-eyes { display: flex; gap: 14px; margin: 0 0 29px; width: max-content; }
.loading-eyes .sewn-button { width: 43px; height: 43px; }
.spinning-eye { animation: eyes-spin 1.9s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes eyes-spin { 0%,12% { transform: rotate(0); } 88%,100% { transform: rotate(360deg); } }
.mascot-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mascot-thread, .mascot-thread-shadow { fill: none; stroke-linecap: round; }
.mascot-thread-shadow { stroke: #171b15; stroke-width: 10; }
.mascot-thread { stroke: #efdfbd; stroke-width: 6; }
.mascot-blink { transform-origin: 0 0; animation: stitched-blink 6.4s ease-in-out infinite; }
@keyframes stitched-blink { 0%,86%,94%,100% { transform: scaleY(1); } 90% { transform: scaleY(.08); } }
@media (max-width: 640px) {
  .button.primary .action-button-mark { width: 21px; height: 21px; }
  .hero-copy .button.primary { column-gap: 9px; }
  .member-votes { gap: 5px; }
  .member-votes > .sewn-button { width: 22px; height: 22px; }
  .availability-choice { padding-inline: 9px; font-size: 10px; }
  .availability-choices { gap: 5px; }
  .clear-availability { padding-inline: 5px; font-size: 9px; }
  .member-dates small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .loose-button, .spinning-eye, .mascot-blink, .just-sewn .is-sewn .thread, .just-sewn .is-sewn .button-stitch, .just-sewn .is-sewn .thread-shadow { animation: none; }
  .action-button-mark { transition: none; }
}
