:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  color: #fffaf4;
  background-color: #261a15;
  --text-muted: #f2e7db;
  --line: rgb(255 246 230 / 26%);
  --glass-tint: rgb(30 21 19 / 43%);
  --glass-radius: clamp(2rem, 8vw, 3.4rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  --screen-inset-block: clamp(1rem, 2.5vw, 2rem);
  position: relative;
  margin: 0;
  min-height: 100svh;
}

.scene, .scene-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: 0;
  overflow: hidden;
  background-color: #261a15;
}

.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
}

.scene-shade {
  position: absolute;
  background: linear-gradient(180deg, rgb(20 13 10 / 8%), rgb(20 13 10 / 22%));
}

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: 0.85rem;
  padding: calc(var(--screen-inset-block) + 3.25rem) clamp(1rem, 4vw, 2.5rem);
}

.glass-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 29.5rem);
  border-radius: var(--glass-radius);
  text-shadow: 0 1px 6px rgb(14 7 4 / 56%);
}

.glass-lens, .glass-frame::before, .glass-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass-frame::before {
  content: "";
  border: 1px solid var(--line);
  background-image: linear-gradient(152deg, rgb(255 242 219 / 12%), transparent 46%, rgb(16 6 4 / 16%));
  box-shadow:
    inset 0 1px 0 rgb(255 251 242 / 55%),
    inset 1px 0 0 rgb(255 251 242 / 16%),
    inset 0 -1px 1px rgb(26 13 10 / 60%),
    0 26px 80px -24px rgb(16 8 5 / 78%);
}

.glass-frame:not([data-refracted])::before {
  background-color: var(--glass-tint);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

@supports (mask-composite: exclude) {
  .glass-frame::after {
    content: "";
    box-sizing: border-box;
    padding: 2px;
    background: linear-gradient(122deg, transparent 25%, rgb(255 249 229 / 72%) 49%, rgb(208 228 255 / 30%) 59%, transparent 73%) 50% 44% / 210% 210%;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.44;
  }
}

.glass-content {
  position: relative;
  padding: clamp(1.15rem, 4vw, 1.55rem) clamp(1.2rem, 5vw, 2.2rem) clamp(1.55rem, 5vw, 2.45rem);
}

.site-header, .site-footer {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 3px #23150d, 0 2px 10px rgb(23 13 8 / 72%);
}

.site-header {
  inset-block-start: var(--screen-inset-block);
  inset-inline: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wordmark {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-footer {
  inset-block-end: var(--screen-inset-block);
  inset-inline: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.hero, .panel { text-align: center; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(2.65rem, 7vw, 3.65rem);
}

.panel { padding-top: clamp(1.7rem, 5vw, 2.9rem); }

h1, h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 3.25rem);
  font-weight: 700;
}

.hero h1 { font-size: clamp(3rem, 9vw, 4rem); }
h2 { font-size: 2.15rem; }

p { margin: 0.8rem 0; line-height: 1.52; }
.lede { color: var(--text-muted); text-wrap: balance; }
.hero .lede { font-size: 1.125rem; }
.help, .muted { color: var(--text-muted); }
.help { font-size: 0.875rem; }
.error { color: #ffddd3; font-weight: 650; }
.error:empty, #recording-state:empty, #ruling-evidence:empty { margin: 0; }

button {
  font: inherit;
  font-weight: 650;
  min-height: 2.75rem;
  cursor: pointer;
}

button:disabled, input:disabled { opacity: 0.65; cursor: default; }
:focus-visible { outline: 2px solid #fff0cd; outline-offset: 4px; }
h1[tabindex="-1"]:focus { outline: none; }

.primary, .menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.primary {
  min-height: 3.25rem;
  min-width: min(100%, 11rem);
  padding: 0.68rem 1.35rem;
  color: #2e1c13;
  background: linear-gradient(178deg, #fff6e9, #e8c7a8);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgb(14 7 4 / 28%);
  text-shadow: none;
}

.primary:not(:disabled):hover {
  background: linear-gradient(178deg, #fffaf1, #f5d7b6);
}

.hero-action {
  width: min(100%, 18.5rem);
  margin-top: 1.1rem;
}

.glow-action {
  position: relative;
  min-height: 3.6rem;
  font-size: 1.0625rem;
  color: #fff;
  border-color: rgb(255 125 119 / 44%);
  background: linear-gradient(178deg, #e11c2e, #ba1124);
  box-shadow: inset 0 1px 1px rgb(255 201 194 / 30%), 0 0 12px rgb(255 31 56 / 55%);
}

.glow-action:not(:disabled):hover {
  background: linear-gradient(178deg, #d3192d, #ba1124);
}

.glow-action::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 19px 4px rgb(255 40 61 / 84%), 0 0 38px 10px rgb(255 29 53 / 48%);
  pointer-events: none;
  opacity: 0.58;
}

.menu-button {
  color: #000;
  padding: 0.36rem 0.82rem;
  font-size: 0.875rem;
  background: #fff;
  text-shadow: none;
}

.menu-button:hover { background: #f0f0f0; }

.text-button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0.45rem 0.25rem;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.95rem;
  margin: 1.35rem 0;
}

.turn { position: relative; padding-top: 1.2rem; }
.turn-intro { display: flex; flex-direction: column; align-items: center; }
.turn .actions, .evidence-panel .actions { flex-direction: column; gap: 0.2rem; }
.turn .primary, .evidence-panel .primary { width: min(100%, 18.5rem); }
.turn .primary { padding-inline: 0.9rem; }
.turn .glow-label { text-wrap: balance; }
.argument-note {
  z-index: 2;
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 3px #23150d, 0 2px 10px rgb(23 13 8 / 72%);
  text-wrap: balance;
}

.recording-error-panel { padding: 2rem 0 1rem; color: #fff; }
.recording-error-panel h1 {
  max-width: 32ch;
  margin: 0 auto 0.8rem;
  font-size: clamp(1.1rem, 4.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
}

.timer {
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: clamp(3.35rem, 10vw, 4.3rem);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.065em;
}

.timer:disabled { opacity: 1; }
.timer-ring { display: none; }

.recording-in-progress .site-header,
.recording-in-progress .turn-surroundings {
  opacity: 0;
  visibility: hidden;
}

.recording-in-progress #turn-title { order: -1; }

.recording-in-progress .timer-display {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: clamp(10.5rem, 42vw, 13rem);
  transform: translate(-50%, -50%);
}

.recording-in-progress .timer { width: 100%; aspect-ratio: 1; }

.recording-submit, .recording-cancel {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: #fff;
  white-space: nowrap;
}

.recording-submit { inset-block-start: calc(100% + 0.75rem); }
.recording-cancel {
  z-index: 2;
  inset-block-end: 0.65rem;
  font-weight: 400;
  text-decoration: none;
}

.recording-in-progress .timer-ring {
  --timer-rim: 0.48rem;
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timer-ring::before,
.timer-progress,
.timer-progress::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.timer-ring::before {
  content: "";
  border: var(--timer-rim) solid #fff;
  box-shadow: 0 0 14px rgb(255 255 255 / 55%), inset 0 0 12px rgb(255 255 255 / 40%);
}

.timer-progress { filter: drop-shadow(0 0 10px rgb(255 38 66 / 90%)); }

.timer-progress::before {
  content: "";
  background: conic-gradient(#ff3452 0deg var(--timer-progress, 360deg), transparent var(--timer-progress, 360deg) 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--timer-rim)), #000 calc(100% - var(--timer-rim) + 0.5px));
}

.eyebrow {
  margin-top: 0;
  color: #ffe0b8;
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-art {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 2px 8px rgb(25 10 6 / 42%));
}

.argument-art {
  display: block;
  width: min(100%, clamp(8.5rem, 30vw, 10.5rem));
  height: auto;
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 2px 8px rgb(25 10 6 / 42%));
}

.menu-icon {
  position: relative;
  width: 1rem;
  height: 0.75rem;
  flex: none;
  border-block: 2px solid currentColor;
}

.menu-icon::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}

.mic-icon {
  position: relative;
  width: 1.125rem;
  height: 1.25rem;
  flex: none;
  background: linear-gradient(currentColor, currentColor) center bottom / 1.5px 0.29rem no-repeat;
}

.mic-icon::before, .mic-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mic-icon::before {
  top: 0;
  width: 0.44rem;
  height: 0.72rem;
  background: currentColor;
  border-radius: 999px;
}

.mic-icon::after {
  width: 0.8rem;
  height: 0.63rem;
  top: 0.37rem;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.55rem 0.55rem;
}

.mic-icon.is-stop {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.125rem;
  background: currentColor;
}

.mic-icon.is-stop::before, .mic-icon.is-stop::after { display: none; }

.evidence-panel {
  position: relative;
  padding-top: 3.35rem;
  color: #fff;
}

.step-back {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 1.65rem;
  line-height: 1;
}

.step-back:hover { background: rgb(255 255 255 / 15%); }
.evidence-picker { margin-top: 1.3rem; }

.evidence-dropzone {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  min-height: clamp(10.75rem, 31vw, 13rem);
  margin: 0;
  padding: 1.1rem;
  border: 2px dotted rgb(255 255 255 / 62%);
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 7%);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}

.evidence-dropzone:hover,
.evidence-dropzone.is-dragging { border-color: #fff; background: rgb(255 255 255 / 20%); }

#evidence:focus-visible + .evidence-dropzone { outline: 2px solid #fff; outline-offset: 4px; }
.evidence-drop-icon {
  position: relative;
  width: 1.6rem;
  height: 1.55rem;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0.25rem 0.25rem;
  background: linear-gradient(currentColor, currentColor) center 3px / 2px 0.85rem no-repeat;
}

.evidence-drop-icon::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}
.evidence-limit { font-size: 0.875rem; }
.evidence-panel .help, .evidence-panel .error { color: #fff; }
#retained-evidence { overflow-wrap: anywhere; }

.review-panel { padding-top: 0.7rem; }

.review-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  margin: 0 auto 0.9rem;
}

.review-mouth {
  display: block;
  width: min(100%, 10.5rem);
  height: auto;
  filter: drop-shadow(0 2px 8px rgb(25 10 6 / 42%));
}

.review-versus {
  color: #ffdf9a;
  font-size: clamp(1.7rem, 7vw, 2.75rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.review-evidence h2 { font-size: 1.2rem; letter-spacing: -0.02em; }

.review-evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.review-evidence-list li {
  min-width: 0;
  border-radius: 1rem;
  background: rgb(255 255 255 / 10%);
  padding: 0.75rem;
}

.review-evidence-list h3 { margin: 0 0 0.4rem; font-size: 0.875rem; }

.review-checklist {
  display: grid;
  justify-content: center;
  gap: 0.2rem;
}

.review-check-row {
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: start;
}

.review-check-row::before {
  content: "";
  width: 0.34rem;
  height: 0.62rem;
  justify-self: center;
  border: solid #fff;
  border-width: 0 0.125rem 0.125rem 0;
  transform: rotate(45deg);
  visibility: hidden;
}

.review-check-row.is-included::before { visibility: visible; }

.review-status { margin: 0.9rem 0 0; }
#get-verdict { display: flex; width: min(100%, 22rem); margin: 0.75rem auto 0; min-height: 3.8rem; }

label { display: block; color: var(--text-muted); margin: 0.25rem 0 0.45rem; font-size: 0.875rem; }

#handoff { position: relative; z-index: 2; }

.handoff-spinner {
  width: 3.2rem;
  height: 3.2rem;
  border: 0.23rem solid rgb(255 245 227 / 44%);
  border-top-color: #fff5e3;
  border-radius: 50%;
  filter: drop-shadow(0 1px 5px rgb(21 11 8 / 75%));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 36rem) {
  .scene img { object-position: 65% center; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-frame:not([data-refracted])::before {
    background-color: #35251e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .handoff-spinner { animation: spin 0.8s linear infinite; }
  .glass-frame::after { animation: glass-rim-light 12s ease-in-out infinite alternate; }
  .glow-action:not(:disabled)::after { animation: start-case-pulse 1.65s ease-in-out infinite alternate; }
  .primary, .menu-button { transition: transform 150ms ease; }
  .site-header, .turn-surroundings { transition: opacity 220ms ease, visibility 0ms; }
  .recording-in-progress .site-header,
  .recording-in-progress .turn-surroundings { transition-delay: 0ms, 220ms; }
  .glass-frame.showing-review::before,
  .showing-review .glass-content,
  body:has(.showing-review) > canvas[data-liquid-ignore] { animation: review-appear 460ms ease-out; }
  .showing-review .review-mouth-first { animation: review-mouth-in 570ms 80ms ease-out both; --mouth-origin: -2.4rem; }
  .showing-review .review-mouth-second { animation: review-mouth-in 570ms 80ms ease-out both; --mouth-origin: 2.4rem; }
  .showing-review .review-versus { animation: review-appear 340ms 310ms ease-out both; }
  .primary:not(:disabled):active, .menu-button:active { transform: scale(0.98); }

  @supports (background-clip: text) {
    .glow-action:not(:disabled):hover .glow-label {
      color: transparent;
      background-image: linear-gradient(105deg, #ffe7df 38%, #fff 48%, #fff 52%, #ffe7df 62%);
      background-size: 235% 100%;
      background-clip: text;
      animation: start-case-shimmer 1.4s ease-in-out infinite;
    }
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes review-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes review-mouth-in {
  from { opacity: 0; transform: translateX(var(--mouth-origin)); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glass-rim-light {
  from { background-position: 22% 20%; opacity: 0.3; }
  to { background-position: 78% 72%; opacity: 0.58; }
}

@keyframes start-case-pulse {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

@keyframes start-case-shimmer {
  from { background-position: 115% center; }
  75%, to { background-position: -15% center; }
}

.account-drawer {
  --line: #dedede;
  --text-muted: #3c3c3c;
  --drawer-tint: #f3f3f3;
  color-scheme: light;
  color: #000;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 27rem);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(1.2rem, 5vw, 2rem);
  padding-top: max(1.2rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  border: 0;
  border-inline-start: 1px solid var(--line);
  background: #fff;
  box-shadow: -1rem 0 3rem rgb(0 0 0 / 20%);
}

.account-drawer::backdrop { background: rgb(0 0 0 / 40%); }
.account-drawer :focus-visible { outline-color: #000; }

.drawer-header, .drawer-nav, .code-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-header { justify-content: space-between; }
.drawer-header h2 { font-size: 1.85rem; }
.drawer-header h2:focus { outline: none; }
.account-drawer h3 { margin: 1.4rem 0 0.35rem; font-size: 1.05rem; }

.drawer-close, .drawer-nav button, .secondary-action, .pack-button, .account-drawer .primary {
  color: inherit;
  border: 1px solid var(--line);
  background: #fff;
}

.drawer-close:hover, .drawer-nav button:hover, .secondary-action:not(:disabled):hover,
.pack-button:not(:disabled):hover, .account-drawer .primary:not(:disabled):hover {
  background: var(--drawer-tint);
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.drawer-nav {
  margin: 1.35rem 0;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.drawer-nav button, .secondary-action {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

.drawer-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.drawer-nav button[aria-pressed="true"] {
  background: var(--drawer-tint);
  border-color: #737373;
}

.drawer-icon {
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.drawer-icon::before, .drawer-icon::after {
  content: "";
  position: absolute;
  border: 1.5px solid currentColor;
}

.drawer-icon--credits::before, .drawer-icon--credits::after {
  inset-inline: 1px;
  height: 0.43rem;
  border-radius: 50%;
}

.drawer-icon--credits::before { top: 0.16rem; }
.drawer-icon--credits::after { top: 0.46rem; border-top-color: transparent; }

.drawer-icon--profile::before, .drawer-icon--profile::after {
  left: 50%;
  transform: translateX(-50%);
}

.drawer-icon--profile::before {
  top: 0.05rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
}

.drawer-icon--profile::after {
  bottom: 0.05rem;
  width: 0.71rem;
  height: 0.31rem;
  border-radius: 0.55rem 0.55rem 0.14rem 0.14rem;
}

.account-drawer .help { text-align: left; }
.drawer-intro { margin: 0 0 0.95rem; }
.credit-balance-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--drawer-tint);
}

.drawer-balance {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.payment-success { margin-top: clamp(1.4rem, 5vw, 2rem); }

.payment-success-summary {
  display: grid;
  justify-items: center;
  padding: 1.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--drawer-tint);
  text-align: center;
}

.payment-success-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.payment-success-icon::after {
  content: "";
  width: 0.5rem;
  height: 0.9rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-0.1rem) rotate(45deg);
}

.payment-success-balance {
  margin: 0.75rem 0 0.15rem;
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.credit-usage-note {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.account-drawer .primary.payment-success-action {
  width: 100%;
  margin-top: 0.85rem;
  border-color: #000;
}

.credit-packs { display: grid; gap: 0.55rem; }

.pack-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.8rem;
  text-align: left;
}

.pack-button:disabled { opacity: 0.72; }
.pack-price { font-variant-numeric: tabular-nums; }

.drawer-status, .drawer-error {
  margin: 0.75rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--drawer-tint);
  text-align: left;
}

.drawer-error { color: inherit; border: 1px solid #737373; }

.account-form input {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

.account-drawer .primary { border-color: #737373; box-shadow: none; }
.account-form .primary { width: 100%; }
.code-actions { justify-content: space-between; margin-top: 0.35rem; flex-wrap: wrap; }
.profile-summary { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.profile-email { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.profile-summary p + p { margin: 0.35rem 0; }
.profile-support {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
}

.saved-case { width: 100%; }
.saved-case summary { overflow-wrap: anywhere; }
.saved-case time { display: block; margin-top: 0.15rem; color: var(--text-muted); font-size: 0.825rem; font-weight: 400; }
.saved-case h4 { margin: 0.8rem 0 0.22rem; }
.saved-case p { margin: 0.25rem 0 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.saved-case .text-button { margin: 0 0 0.55rem; }
#more-cases { margin-top: 0.8rem; }

@media (prefers-reduced-motion: no-preference) {
  .account-drawer[open] { animation: reveal-drawer 220ms ease-out; }
  @keyframes reveal-drawer { from { transform: translateX(100%); } }
}
