:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #181c1f;
  --panel-strong: #202529;
  --text: #f6f1e8;
  --muted: #bbb4a8;
  --soft: #837c72;
  --line: rgba(246, 241, 232, 0.15);
  --gold: #d9a441;
  --green: #6dbf87;
  --blue: #6aa8d8;
  --red: #d86a5e;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

body {
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.12), transparent 28rem),
    linear-gradient(145deg, #101214 0%, #171b1e 52%, #0f1011 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.topbar {
  position: relative;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
}

.topbar > * {
  min-width: 0;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.93rem;
  min-width: 0;
}

.identity > span:not(.identity-mark) {
  display: none;
}

.identity-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.top-actions,
.slide-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.icon-button.subtle {
  width: 38px;
  height: 38px;
  color: var(--muted);
  font-size: 1.05rem;
}

.header-action {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  padding: 0 8px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.header-action.icon-only {
  width: 36px;
  padding: 0;
}

.header-action img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.header-action:hover,
.header-action:focus-visible {
  border-color: rgba(217, 164, 65, 0.62);
  color: var(--text);
  outline: 0;
}

.header-action:hover img,
.header-action:focus-visible img {
  opacity: 1;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.icon-button:hover:not(:disabled),
.icon-button:focus-visible {
  border-color: rgba(217, 164, 65, 0.62);
  outline: 0;
}

.screen {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.intro-screen {
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.prompt-area {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 8px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  width: 100%;
  min-height: clamp(5.8rem, 20dvh, 9.5rem);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 100%;
  font-size: clamp(2.15rem, 7.8vw, 4.7rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
  white-space: pre-line;
}

.cursor {
  display: inline-block;
  width: 0.12em;
  height: 0.72em;
  margin-left: 0.05em;
  background: var(--gold);
  transform: translateY(0.08em);
  animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.choice-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: choices-in 360ms ease forwards;
  animation-delay: 1.15s;
}

@keyframes choices-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-card {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  padding: 14px 15px;
  text-align: left;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(255, 255, 255, 0.075);
  outline: 0;
}

.choice-kicker {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 4.5vw, 1.76rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.case-screen {
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.case-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 28, 31, 0.78);
  box-shadow: var(--shadow);
}

.app-shell.is-entering-case .case-card {
  animation: case-enter 360ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.app-shell.is-entering-case .deck-controls {
  animation: controls-enter 360ms ease 80ms both;
}

@keyframes case-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes controls-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.case-card.has-shared-stage {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: clamp(18px, 4vw, 28px);
}

.case-card.has-story-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 4vw, 28px);
}

.case-card.has-shared-stage .case-viewport {
  position: relative;
  display: block;
  overflow: hidden;
  transform: none !important;
}

.case-card.has-shared-stage .case-slide {
  position: absolute;
  inset: 0;
  min-width: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  justify-content: start;
  padding: 0;
}

.case-card.has-shared-stage .case-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.case-card.has-shared-stage .case-slide .stage-visual {
  display: none;
}

.case-card.has-shared-stage .case-slide > .eyebrow {
  display: none;
}

.case-context {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-context:empty {
  display: none;
}

.case-card.has-shared-stage .case-slide h2 {
  font-size: clamp(1.48rem, 5.8vw, 2.75rem);
}

.case-card.has-story-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.case-card.has-creative-stage .case-slide h2 {
  font-size: clamp(1.32rem, 5.05vw, 2.35rem);
  line-height: 1.02;
}

.case-card.has-shared-stage .case-summary {
  margin-top: 10px;
  font-size: clamp(0.92rem, 2.4vw, 1.04rem);
  line-height: 1.32;
}

.case-card.has-creative-stage .case-summary {
  font-size: clamp(0.86rem, 2.25vw, 0.98rem);
  line-height: 1.28;
}

.single-story-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.story-media {
  display: block;
  margin-bottom: 18px;
}

.story-still {
  position: relative;
  height: clamp(230px, 38dvh, 330px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.18), transparent 42%),
    radial-gradient(circle at 68% 45%, rgba(109, 191, 135, 0.16), transparent 8rem),
    #181c1f;
}

.story-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-still img[src] ~ .story-placeholder {
  display: none;
}

.story-placeholder {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.play-button::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #17130b;
}

.runtime-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(17, 19, 21, 0.74);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
}

.single-story-card .case-context {
  margin-bottom: 9px;
}

.single-story-card .case-summary {
  margin-top: 14px;
}

.story-action {
  width: 100%;
  margin-top: auto;
}

.case-viewport {
  height: 100%;
  min-height: 0;
  display: flex;
  transform: translateX(calc(var(--slide-index, 0) * -100%));
  transition: transform 240ms ease;
}

.case-slide {
  min-width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 4vw, 28px);
  overflow: hidden;
}

.case-slide h2,
.nonprofit-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 7.2vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.case-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 2.6vw, 1.12rem);
  line-height: 1.38;
}

.stage-visual {
  position: relative;
  height: clamp(220px, 42dvh, 320px);
  flex: 0 0 auto;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.shared-workflow-stage {
  height: clamp(290px, 45dvh, 380px);
  margin-bottom: 12px;
}

.shared-creative-stage {
  height: clamp(250px, 39dvh, 330px);
  margin-bottom: 12px;
}

.step-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.step-tabs::after {
  content: "";
  position: absolute;
  left: calc(var(--active-step, 0) * 33.333%);
  bottom: -1px;
  width: 33.333%;
  height: 2px;
  background: var(--gold);
  transition: left 220ms ease;
}

.step-tab {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.step-tab.is-active {
  color: var(--gold);
}

.step-tab:focus-visible {
  outline: 1px solid rgba(217, 164, 65, 0.55);
  outline-offset: 3px;
}

.workflow-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 164, 65, 0.16), transparent 7rem),
    radial-gradient(circle at 84% 76%, rgba(106, 168, 216, 0.14), transparent 7rem),
    #181c1f;
}

.app-shell.is-entering-case .workflow-svg {
  animation: workflow-stage-enter 520ms ease both;
}

@keyframes workflow-stage-enter {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

.workflow-svg image {
  pointer-events: none;
}

.workflow-svg text {
  fill: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
  letter-spacing: 0;
}

.workflow-svg .side-label {
  text-anchor: end;
}

.workflow-svg .asset-label {
  fill: var(--text);
  text-anchor: middle;
}

.creative-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(106, 168, 216, 0.16), transparent 7rem),
    radial-gradient(circle at 80% 72%, rgba(217, 164, 65, 0.14), transparent 7rem),
    #181c1f;
}

.creative-manual-list,
.creative-pipeline,
.creative-output {
  position: absolute;
  inset: 14px;
  transition:
    opacity 360ms ease,
    transform 620ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.creative-pipeline,
.creative-output {
  opacity: 0;
  pointer-events: none;
}

.shared-creative-stage[data-step="1"] .creative-manual-list,
.shared-creative-stage[data-step="2"] .creative-manual-list,
.shared-creative-stage[data-step="0"] .creative-pipeline,
.shared-creative-stage[data-step="2"] .creative-pipeline,
.shared-creative-stage[data-step="0"] .creative-output,
.shared-creative-stage[data-step="1"] .creative-output {
  opacity: 0;
  pointer-events: none;
}

.shared-creative-stage[data-step="1"] .creative-pipeline,
.shared-creative-stage[data-step="2"] .creative-output {
  opacity: 1;
  pointer-events: auto;
}

.shared-creative-stage[data-step="1"] .creative-manual-list,
.shared-creative-stage[data-step="2"] .creative-pipeline {
  transform: translateX(-16px);
}

.shared-creative-stage[data-step="0"] .creative-pipeline,
.shared-creative-stage[data-step="1"] .creative-output {
  transform: translateX(16px);
}

.creative-manual-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.manual-row {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.manual-row > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.manual-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 45%, rgba(217, 164, 65, 0.38) 46%, rgba(217, 164, 65, 0.38) 48%, transparent 49%),
    linear-gradient(105deg, transparent 50%, rgba(106, 168, 216, 0.24) 51%, rgba(106, 168, 216, 0.24) 53%, transparent 54%);
}

.map-pin {
  position: absolute;
  left: 26px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.logo-thumb {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 10px;
}

.logo-thumb span,
.output-logo {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(217, 164, 65, 0.18);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
}

.lines-thumb span,
.leader {
  position: absolute;
  height: 1px;
  background: rgba(217, 164, 65, 0.58);
  transform-origin: left center;
}

.lines-thumb span:nth-child(1) {
  width: 50px;
  left: 8px;
  top: 16px;
  transform: rotate(24deg);
}

.lines-thumb span:nth-child(2) {
  width: 44px;
  left: 12px;
  top: 34px;
  transform: rotate(-18deg);
}

.lines-thumb span:nth-child(3) {
  width: 52px;
  left: 6px;
  top: 48px;
  transform: rotate(8deg);
}

.creative-pipeline {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 7px;
}

.pipeline-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0;
  text-align: left;
}

.pipeline-card strong {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  color: var(--gold);
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 6px;
  background: rgba(17, 19, 21, 0.78);
  padding: 4px 7px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.pipeline-card > span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(17, 19, 21, 0.72);
  padding: 5px 7px;
  font-size: 0.74rem;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.pipeline-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.mini-map,
.code-lines,
.output-map {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(17, 19, 21, 0.72);
}

.mini-map,
.code-lines {
  height: 100%;
}

.mini-map img,
.code-lines img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}

.mini-map img ~ *,
.code-lines img ~ * {
  display: none;
}

.map-road,
.output-road {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(106, 168, 216, 0.45);
  transform-origin: left center;
}

.road-one {
  width: 140px;
  left: 10px;
  top: 36%;
  transform: rotate(-18deg);
}

.road-two {
  width: 130px;
  left: 16px;
  top: 62%;
  transform: rotate(20deg);
}

.biz-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.dot-one {
  left: 25%;
  top: 32%;
}

.dot-two {
  left: 58%;
  top: 48%;
}

.dot-three {
  left: 72%;
  top: 66%;
}

.code-lines {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 0 14px;
}

.code-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.code-lines span:nth-child(2) {
  width: 74%;
}

.code-lines span:nth-child(3) {
  width: 58%;
}

.creative-output {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.time-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-compare > div {
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 7px;
  text-align: center;
}

.time-label {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-compare strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1;
}

.time-compare > div:last-child {
  border-color: rgba(109, 191, 135, 0.32);
  background: rgba(109, 191, 135, 0.08);
}

.time-compare > div:last-child strong {
  color: var(--green);
}

.output-map {
  border: 1px solid rgba(109, 191, 135, 0.22);
}

.output-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.compare-map {
  min-height: 0;
}

.compare-map::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: rgba(17, 19, 21, 0.1);
  z-index: 2;
}

.compare-map::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background: rgba(109, 191, 135, 0.08);
  z-index: 2;
}

.output-map img ~ .output-road,
.output-map img ~ .output-logo,
.output-map img ~ .leader {
  display: none;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(246, 241, 232, 0.7);
  box-shadow:
    0 0 0 1px rgba(17, 19, 21, 0.42),
    0 0 18px rgba(246, 241, 232, 0.24);
  transform: translateX(-50%);
  z-index: 4;
}

.compare-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(246, 241, 232, 0.72);
  border-radius: 999px;
  background: rgba(17, 19, 21, 0.76);
  transform: translate(-50%, -50%);
}

.compare-side {
  position: absolute;
  top: 9px;
  z-index: 3;
  color: var(--soft);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.62;
  text-transform: uppercase;
}

.before-side {
  left: 10px;
}

.after-side {
  right: 10px;
  color: var(--soft);
}

.output-logo {
  position: absolute;
  width: 26px;
  height: 22px;
  z-index: 4;
}

.logo-a {
  left: 18%;
  top: 20%;
}

.logo-b {
  right: 20%;
  top: 36%;
}

.logo-c {
  left: 46%;
  bottom: 18%;
}

.leader-a {
  width: 88px;
  left: 26%;
  top: 30%;
  transform: rotate(18deg);
  z-index: 3;
}

.leader-b {
  width: 72px;
  right: 26%;
  top: 45%;
  transform: rotate(-10deg);
  z-index: 3;
}

.leader-c {
  width: 86px;
  left: 34%;
  bottom: 28%;
  transform: rotate(-18deg);
  z-index: 3;
}

.flow-lines {
  fill: none;
  stroke: rgba(217, 164, 65, 0.52);
  stroke-width: 1.55;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 420ms ease;
}

.flow-lines path {
  vector-effect: non-scaling-stroke;
}

.flow-chaos {
  opacity: 1;
  stroke: rgba(217, 164, 65, 0.34);
}

.near-miss {
  stroke-dasharray: 5 7;
  opacity: 0.68;
}

.wf-group,
.wf-form {
  transition:
    opacity 420ms ease,
    transform 720ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.wf-node circle {
  fill: rgba(255, 255, 255, 0.075);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  transition:
    fill 420ms ease,
    stroke 420ms ease;
}

.asset-node circle {
  fill: rgba(217, 164, 65, 0.1);
}

.channel-node circle {
  fill: rgba(255, 255, 255, 0.07);
}

.wf-form {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(245px, 160px) scale(0.92);
}

.wf-form rect {
  fill: rgba(17, 19, 21, 0.9);
  stroke: rgba(217, 164, 65, 0.55);
  stroke-width: 1;
}

.wf-form text {
  fill: var(--gold);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wf-outputs {
  opacity: 0;
  transform: translateX(-18px);
}

.output-node circle {
  fill: rgba(109, 191, 135, 0.11);
  stroke: rgba(109, 191, 135, 0.34);
}

.shared-workflow-stage[data-step="1"] .flow-chaos,
.shared-workflow-stage[data-step="1"] .wf-channels,
.shared-workflow-stage[data-step="2"] .flow-chaos,
.shared-workflow-stage[data-step="2"] .flow-converge,
.shared-workflow-stage[data-step="2"] .wf-channels,
.shared-workflow-stage[data-step="2"] .wf-assets {
  opacity: 0;
}

.shared-workflow-stage[data-step="1"] .flow-converge,
.shared-workflow-stage[data-step="2"] .flow-out,
.shared-workflow-stage[data-step="2"] .wf-outputs {
  opacity: 1;
}

.shared-workflow-stage[data-step="1"] .wf-form {
  opacity: 1;
  transform: translate(245px, 160px) scale(1);
}

.shared-workflow-stage[data-step="1"] .asset-node circle {
  stroke: rgba(217, 164, 65, 0.42);
}

.shared-workflow-stage[data-step="2"] .wf-form {
  opacity: 1;
  transform: translate(92px, 160px) scale(1);
}

.shared-workflow-stage[data-step="2"] .wf-outputs {
  transform: translateX(0);
}

.shared-workflow-stage[data-step="2"] .flow-out {
  stroke: rgba(109, 191, 135, 0.52);
}

.shared-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(217, 164, 65, 0.18), transparent 8rem),
    radial-gradient(circle at 78% 76%, rgba(106, 168, 216, 0.14), transparent 8rem),
    #181c1f;
}

.stage-chip,
.stage-form,
.stage-funnel,
.stage-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transition:
    opacity 420ms ease,
    transform 720ms cubic-bezier(0.2, 0.72, 0.18, 1),
    border-color 420ms ease,
    background-color 420ms ease;
}

.stage-chip {
  width: var(--w, 86px);
  height: var(--h, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  opacity: var(--o, 1);
  transform:
    translate(-50%, -50%)
    translate(var(--x, 0), var(--y, 0))
    scale(var(--s, 1));
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.stage-chip img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.stage-source {
  color: var(--gold);
}

.stage-asset {
  color: var(--muted);
}

.stage-output {
  --o: 0;
  --s: 0.82;
}

.stage-form {
  width: 148px;
  height: 158px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 8px;
  background: rgba(17, 19, 21, 0.86);
  padding: 16px;
  opacity: var(--form-o, 0);
  transform:
    translate(-50%, -50%)
    translate(var(--form-x, 108px), var(--form-y, 0))
    scale(var(--form-s, 0.92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.stage-form span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.stage-form span:nth-child(2) {
  width: 78%;
}

.stage-form span:nth-child(3) {
  width: 56%;
}

.stage-form strong {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-funnel {
  width: 112px;
  height: 154px;
  clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%);
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.12), rgba(217, 164, 65, 0.5));
  opacity: var(--funnel-o, 0);
  transform:
    translate(-50%, -50%)
    translate(var(--funnel-x, 2px), var(--funnel-y, 0))
    scaleX(var(--funnel-s, 0.48));
}

.stage-line {
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.58), transparent);
  opacity: var(--line-o, 0.45);
  transform:
    translate(-50%, -50%)
    translate(var(--line-x, 0), var(--line-y, 0))
    rotate(var(--r, 0deg))
    scaleX(var(--line-s, 1));
}

.stage-line-two {
  --line-x: 30px;
  --line-y: 28px;
  --r: -20deg;
}

.shared-email {
  --x: -122px;
  --y: -80px;
}

.shared-text {
  --x: 118px;
  --y: 10px;
}

.shared-call {
  --x: -102px;
  --y: 92px;
}

.shared-info {
  --x: 32px;
  --y: -42px;
  --w: 78px;
}

.shared-photos {
  --x: 2px;
  --y: 58px;
  --w: 82px;
}

.shared-plans {
  --x: 112px;
  --y: -84px;
  --w: 94px;
}

.shared-logo {
  --x: 92px;
  --y: 94px;
  --w: 78px;
}

.shared-workflow-stage[data-step="1"] {
  --form-o: 1;
  --form-x: 86px;
  --form-y: 0;
  --form-s: 1;
  --funnel-o: 1;
  --funnel-s: 1;
  --line-o: 0;
}

.shared-workflow-stage[data-step="1"] .shared-email,
.shared-workflow-stage[data-step="1"] .shared-text,
.shared-workflow-stage[data-step="1"] .shared-call {
  --x: -112px;
  --w: 102px;
  border-color: rgba(217, 164, 65, 0.46);
  background: rgba(217, 164, 65, 0.12);
}

.shared-workflow-stage[data-step="1"] .shared-email {
  --y: -52px;
}

.shared-workflow-stage[data-step="1"] .shared-text {
  --y: 0;
}

.shared-workflow-stage[data-step="1"] .shared-call {
  --y: 52px;
}

.shared-workflow-stage[data-step="1"] .stage-asset {
  --x: 40px;
  --y: 0;
  --o: 0;
  --s: 0.72;
}

.shared-workflow-stage[data-step="2"] {
  --form-o: 1;
  --form-x: 0px;
  --form-y: 0px;
  --form-s: 0.82;
  --funnel-o: 0;
  --line-o: 0;
}

.shared-workflow-stage[data-step="2"] .stage-source,
.shared-workflow-stage[data-step="2"] .stage-asset {
  --x: 0px;
  --y: 0px;
  --o: 0;
  --s: 0.55;
}

.shared-workflow-stage[data-step="2"] .stage-output {
  --o: 1;
  --s: 1;
}

.shared-workflow-stage[data-step="2"] .shared-folder {
  --x: -108px;
  --y: -86px;
}

.shared-workflow-stage[data-step="2"] .shared-files {
  --x: 108px;
  --y: -86px;
  --w: 98px;
}

.shared-workflow-stage[data-step="2"] .shared-sign {
  --x: -110px;
  --y: 84px;
  --w: 92px;
}

.shared-workflow-stage[data-step="2"] .shared-record {
  --x: 110px;
  --y: 84px;
}

.shared-workflow-stage[data-step="2"] .shared-task {
  --x: 0px;
  --y: 98px;
  --w: 90px;
}

.scatter-field,
.funnel-field,
.workflow-field,
.placeholder-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(217, 164, 65, 0.18), transparent 8rem),
    radial-gradient(circle at 78% 76%, rgba(106, 168, 216, 0.14), transparent 8rem),
    #181c1f;
}

.source,
.asset,
.incoming-stack > span,
.outcome-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.source img,
.incoming-stack img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.source span,
.incoming-stack span span {
  min-width: 0;
}

.source {
  width: 86px;
  height: 46px;
  color: var(--gold);
}

.asset {
  width: 78px;
  height: 42px;
  color: var(--muted);
}

.case-slide.is-active .source {
  animation: drift-in 620ms ease both;
}

.case-slide.is-active .asset {
  animation:
    drift-in 520ms ease both,
    float-piece 3.2s ease-in-out 620ms infinite;
}

.source-email {
  top: 14%;
  left: 8%;
}

.source-text {
  top: 42%;
  right: 8%;
  animation-delay: 80ms;
}

.source-talk {
  bottom: 12%;
  left: 14%;
  animation-delay: 140ms;
}

.asset-info {
  top: 25%;
  left: 45%;
}

.asset-photos {
  top: 58%;
  left: 39%;
  animation-delay: 180ms;
}

.asset-plans {
  top: 12%;
  right: 12%;
  animation-delay: 320ms;
}

.asset-logo {
  bottom: 14%;
  right: 18%;
  animation-delay: 440ms;
}

.broken-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.55), transparent);
  opacity: 0.5;
  transform-origin: left;
}

.line-one {
  width: 150px;
  top: 36%;
  left: 18%;
  transform: rotate(18deg);
}

.line-two {
  width: 130px;
  top: 51%;
  right: 18%;
  transform: rotate(-22deg);
}

.line-three {
  width: 120px;
  bottom: 34%;
  left: 24%;
  transform: rotate(-12deg);
}

.incoming-stack {
  position: absolute;
  left: 22px;
  top: 26px;
  bottom: 26px;
  width: 104px;
}

.incoming-stack > span {
  position: relative;
  width: 102px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translate(var(--start-x), var(--start-y));
}

.case-slide.is-active .incoming-stack > span {
  animation: gather-to-form 1.05s cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.incoming-stack > span:nth-child(1) {
  --start-x: 34px;
  --start-y: -18px;
}

.incoming-stack > span:nth-child(2) {
  --start-x: 118px;
  --start-y: 58px;
  animation-delay: 120ms;
}

.incoming-stack > span:nth-child(3) {
  --start-x: 174px;
  --start-y: -76px;
  animation-delay: 240ms;
}

.funnel-shape {
  position: absolute;
  inset: 72px 44% 72px 34%;
  clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%);
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.16), rgba(217, 164, 65, 0.48));
  opacity: 0;
}

.case-slide.is-active .funnel-shape {
  animation: funnel-in 760ms ease 260ms both;
}

.form-card {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 152px;
  height: 168px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 8px;
  background: rgba(17, 19, 21, 0.86);
  padding: 16px;
  transform: translateY(-50%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.funnel-field .form-card {
  opacity: 0;
  transform: translate(18px, -50%) scale(0.96);
}

.case-slide.is-active .funnel-field .form-card {
  animation: form-catches 740ms ease 420ms both;
}

.form-card span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.form-card span:nth-child(2) {
  width: 78%;
}

.form-card span:nth-child(3) {
  width: 56%;
}

.form-card strong {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-field::before,
.workflow-field::after {
  content: "";
  position: absolute;
  inset: 50% 44px auto 44px;
  height: 1px;
  background: rgba(217, 164, 65, 0.45);
  opacity: 0;
}

.workflow-field::after {
  inset: 26% auto 26% 50%;
  width: 1px;
  height: auto;
}

.case-slide.is-active .workflow-field::before,
.case-slide.is-active .workflow-field::after {
  animation: draw-line 720ms ease 280ms both;
}

.form-card.compact {
  left: 50%;
  right: auto;
  width: 118px;
  height: 132px;
  transform: translate(-50%, -50%);
}

.case-slide.is-active .form-card.compact {
  animation:
    submit-in 420ms ease both,
    pulse-submit 1.8s ease-in-out 520ms infinite;
}

.outcome-node {
  width: 88px;
  height: 42px;
  opacity: 0;
}

.node-folder {
  top: 11%;
  left: 10%;
}

.case-slide.is-active .node-folder {
  animation: emit-folder 620ms cubic-bezier(0.2, 0.72, 0.18, 1) 240ms both;
}

.node-files {
  top: 11%;
  right: 10%;
}

.case-slide.is-active .node-files {
  animation: emit-files 620ms cubic-bezier(0.2, 0.72, 0.18, 1) 340ms both;
}

.node-sign {
  bottom: 11%;
  left: 9%;
}

.case-slide.is-active .node-sign {
  animation: emit-sign 620ms cubic-bezier(0.2, 0.72, 0.18, 1) 440ms both;
}

.node-record {
  bottom: 11%;
  right: 9%;
}

.case-slide.is-active .node-record {
  animation: emit-record 620ms cubic-bezier(0.2, 0.72, 0.18, 1) 540ms both;
}

.node-task {
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
}

.case-slide.is-active .node-task {
  animation: emit-task 620ms cubic-bezier(0.2, 0.72, 0.18, 1) 640ms both;
}

.placeholder-field {
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  color: var(--muted);
}

.placeholder-window {
  width: 180px;
  height: 120px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.placeholder-window span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

@keyframes drift-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes float-piece {
  50% {
    transform: translateY(-7px);
  }
}

@keyframes gather-to-form {
  0% {
    opacity: 0;
    transform: translate(var(--start-x), var(--start-y));
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateX(42px);
    border-color: rgba(217, 164, 65, 0.48);
  }
}

@keyframes funnel-in {
  from {
    opacity: 0;
    transform: scaleX(0.4);
  }

  to {
    opacity: 1;
  }
}

@keyframes form-catches {
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes draw-line {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
  }
}

@keyframes submit-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

@keyframes pulse-submit {
  50% {
    border-color: rgba(217, 164, 65, 0.85);
  }
}

@keyframes emit-folder {
  from {
    opacity: 0;
    transform: translate(118px, 96px) scale(0.84);
  }

  to {
    opacity: 1;
  }
}

@keyframes emit-files {
  from {
    opacity: 0;
    transform: translate(-118px, 96px) scale(0.84);
  }

  to {
    opacity: 1;
  }
}

@keyframes emit-sign {
  from {
    opacity: 0;
    transform: translate(118px, -92px) scale(0.84);
  }

  to {
    opacity: 1;
  }
}

@keyframes emit-record {
  from {
    opacity: 0;
    transform: translate(-118px, -92px) scale(0.84);
  }

  to {
    opacity: 1;
  }
}

@keyframes emit-task {
  from {
    opacity: 0;
    transform: translate(-50%, -74px) scale(0.84);
  }

  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

.case-details {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.case-details div {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.case-details dt {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-details dd {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 2.6vw, 1.08rem);
  line-height: 1.4;
}

.proof-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.proof-pill {
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.proof-value {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
}

.proof-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.built-note {
  margin: 10px 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-action {
  background: var(--gold);
  color: #17130b;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
}

.deck-controls {
  height: 46px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.28);
}

.dot.active {
  width: 20px;
  background: var(--gold);
}

.nonprofit-dialog,
.contact-dialog {
  width: min(92vw, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0;
}

.nonprofit-dialog::backdrop,
.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.nonprofit-dialog form,
.contact-dialog form {
  position: relative;
  padding: 28px;
}

.nonprofit-dialog p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
}

.contact-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-row strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.contact-row:hover,
.contact-row:focus-visible {
  border-color: rgba(217, 164, 65, 0.62);
  outline: 0;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.full-width {
  width: 100%;
}

@media (min-width: 900px) {
  .app-shell {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .choice-card {
    min-height: 82px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-height: 650px) {
  .app-shell {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar {
    height: 38px;
    min-height: 38px;
  }

  .identity-mark,
  .icon-button.subtle,
  .header-action {
    width: 34px;
    height: 34px;
  }

  .community-action span {
    display: none;
  }

  h1 {
    min-height: 4.8rem;
    font-size: clamp(2.1rem, 8.2vw, 3.7rem);
  }

  .choice-card {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .choice-title {
    font-size: clamp(1.08rem, 4vw, 1.4rem);
  }

  .case-slide {
    padding: 13px;
  }

  .case-slide h2,
  .nonprofit-dialog h2 {
    font-size: clamp(1.55rem, 6.2vw, 2.75rem);
  }

  .case-summary {
    margin-top: 10px;
  }

  .case-media {
    margin-top: 12px;
  }

  .case-details {
    gap: 8px;
  }

  .case-details div {
    padding: 11px;
  }

  .case-details dd {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .proof-row {
    gap: 8px;
    margin: 12px 0;
  }

  .proof-pill {
    min-height: 54px;
    padding: 10px;
  }

  .primary-action,
  .secondary-action {
    min-height: 40px;
  }

  .deck-controls {
    height: 40px;
    min-height: 40px;
  }

  .deck-controls .icon-button {
    width: 40px;
    height: 40px;
  }
}

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