/* Real fetched values, Figma node 375:9689 ("Pin modal"). Same slide-up
   mechanism every other modal in this app uses (js/app.js openPinModal —
   translateY(100%) -> translateY(0), var(--transition-standard)).
   height:auto (no height:100%) — this is a short, content-hugging action
   sheet (real frame is 390x339), not a tall screen like the other modals;
   #pin-modal-root (index.html) is sized/positioned to match. */
.pin-modal {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 12px 16px 45px;
  border-radius: 32px 32px 0 0;
  background-color: var(--background-fade-scrim);
  overflow: hidden;
  transition: transform var(--transition-standard);
}

.pin-modal__handle {
  flex-shrink: 0;
  width: 71px;
  height: 4px;
  border-radius: 8px;
  background-color: var(--surface-icon-button);
}

.pin-modal__title {
  flex-shrink: 0;
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
}

.pin-modal__group {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  background-color: var(--background-modal-box);
  border: 1px solid var(--border-modal-box);
}

.pin-modal__row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pin-modal__row-label {
  flex: 1 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-primary);
}

.pin-modal__row-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background-color: var(--text-secondary);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.pin-modal__row--checked .pin-modal__row-icon {
  background-color: var(--text-primary);
}

.pin-modal__actions {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  width: 100%;
}

.pin-modal__actions .btn {
  flex: 1 0 0;
  border-color: var(--border-modal-box);
  /* These buttons' own backdrop-filter (blur(100px), from the shared .btn
     base rule) is expensive to composite — without a hint, the browser
     can defer that compositing work until after the panel's own slide-in
     transform settles, which reads as the buttons visibly popping in
     late even though their opacity/display are correct for the entire
     animation (confirmed via frame sampling). will-change lets the
     browser prepare the composited layer before the animation starts
     instead of reacting to it mid-transition. */
  will-change: backdrop-filter;
}

/* Real fetched label color for THIS specific Cancel button (node
   375:9629) is --text-primary (bright white), not the dimmed
   --text-secondary the shared .btn--secondary tier uses for every other
   secondary button in this app — using the generic tier color here read
   as a disabled-looking button, which it isn't. */
.pin-modal__actions .btn--secondary .btn__label {
  color: var(--text-primary);
}
