/* Keep the plan strip in a React-owned slot so subsequent workstation redraws
   cannot discard the independently managed free/paid controls. */
.sampkai-access-anchor {
  width: min(100%, 1450px);
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.anvil-native-access-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  width: min(100%, 1120px);
  margin: 0 auto 7px;
  padding: 0 5px;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.anvil-native-access-strip__plans {
  flex: 1 1 660px;
  min-width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.anvil-native-access-strip__usage {
  flex: 0 1 164px;
  align-self: center;
  min-height: 36px;
  padding: 3px 7px;
  border: 1px solid #416e60;
  border-radius: 9px;
  background: #0e2422;
  color: #b5f5da;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  line-height: 1.1;
  text-align: center;
  font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.anvil-native-access-strip__usage.is-exhausted { border-color: #cf8051; background: #2a1b17; color: #ffd0aa; }
.anvil-native-access-strip__usage strong { font-size: 11px; }
.anvil-native-access-strip__usage small { width: 100%; margin-top: 2px; font-size: 8px; font-weight: 600; opacity: .83; }

/* A single compact tier strip sits directly between the navigation and donation bar. */
#sampkai-owner-row {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 7px !important;
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  margin: -4px auto 7px !important;
  padding: 0 5px;
  box-sizing: border-box;
  position: relative;
}
#sampkai-owner-row > #sampkai-access-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#sampkai-owner-row > #sampkai-owner-codes,
#sampkai-owner-row > #sampkai-owner-preview,
#sampkai-owner-row > #sampkai-owner-package { align-self: center; flex: 0 0 auto; }
#sampkai-plan-choices {
  flex: 1 1 660px;
  min-width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.anvil-plan-button {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 152, 71, .7);
  border-radius: 10px;
  background: linear-gradient(180deg, #25211c, #101617);
  color: #f8d297;
  box-shadow: inset 0 1px rgba(255, 244, 217, .12), 0 3px 12px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: 900 clamp(14px, 1.05vw, 16px) ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .015em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  animation: anvil-plan-breathe 3.5s ease-in-out infinite;
}
.anvil-plan-button:nth-child(2) { animation-delay: .5s; }
.anvil-plan-button:nth-child(3) { animation-delay: 1s; }
.anvil-plan-button strong { color: #fff0cf; font-size: 1.04em; white-space: nowrap; }
.anvil-plan-button.is-current { border-color: #75c7ad; color: #c6f4de; }
.anvil-plan-button:hover,
.anvil-plan-button:focus-visible {
  outline: 2px solid #ffcc75;
  outline-offset: 1px;
  background: linear-gradient(180deg, #3c3021, #142021);
  transform: translateY(-2px);
}
#sampkai-free-chop-status {
  flex: 0 1 164px;
  align-self: center;
  min-height: 36px;
  padding: 3px 7px;
  border: 1px solid #416e60;
  border-radius: 9px;
  background: #0e2422;
  color: #b5f5da;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  line-height: 1.1;
  text-align: center;
  font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
#sampkai-free-chop-status[hidden] { display: none; }
#sampkai-free-chop-status.is-exhausted { border-color: #cf8051; background: #2a1b17; color: #ffd0aa; }
#sampkai-free-chop-status strong { font-size: 11px; }
#sampkai-free-chop-status small { width: 100%; margin-top: 2px; font-size: 8px; font-weight: 600; opacity: .83; }
.anvil-chop-meter-dots { display: inline-flex; gap: 3px; }
.anvil-chop-meter-dots i { width: 5px; height: 5px; border-radius: 50%; background: #5de0b4; box-shadow: 0 0 7px #5de0b4; }
.anvil-chop-meter-dots i.is-used { background: #5e7471; box-shadow: none; }

.sampkai-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sampkai-price-card { display: flex; flex-direction: column; }
.sampkai-price-card.is-selected { border-color: #f6b75f; box-shadow: 0 0 0 1px rgba(246, 183, 95, .55), 0 0 22px rgba(246, 183, 95, .14); }
.sampkai-price-card small { flex: 1; line-height: 1.5; }
.sampkai-price-card button { min-height: 44px; }

#anvil-chop-reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: end center;
  padding: 22px;
  box-sizing: border-box;
  background: #071213;
  overflow: auto;
}
#anvil-chop-reset-overlay[hidden] { display: none; }
.anvil-chop-reset-scene {
  position: absolute;
  inset: -4%;
  background: linear-gradient(180deg, rgba(1, 7, 8, .05) 20%, rgba(1, 7, 8, .42) 58%, rgba(1, 7, 8, .93) 100%),
    url('beat-smiths-wall.png') center 48% / cover no-repeat;
  animation: anvil-wall-drift 18s ease-in-out infinite alternate;
}
.anvil-chop-reset-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255, 199, 113, .21), transparent 30%),
    radial-gradient(circle at 78% 32%, rgba(60, 218, 190, .18), transparent 32%);
  mix-blend-mode: screen;
  animation: anvil-wall-lights 6s ease-in-out infinite alternate;
}
.anvil-chop-reset-card {
  position: relative;
  width: min(620px, 100%);
  margin-bottom: clamp(8px, 5vh, 55px);
  padding: clamp(21px, 4vw, 32px);
  border: 1px solid #d3a362;
  border-top: 3px solid #f1b76a;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(9, 28, 27, .96), rgba(6, 13, 16, .93));
  box-shadow: 0 30px 90px #000, 0 0 40px rgba(234, 162, 78, .22);
  backdrop-filter: blur(12px);
  color: #f8ead4;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.anvil-chop-reset-eyebrow { color: #e6b981; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.anvil-chop-reset-card h2 { margin: 10px 0; font-size: clamp(24px, 5vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.anvil-chop-reset-card p { color: #d3d7cc; font-size: 13px; line-height: 1.55; }
.anvil-chop-reset-timer { display: flex; flex-direction: column; gap: 4px; margin: 17px auto; padding: 11px; border: 1px solid #426e61; border-radius: 10px; background: #071d1d; }
.anvil-chop-reset-clock { color: #94e8c7; font-size: clamp(36px, 9vw, 61px); font-weight: 900; letter-spacing: .08em; font-variant-numeric: tabular-nums; text-shadow: 0 0 25px rgba(100, 240, 193, .44); animation: anvil-clock-breathe 2.2s ease-in-out infinite; }
.anvil-chop-reset-timer small { color: #b5c9ba; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.anvil-chop-reset-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.anvil-chop-reset-actions button { min-height: 43px; padding: 10px 15px; border: 1px solid #bd9667; border-radius: 9px; background: #192624; color: #fbe2bd; font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.anvil-chop-reset-actions button:last-child { background: #e9ad59; color: #15201d; }
.anvil-chop-reset-actions button:hover,
.anvil-chop-reset-actions button:focus-visible { outline: 2px solid #fff0c8; outline-offset: 2px; filter: brightness(1.13); }

@keyframes anvil-wall-drift { from { transform: scale(1.035) translate(-.6%, 0); } to { transform: scale(1.11) translate(.8%, -.8%); } }
@keyframes anvil-wall-lights { from { opacity: .4; filter: hue-rotate(-5deg); } to { opacity: 1; filter: hue-rotate(13deg); } }
@keyframes anvil-plan-breathe { 0%,100% { box-shadow: inset 0 1px rgba(255,244,217,.12), 0 3px 12px rgba(0,0,0,.55); } 50% { box-shadow: inset 0 1px rgba(255,244,217,.2), 0 0 18px rgba(238,169,80,.29); } }
@keyframes anvil-clock-breathe { 0%,100% { opacity: .84; } 50% { opacity: 1; } }

@media (max-width: 800px) {
  .anvil-native-access-strip { padding: 0 10px; }
  .anvil-native-access-strip__plans { min-width: 100%; order: 2; }
  .anvil-native-access-strip__usage { order: 1; flex-basis: 185px; }
  #sampkai-owner-row { padding: 0 10px !important; }
  #sampkai-plan-choices { min-width: 100%; order: 2; }
  #sampkai-free-chop-status { order: 1; flex-basis: 185px; }
  .sampkai-price-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 500px) {
  .anvil-plan-button { font-size: 13px; padding: 9px 4px; min-height: 86px; }
  .anvil-plan-button span, .anvil-plan-button strong { display: block; width: 100%; }
  .anvil-plan-button strong { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .anvil-plan-button,
  .anvil-chop-reset-scene, .anvil-chop-reset-scene::after,
  .anvil-chop-reset-clock { animation: none !important; }
}

/* Paid plans (Nov 19 2026): hidden plan cards stay hidden. */
#sampkai-plan-choices[hidden],
#sampkai-plan-choices .anvil-plan-button[hidden] { display: none !important; }
#sampkai-plan-choices[data-level="studio"] { grid-template-columns: minmax(0, 1fr); }
.anvil-native-access-strip--upgrade .anvil-plan-upgrade { width: 100%; }
