:root {
  --paper: #f5efe4;
  --paper-soft: #fbf7ef;
  --paper-deep: #e8dac6;
  --ink: #2e251d;
  --ink-muted: #71655a;
  --line: #dac9b3;
  --line-strong: #c7af93;
  --accent: #8a5d3e;
  --accent-soft: #efe0ce;
  --success: #4c6c4e;
  --danger: #9b4334;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-soft: 0 24px 56px -42px rgba(86, 62, 39, 0.58);
  --font-body: "Cormorant Garamond", "Baskerville", "Times New Roman", serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-script: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  --motion-load-duration: 1000ms;
  --motion-load-ease: cubic-bezier(0.16, 0.84, 0.24, 1);
  --motion-interact-duration: 440ms;
  --motion-interact-ease: cubic-bezier(0.2, 0.86, 0.24, 1);
  --motion-phrase-duration: 760ms;
  --motion-cinema-exit-duration: 560ms;
  --motion-cinema-in-duration: 1100ms;
  --motion-cinema-prelude-duration: 860ms;
  --motion-cinema-ease: cubic-bezier(0.16, 0.84, 0.24, 1);
  --motion-ambient-duration: 18s;
  --motion-send-duration: 760ms;
  --motion-send-ease: cubic-bezier(0.2, 0.85, 0.22, 1);
  --motion-locked-duration: 2600ms;
  --motion-locked-ease: cubic-bezier(0.4, 0, 0.24, 1);
  --motion-reveal-duration: 920ms;
  --motion-reveal-ease: cubic-bezier(0.18, 0.9, 0.22, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-load-duration: 1ms;
    --motion-interact-duration: 1ms;
    --motion-phrase-duration: 1ms;
    --motion-cinema-exit-duration: 1ms;
    --motion-cinema-in-duration: 1ms;
    --motion-cinema-prelude-duration: 1ms;
    --motion-ambient-duration: 1ms;
    --motion-send-duration: 1ms;
    --motion-locked-duration: 1ms;
    --motion-reveal-duration: 1ms;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.92), transparent 48%),
    radial-gradient(circle at 78% 86%, rgba(234, 215, 189, 0.48), transparent 40%),
    linear-gradient(140deg, var(--paper-soft), var(--paper));
  color: var(--ink);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(138, 93, 62, 0.045) 0.8px, transparent 0.8px);
  background-size: 5px 5px;
  opacity: 0.5;
  z-index: -1;
}

#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#app::before,
#app::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

#app::before {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  left: clamp(-7rem, -3vw, -2rem);
  top: clamp(-9rem, -6vw, -3rem);
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.72), rgba(219, 190, 157, 0.18) 60%, transparent 74%);
  animation: aura-drift var(--motion-ambient-duration) ease-in-out infinite;
}

#app::after {
  width: min(38vw, 24rem);
  height: min(38vw, 24rem);
  right: clamp(-8rem, -4vw, -2rem);
  bottom: clamp(-10rem, -5vw, -2.5rem);
  background: radial-gradient(circle at 48% 44%, rgba(255, 242, 225, 0.7), rgba(209, 177, 141, 0.16) 58%, transparent 72%);
  animation: aura-drift-reverse calc(var(--motion-ambient-duration) * 1.1) ease-in-out infinite;
}

#app[data-motion="reduced"] * {
  transition-duration: 1ms !important;
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
}

.journal-shell {
  width: min(820px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.1rem, 2.8vw, 2rem);
  display: grid;
  gap: 1rem;
}

.brand {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  font-weight: 500;
  max-width: 14ch;
  text-wrap: balance;
}

.headline--dynamic {
  position: relative;
  min-height: 2.2em;
  display: block;
}

.headline__text {
  display: block;
  line-height: 1.08;
}

.headline--is-swapping .headline__text {
  position: absolute;
  inset: 0;
  width: 100%;
  will-change: transform, opacity, filter;
}

.headline__text--leaving {
  animation: headline-leave var(--motion-phrase-duration) var(--motion-interact-ease) both;
}

.headline__text--next {
  opacity: 0;
  filter: blur(2px);
}

.headline__text--next.headline__text--entering {
  animation: headline-enter var(--motion-phrase-duration) var(--motion-interact-ease) both;
}

#app .journal-shell > * {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
}

#app.app-awake .journal-shell > * {
  animation: load-rise var(--motion-load-duration) var(--motion-load-ease) both;
}

#app.app-awake .journal-shell > *:nth-child(1) {
  animation-delay: 50ms;
}

#app.app-awake .journal-shell > *:nth-child(2) {
  animation-delay: 120ms;
}

#app.app-awake .journal-shell > *:nth-child(3) {
  animation-delay: 190ms;
}

#app.app-awake .journal-shell > *:nth-child(4) {
  animation-delay: 260ms;
}

#app.app-awake .journal-shell > *:nth-child(5) {
  animation-delay: 330ms;
}

.compose {
  display: grid;
  gap: 0.72rem;
}

textarea,
input,
button {
  font: inherit;
}

.compose__message {
  width: 100%;
  min-height: clamp(15rem, 42vh, 21rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.08rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  line-height: 1.58;
  resize: vertical;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
  animation: paper-breathe 5.8s ease-in-out infinite;
}

.compose__message:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 93, 62, 0.15);
  outline: none;
  animation: none;
}

.compose--active .compose__message {
  animation: writing-pulse 820ms var(--motion-interact-ease) both;
}

.compose__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf4;
  padding: 0.56rem 1.12rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px) scale(1.01);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.36) 46%, transparent 68%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.button:hover::after {
  animation: button-sheen 760ms ease both;
}

.button--subtle {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button--reveal {
  background: transparent;
  color: var(--ink);
  border-color: rgba(138, 93, 62, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.button--reveal:hover {
  background: rgba(239, 224, 206, 0.52);
  filter: none;
}

.interaction-pop {
  animation: interaction-pop var(--motion-interact-duration) var(--motion-interact-ease) both;
}

.status {
  min-height: 0;
  margin: 0;
  color: var(--success);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.status:empty {
  display: none;
}

.status--pulse {
  animation: status-pulse 520ms var(--motion-interact-ease) both;
}

.status[data-error="true"] {
  color: var(--danger);
}

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

.result-card,
.history-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 246, 0.86);
}

.result-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.78rem;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.inline-field--primary input {
  font-size: 0.86rem;
}

.history {
  margin-top: 0.45rem;
  border-top: 1px solid rgba(138, 93, 62, 0.17);
  padding-top: 0.7rem;
}

.history__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
}

.history__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

.history__list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.62rem;
}

.history-item {
  padding: 0.74rem 0.8rem;
  display: grid;
  gap: 0.55rem;
  animation: history-rise 660ms var(--motion-load-ease) both;
  animation-delay: var(--history-delay, 0ms);
  transform-origin: center top;
}

.history-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.history-item__link {
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-decoration-color: rgba(113, 101, 90, 0.45);
}

.history-item__message {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.48;
  font-size: 1.02rem;
}

.history-item__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.16rem 0.58rem;
  border: 1px solid var(--line);
}

.pill--locked {
  color: #7c4f32;
  background: #f8ebdc;
  border-color: #e8d1b7;
}

.pill--revealed {
  color: #33563a;
  background: #e8f0e8;
  border-color: #cfdfcd;
}

.meta-disclosure {
  margin: 0;
  width: 100%;
}

.meta-disclosure summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.meta-disclosure summary::-webkit-details-marker {
  display: none;
}

.meta-disclosure summary::after {
  content: "+";
  margin-left: 0.42rem;
  font-family: var(--font-display);
}

.meta-disclosure[open] summary::after {
  content: "-";
}

.proof-grid {
  margin: 0.45rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.88rem;
}

.proof-grid dt {
  font-size: 0.64rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-grid dd {
  margin: 0.08rem 0 0;
  font-size: 0.84rem;
}

.proof-grid code {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.journal-shell--recipient {
  width: min(700px, 100%);
  gap: 0.55rem;
}

.recipient-slot {
  min-height: 0;
}

.recipient-card {
  padding: 0.1rem 0 0;
  display: grid;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: card-settle 900ms var(--motion-load-ease) both;
  max-width: 25rem;
}

.recipient-card > * {
  position: relative;
  z-index: 1;
}

.recipient-stage {
  display: grid;
  place-items: center;
  text-align: center;
  width: 100%;
}

.recipient-stage--ready {
  justify-items: flex-start;
  text-align: left;
}

.recipient-state-line {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.note-content {
  margin: 0.22rem 0 0;
  white-space: pre-wrap;
  line-height: 1.68;
  font-size: clamp(1.2rem, 2.9vw, 1.55rem);
  text-align: center;
}

.note-content--muted {
  color: var(--ink-muted);
  font-size: 1.12rem;
}

.recipient-card--locked .note-content--muted {
  animation: locked-glow var(--motion-locked-duration) var(--motion-locked-ease) infinite;
}

.recipient-card__actions {
  display: flex;
  justify-content: flex-start;
}

.cinema-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  padding: clamp(1.2rem, 6vw, 4rem);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.cinema-stage::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 243, 226, 0.38), rgba(62, 41, 21, 0.22) 52%, rgba(20, 13, 8, 0.5) 78%),
    radial-gradient(circle at 40% 62%, rgba(255, 255, 255, 0.12), transparent 42%);
  opacity: 0;
  transform: scale(1.04);
  will-change: opacity, transform;
}

.cinema-prelude,
.cinema-message {
  grid-area: stack;
  position: relative;
  z-index: 1;
  place-self: center;
}

.cinema-prelude {
  margin: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 5.4vw, 3.2rem);
  letter-spacing: 0.02em;
  color: rgba(255, 246, 233, 0.9);
  opacity: 0;
  filter: blur(2px);
  transform: scale(0.98);
  text-wrap: pretty;
  pointer-events: none;
}

.cinema-prelude__line--live {
  animation: cinema-prelude-line var(--motion-cinema-prelude-duration) var(--motion-cinema-ease) both;
}

.cinema-message {
  margin: 0;
  max-width: min(78ch, 92vw);
  white-space: pre-wrap;
  text-align: center;
  line-height: 1.72;
  font-size: clamp(1.4rem, 4.1vw, 3rem);
  color: var(--ink);
  text-wrap: pretty;
  opacity: 0;
  filter: blur(2px);
  transform: scale(0.985);
  will-change: opacity, filter, transform;
}

#app.cinema-prelude-active .cinema-stage::before {
  animation: cinema-vignette-breathe var(--motion-cinema-prelude-duration) ease-in-out infinite;
}

#app.cinema-release-bloom .cinema-stage::before {
  animation: cinema-release-bloom 620ms var(--motion-cinema-ease) both;
}

#app.cinema-transition .journal-shell--recipient > * {
  animation: cinema-shell-out var(--motion-cinema-exit-duration) var(--motion-cinema-ease) both;
  pointer-events: none;
}

#app.cinema-transition .journal-shell--recipient {
  animation: cinema-shell-hush var(--motion-cinema-exit-duration) var(--motion-cinema-ease) both;
}

#app.cinema-mode .journal-shell--recipient {
  opacity: 0;
  pointer-events: none;
}

#app.cinema-mode .cinema-stage {
  opacity: 1;
  animation: cinema-stage-in var(--motion-cinema-in-duration) var(--motion-cinema-ease) both;
}

#app.cinema-mode .cinema-stage.cinema-stage--prelude .cinema-prelude {
  opacity: 1;
}

#app.cinema-mode .cinema-stage.cinema-stage--prelude .cinema-message {
  opacity: 0;
}

#app.cinema-mode .cinema-stage.cinema-stage--prelude-done .cinema-prelude {
  animation: cinema-prelude-out 280ms ease both;
}

#app.cinema-mode .cinema-stage.cinema-stage--live .cinema-message {
  animation: cinema-message-in var(--motion-cinema-in-duration) var(--motion-cinema-ease) both;
}

#app.cinema-mode .cinema-stage.cinema-stage--live .cinema-prelude {
  opacity: 0;
}

#app[data-motion="reduced"] .cinema-prelude {
  display: none;
}

#app[data-motion="reduced"] .cinema-message {
  opacity: 1;
  transform: none;
  filter: none;
}

#app.emotion-send-relief .result-card {
  animation: send-relief var(--motion-send-duration) var(--motion-send-ease) both;
}

#app.emotion-locked-anticipation .recipient-card--locked .recipient-stage {
  animation: locked-anticipation var(--motion-locked-duration) var(--motion-locked-ease) infinite;
}

#app.emotion-reveal-release .recipient-card--visible .note-content {
  animation: reveal-release var(--motion-reveal-duration) var(--motion-reveal-ease) both;
}

#app[data-motion="reduced"].emotion-send-relief .result-card {
  box-shadow: inset 0 0 0 1px rgba(138, 93, 62, 0.3);
}

#app[data-motion="reduced"].emotion-locked-anticipation .recipient-card--locked .recipient-stage {
  border-left: 2px solid rgba(138, 93, 62, 0.5);
  padding-left: 0.5rem;
  animation: none;
}

#app[data-motion="reduced"].emotion-reveal-release .recipient-card--visible .note-content {
  text-decoration: underline;
  text-decoration-color: rgba(138, 93, 62, 0.28);
  text-underline-offset: 0.2em;
  animation: none;
}

@keyframes aura-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate3d(24px, -14px, 0) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
}

@keyframes aura-drift-reverse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(-20px, 12px, 0) scale(1.05);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
}

@keyframes load-rise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: blur(1.8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headline-enter {
  0% {
    opacity: 0;
    filter: blur(2px);
  }
  80% {
    opacity: 1;
    filter: blur(0.3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes headline-leave {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(2.4px);
  }
}

@keyframes paper-breathe {
  0% {
    box-shadow: inset 0 0 0 0 rgba(138, 93, 62, 0.09);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(138, 93, 62, 0.2);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(138, 93, 62, 0.09);
  }
}

@keyframes writing-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.004);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes button-sheen {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes interaction-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.35;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes history-rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-settle {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes locked-glow {
  0% {
    opacity: 0.74;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.74;
  }
}

@keyframes cinema-vignette-breathe {
  0% {
    opacity: 0.3;
    transform: scale(1.03);
  }
  50% {
    opacity: 0.56;
    transform: scale(1.07);
  }
  100% {
    opacity: 0.3;
    transform: scale(1.03);
  }
}

@keyframes cinema-release-bloom {
  0% {
    opacity: 0.48;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes cinema-shell-hush {
  0% {
    filter: saturate(1) brightness(1);
  }
  100% {
    filter: saturate(0.72) brightness(0.72);
  }
}

@keyframes cinema-prelude-line {
  0% {
    opacity: 0;
    filter: blur(2.4px);
    transform: scale(0.97);
  }
  38% {
    opacity: 1;
    filter: blur(0.35px);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2.6px);
    transform: scale(1.015);
  }
}

@keyframes cinema-prelude-out {
  0% {
    opacity: 1;
    filter: blur(0.4px);
  }
  100% {
    opacity: 0;
    filter: blur(2.2px);
  }
}

@keyframes cinema-shell-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
    filter: blur(3.2px);
  }
}

@keyframes cinema-stage-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes cinema-message-in {
  0% {
    opacity: 0;
    filter: blur(2.4px);
    transform: scale(0.985);
  }
  58% {
    opacity: 1;
    filter: blur(0.3px);
    transform: scale(1);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes send-relief {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  48% {
    opacity: 1;
    transform: translateY(-2px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes locked-anticipation {
  0% {
    transform: translateY(0);
    filter: saturate(1);
  }
  50% {
    transform: translateY(-1px);
    filter: saturate(1.05);
  }
  100% {
    transform: translateY(0);
    filter: saturate(1);
  }
}

@keyframes reveal-build {
  0% {
    opacity: 0.72;
    transform: scale(0.995);
    filter: blur(1.8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes reveal-release {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  68% {
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .journal-shell {
    padding: 1rem;
  }

  .compose__actions {
    align-items: flex-start;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .history-item__actions {
    flex-direction: column;
    align-items: stretch;
  }

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