:root {
  color-scheme: dark;
  --bg: #05010d;
  --bg-soft: #120a22;
  --ink: #f7f2ff;
  --muted: #c9bcda;
  --quiet: #907fa8;
  --line: rgba(255, 255, 255, 0.14);
  --violet: #8f5cff;
  --violet-2: #d7bd7b;
  --rose: #e2799f;
  --green: #92d9bc;
  --panel: rgba(20, 12, 36, 0.76);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(143, 92, 255, 0.28), transparent 42%),
    radial-gradient(circle at 94% 12%, rgba(215, 189, 123, 0.14), transparent 28%),
    linear-gradient(150deg, #05010d 0%, #11071d 48%, #06020c 100%);
}

[hidden] {
  display: none !important;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand-button,
.nav-tab,
.primary-action,
.secondary-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d2 0 16%, #d7bd7b 17% 36%, #8f5cff 37% 70%, transparent 71%);
  box-shadow: 0 0 24px rgba(215, 189, 123, 0.5);
}

.nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 0 14px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-tab.is-active {
  color: var(--ink);
  border-color: rgba(215, 189, 123, 0.58);
  background: rgba(215, 189, 123, 0.12);
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}

button:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(215, 189, 123, 0.38);
  outline-offset: 2px;
}

.view {
  display: none;
  min-height: calc(100vh - 96px);
  padding: 28px 0 0;
}

.view.is-active {
  display: block;
}

.hero-grid,
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  min-height: calc(100vh - 126px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.88;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.tagline {
  margin: 18px 0 0;
  color: #f6e5a7;
  font-size: clamp(1.22rem, 3vw, 2rem);
  font-weight: 700;
}

.lead,
.muted,
.guide-copy p,
.guide-copy li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
}

.muted {
  margin: 0 0 24px;
}

.hero-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.compact-actions {
  margin-top: 0;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(215, 189, 123, 0.28);
  border-radius: 8px;
  color: #f6e5a7;
  background: rgba(215, 189, 123, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  padding: 0 18px;
  font-weight: 700;
}

.primary-action {
  border-color: rgba(215, 189, 123, 0.56);
  color: #1a1025;
  background: linear-gradient(135deg, #ffe7a0, #cfa8ff);
}

.secondary-action {
  color: var(--ink);
}

.secondary-action.danger {
  border-color: rgba(226, 121, 159, 0.42);
  color: #ffd7e3;
}

.oracle-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(62vh, 560px);
}

.halo {
  position: absolute;
  width: min(76vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 189, 123, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(143, 92, 255, 0.2), transparent 62%);
  background-size: 44px 44px, auto;
  box-shadow: inset 0 0 80px rgba(143, 92, 255, 0.16), 0 0 80px rgba(143, 92, 255, 0.12);
}

.pendulum-preview {
  position: relative;
  width: 220px;
  height: 390px;
  transform-origin: top center;
  animation: preview-sway 4.8s ease-in-out infinite;
}

.preview-chain {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 275px;
  background: linear-gradient(#fff7d2, rgba(215, 189, 123, 0.26));
}

.preview-weight {
  position: absolute;
  left: calc(50% - 32px);
  top: 252px;
  width: 64px;
  height: 98px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 36% 18%, #fff8d8, #d7bd7b 24%, #6f44d8 62%, #201036);
  box-shadow: 0 18px 52px rgba(143, 92, 255, 0.44);
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff5ce;
  box-shadow: 0 0 16px #fff5ce;
}

.s1 {
  left: 18%;
  top: 24%;
}

.s2 {
  right: 16%;
  top: 34%;
}

.s3 {
  left: 34%;
  bottom: 18%;
}

@keyframes preview-sway {
  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

.content-band,
.result-layout {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content-band.narrow {
  width: min(780px, 100%);
  margin: 5vh auto 0;
}

.question-label {
  display: block;
  margin: 28px 0 10px;
  color: var(--violet-2);
  font-weight: 700;
}

.mode-picker {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.mode-picker legend {
  margin-bottom: 10px;
  color: var(--violet-2);
  font-weight: 800;
}

.mode-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.mode-option:has(input:checked) {
  border-color: rgba(215, 189, 123, 0.58);
  background: rgba(215, 189, 123, 0.1);
}

.mode-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--violet-2);
}

.mode-option strong,
.mode-option small {
  display: block;
}

.mode-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.question-oracle-card {
  width: min(100%, 680px);
  margin: 20px 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 189, 123, 0.34);
  border-radius: 8px;
  background: rgba(8, 3, 17, 0.68);
  box-shadow: inset 0 0 28px rgba(143, 92, 255, 0.1), 0 0 34px rgba(215, 189, 123, 0.08);
}

.result-question-card {
  margin-top: 12px;
}

.reading-question-card {
  position: relative;
  z-index: 3;
  width: clamp(300px, 48vw, 480px);
  margin: 0 auto;
  padding: 15px 22px;
  text-align: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  border-color: rgba(220, 190, 120, 0.32);
  background: rgba(10, 4, 24, 0.52);
  box-shadow: inset 0 0 20px rgba(143, 92, 255, 0.08), 0 0 28px rgba(215, 189, 123, 0.08);
  transform: translateY(-18px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.central-ripple,
.central-ripple::before,
.central-ripple::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.central-ripple {
  z-index: 0;
}

.central-ripple::before,
.central-ripple::after {
  content: "";
  opacity: 0;
}

.central-ripple::before {
  border: 1px solid rgba(215, 189, 123, 0.42);
  box-shadow: 0 0 22px rgba(215, 189, 123, 0.12);
}

.central-ripple::after {
  background: radial-gradient(circle, rgba(215, 189, 123, 0.2), rgba(143, 92, 255, 0.08) 48%, transparent 72%);
}

.question-card-label {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: var(--violet-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.question-card-text {
  position: relative;
  z-index: 1;
  max-height: 5.1em;
  overflow: auto;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}

textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.24);
}

.form-footer {
  justify-content: space-between;
}

#question-count {
  color: var(--quiet);
}

.reading-view {
  padding-top: 10px;
}

.reading-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 126px);
  padding: clamp(18px, 4vw, 34px) 0 28px;
  text-align: center;
}

.reading-layout > .eyebrow {
  margin-bottom: 10px;
}

.reading-copy {
  width: min(100%, 680px);
  margin-top: 4px;
}

.reading-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.6vw, 2.05rem);
  line-height: 1.22;
}

.round-label {
  margin: 0 0 10px;
  color: #f6e5a7;
  font-size: 0.95rem;
  font-weight: 900;
}

.deep-round-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 18px;
  margin: -2px 0 10px;
  color: rgba(247, 242, 255, 0.44);
  font-size: 0.86rem;
  letter-spacing: 0;
}

.deep-round-progress .is-complete {
  color: #f6e5a7;
  text-shadow: 0 0 12px rgba(215, 189, 123, 0.36);
}

.deep-reading-note {
  max-width: 48ch;
  margin: -2px auto 8px;
  color: rgba(247, 242, 255, 0.68);
  font-size: 0.88rem;
}

.reading-instruction {
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.65;
}

.calibration-layout {
  min-height: calc(100vh - 126px);
}

.progress-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--violet-2);
  font-weight: 800;
}

#input-progress {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1;
}

.reading-oracle {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  width: min(100%, 820px);
  min-height: 0;
  margin: clamp(8px, 2vw, 18px) auto 0;
  justify-self: center;
}

.reading-feedback {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 720px);
  margin-top: 4px;
}

.reading-feedback .status-pill {
  margin-top: 0;
  text-align: center;
  justify-content: center;
}

#pendulum-canvas {
  position: relative;
  z-index: 1;
  width: min(82vw, 430px);
  height: min(82vw, 430px);
  border-radius: 50%;
  opacity: 0.94;
  pointer-events: none;
  touch-action: none;
  transform: none;
}

.hold-zone.is-holding {
  border-color: rgba(146, 217, 188, 0.72);
  background: rgba(146, 217, 188, 0.13);
  box-shadow: inset 0 0 34px rgba(146, 217, 188, 0.18), 0 0 56px rgba(146, 217, 188, 0.24);
}

.reading-question-card.is-holding {
  background: rgba(10, 28, 30, 0.5);
}

.reading-question-card.is-holding .central-ripple::after {
  animation: central-ripple-breathe 2.6s ease-in-out infinite;
}

.reading-question-card.ripple-pulse .central-ripple::before {
  animation: central-ripple-pulse 820ms ease-out both;
}

.reading-question-card.ripple-strong .central-ripple::before {
  animation: central-ripple-strong 940ms ease-out both;
}

@keyframes central-ripple-pulse {
  0% {
    opacity: 0.38;
    transform: translate(-50%, -50%) scale(0.4);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(12);
  }
}

@keyframes central-ripple-strong {
  0% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(0.55);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(17);
  }
}

@keyframes central-ripple-breathe {
  0%,
  100% {
    opacity: 0.08;
    transform: translate(-50%, -50%) scale(2.8);
  }

  50% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(7.2);
  }
}

.result-kind {
  margin: 4px 0 14px;
  color: #f7e59e;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 0.95;
  transition: opacity 600ms ease, transform 600ms ease;
}

.result-kind.is-pending {
  opacity: 0;
  transform: translateY(8px);
}

.result-oracle {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  width: min(100%, 620px);
  min-height: 0;
  margin: 4px 0 10px;
}

#result-pendulum-canvas {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: min(calc(100vw - 56px), 460px);
  max-height: 460px;
  border-radius: 50%;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

.result-oracle .result-question-card {
  position: relative;
  z-index: 3;
  width: min(88%, 420px);
  margin: -22px 0 18px;
  background: rgba(10, 4, 24, 0.54);
  backdrop-filter: blur(10px);
}

.result-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 14px;
}

.result-extra .status-pill {
  margin-top: 0;
}

.round-results {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 520px;
  margin-top: 2px;
  padding-top: 2px;
}

.round-results p {
  display: grid;
  grid-template-columns: 72px minmax(52px, 1fr) minmax(70px, auto);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 700;
}

.round-results .round-results-title {
  display: block;
  padding: 0;
  border: 0;
  color: rgba(247, 242, 255, 0.68);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.round-results strong {
  color: #f7e59e;
  letter-spacing: 0;
}

.debug-details {
  max-width: 640px;
  margin-top: 22px;
  color: var(--quiet);
  font-size: 0.78rem;
}

.debug-details summary {
  width: max-content;
  cursor: pointer;
  color: rgba(201, 188, 218, 0.72);
}

.debug-details pre {
  max-height: 220px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(247, 242, 255, 0.74);
  background: rgba(0, 0, 0, 0.22);
  white-space: pre-wrap;
}

.metrics-panel {
  align-self: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.metrics-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.metrics-panel div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 84px;
  gap: 12px;
  align-items: center;
}

.metrics-panel dt {
  color: var(--muted);
}

.metrics-panel dd {
  margin: 0;
  color: var(--violet-2);
  font-weight: 800;
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-item {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.history-main {
  min-width: 0;
}

.history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.history-mode {
  margin: 0;
  color: #f6e5a7;
  font-size: 0.96rem;
  font-weight: 900;
}

.history-mode-subline,
.history-date {
  margin: 3px 0 0;
  color: var(--quiet);
  font-size: 0.84rem;
}

.history-date {
  white-space: nowrap;
}

.history-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}

.history-fields div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.history-fields dt {
  color: var(--quiet);
  font-size: 0.84rem;
  font-weight: 800;
}

.history-fields dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.history-result {
  color: var(--violet-2);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.history-question {
  color: var(--ink);
  font-weight: 700;
}

.history-rounds {
  margin-top: 16px;
  color: var(--quiet);
  font-size: 0.86rem;
}

.history-rounds summary {
  width: max-content;
  cursor: pointer;
  color: rgba(247, 242, 255, 0.72);
  font-weight: 800;
}

.history-round-list {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 10px;
}

.history-round-list p {
  display: grid;
  grid-template-columns: 72px minmax(52px, 1fr) minmax(70px, auto);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.history-round-list .history-round-title {
  display: block;
  padding: 0;
  border: 0;
  color: rgba(247, 242, 255, 0.68);
  background: transparent;
  font-weight: 800;
}

.history-round-list strong {
  color: #f6e5a7;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
}

.history-retry {
  min-width: min(100%, 220px);
}

.icon-action {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.18);
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.guide-section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-section:first-of-type {
  border-top: 0;
}

.guide-section h3 {
  margin-bottom: 12px;
  color: #f6e5a7;
}

.guide-section p {
  margin: 0 0 10px;
}

.guide-copy ol,
.practice-questions {
  margin: 12px 0 0;
  padding-left: 22px;
}

.guide-terms {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.guide-terms div {
  display: grid;
  grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.guide-terms dt {
  color: #f6e5a7;
  font-weight: 900;
}

.guide-terms dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.practice-questions li {
  margin-bottom: 8px;
}

@media (max-width: 840px) {
  .app-shell {
    width: min(100% - 24px, 720px);
    padding-top: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-button {
    min-height: 38px;
  }

  .nav-tabs {
    width: 100%;
  }

  .hero-grid,
  .result-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-grid {
    padding-top: 28px;
  }

  .oracle-stage {
    min-height: 340px;
  }

  .pendulum-preview {
    width: 170px;
    height: 300px;
  }

  .preview-chain {
    height: 218px;
  }

  .preview-weight {
    top: 196px;
    left: calc(50% - 26px);
    width: 52px;
    height: 82px;
  }

  .content-band,
  .result-layout {
    padding: 22px;
  }

  .section-heading,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .reading-oracle {
    width: 100%;
    min-height: 0;
  }

  .reading-layout {
    min-height: auto;
    padding-top: 12px;
  }

  .reading-question-card {
    width: min(calc(100% - 46px), 380px);
    max-height: 210px;
    padding: 16px 18px;
    transform: translateY(-14px);
  }

  #pendulum-canvas {
    width: min(86vw, 360px);
    height: min(86vw, 360px);
  }

  .result-oracle {
    min-height: 0;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-card-head,
  .history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .history-date {
    white-space: normal;
  }

  .history-fields div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .history-retry {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
