
:root {
  --bg-0: #eef4ee;
  --bg-1: #dcebdd;
  --paper: rgba(252, 255, 252, 0.7);
  --paper-solid: #f8fcf8;
  --ink: #223227;
  --ink-soft: #4e6154;
  --line: rgba(34, 50, 39, 0.17);
  --accent: #2f6f56;
  --accent-soft: rgba(47, 111, 86, 0.12);
  --warn: #824f36;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 14px 40px rgba(32, 57, 44, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-0), var(--bg-1));
  position: relative;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 6.8rem;
}

h1,
h2,
h3 {
  font-family: "Spectral", serif;
  margin: 0;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

textarea,
button {
  font: inherit;
}

.zen-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.32;
  animation: drift 22s ease-in-out infinite;
}

.orb-a {
  width: min(38vw, 530px);
  height: min(38vw, 530px);
  background: #9bc6af;
  top: -8%;
  left: -6%;
}

.orb-b {
  width: min(34vw, 480px);
  height: min(34vw, 480px);
  background: #cde3bd;
  right: -10%;
  top: 16%;
  animation-delay: -6s;
}

.orb-c {
  width: min(33vw, 460px);
  height: min(33vw, 460px);
  background: #9bc0d6;
  left: 20%;
  bottom: -18%;
  animation-delay: -12s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
  opacity: 0.15;
}

.cover {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  padding-bottom: 7.6rem;
  position: relative;
  isolation: isolate;
}

.cover-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cover-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.4;
  animation: drift 24s ease-in-out infinite;
}

.cover-orb-a {
  width: min(44vw, 620px);
  height: min(44vw, 620px);
  background: #a6ceb7;
  left: -8%;
  top: -10%;
}

.cover-orb-b {
  width: min(38vw, 520px);
  height: min(38vw, 520px);
  background: #b5cde0;
  right: -11%;
  bottom: -14%;
  animation-delay: -8s;
}

.cover-content {
  max-width: min(920px, 96vw);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(250, 255, 251, 0.72);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  gap: 0.9rem;
}

.cover-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.cover-title {
  font-family: "Spectral", serif;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  max-width: 16ch;
}

.cover-subtitle {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 65ch;
}

.cover-flow-text {
  margin-top: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(47, 111, 86, 0.34);
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.85;
  font-size: clamp(1.03rem, 2.3vw, 1.38rem);
  max-width: 100%;
}

.cover-flow-text .flow-token {
  display: inline-block;
  will-change: transform, letter-spacing;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 2vw, 1.8rem);
}

.brand-wrap {
  display: grid;
  gap: 0.2rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.brand {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

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

.lang-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  max-width: 9.5rem;
}

.lang-select:focus {
  outline: 2px solid rgba(47, 111, 86, 0.25);
  border-color: rgba(47, 111, 86, 0.5);
}

button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: var(--accent);
  color: #f2fff6;
  border-color: transparent;
}

.primary-btn span {
  margin-left: 0.3rem;
  display: inline-block;
  min-width: 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.66);
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  padding: 0 1rem 1.2rem;
}

.bank-stage {
  padding: 0 1rem 1.2rem;
}

.bank-panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(9px);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.bank-panel-head {
  display: grid;
  gap: 0.35rem;
}

.bank-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bank-upload-status {
  min-height: 1.1em;
  color: #2d5e4a;
  font-size: 0.9rem;
}

.bank-upload-status.error {
  color: #8a3422;
}

.bank-list {
  display: grid;
  gap: 0.7rem;
}

.bank-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-md);
  padding: 0.78rem;
  display: grid;
  gap: 0.52rem;
}

.bank-card.active {
  border-color: rgba(47, 111, 86, 0.52);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(220, 240, 226, 0.62));
}

.bank-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.bank-card h3 {
  font-size: 1.06rem;
}

.bank-source {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #456756;
}

.bank-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.bank-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bank-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bank-chip {
  border: 1px solid rgba(47, 111, 86, 0.2);
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font-size: 0.76rem;
  color: #2f624c;
  background: rgba(228, 242, 233, 0.65);
}

.bank-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bank-stat {
  border: 1px solid rgba(47, 111, 86, 0.24);
  border-radius: 10px;
  background: rgba(227, 242, 233, 0.74);
  padding: 0.42rem 0.58rem;
  font-size: 0.84rem;
  color: #2a5d47;
}

.sidebar,
.main-panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(9px);
}

.sidebar {
  padding: 1rem;
  position: sticky;
  top: 0.8rem;
  align-self: start;
  max-height: calc(100vh - 1.6rem);
  overflow: auto;
}

.sidebar-title {
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.dimension-nav {
  display: grid;
  gap: 0.45rem;
}

.dim-btn {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  padding: 0.64rem 0.72rem;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  gap: 0.1rem;
}

.dim-btn .meta {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.dim-btn.active {
  background: var(--accent-soft);
  border-color: rgba(47, 111, 86, 0.2);
}

.dim-btn .count {
  font-size: 0.76rem;
  color: var(--warn);
}

.main-panel {
  padding: 1rem;
}

.hidden {
  display: none;
}

.dimension-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dimension-meta {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.dimension-description {
  line-height: 1.55;
  max-width: 66ch;
  color: var(--ink-soft);
}

.question-list {
  display: grid;
  gap: 0.8rem;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
  border-color: rgba(47, 111, 86, 0.5);
  box-shadow: 0 8px 25px rgba(29, 47, 38, 0.09);
}

.question-card.saved {
  border-color: #d2691e;
  border-width: 2px;
  background: #fff2e7;
  box-shadow: 0 8px 26px rgba(178, 94, 31, 0.22);
}

.question-card.noted {
  border-color: #2b7a78;
  border-width: 2px;
  background: #e8fbf6;
  box-shadow: 0 8px 26px rgba(29, 93, 90, 0.18);
}

.question-card.saved.noted {
  border-color: #8a5e00;
  border-width: 2px;
  background: repeating-linear-gradient(
    135deg,
    #fff0df 0px,
    #fff0df 8px,
    #e7fbf4 8px,
    #e7fbf4 16px
  );
  box-shadow: 0 10px 28px rgba(88, 74, 23, 0.2);
}

.question-subdimension {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.question-text {
  line-height: 1.65;
  font-size: clamp(1rem, 1.26vw, 1.1rem);
  max-width: 100%;
  transition: max-width 0.15s linear;
}

.question-text .token {
  display: inline-block;
  transition: transform 0.12s linear;
}

.question-note,
#globalNote,
#focusNote {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
  min-height: 80px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.question-note:focus,
#globalNote:focus,
#focusNote:focus {
  outline: 2px solid rgba(47, 111, 86, 0.25);
  border-color: rgba(47, 111, 86, 0.5);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.note-btn.note-saved {
  border-color: rgba(28, 112, 108, 0.4);
  background: #dcf5ef;
  color: #145a57;
}

.save-btn.remove-mode {
  border-color: rgba(156, 71, 22, 0.45);
  background: #fde9da;
  color: #8d3f13;
}

.global-note-wrap {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.selection-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

/* Las tres salidas viajan juntas y envuelven juntas, en vez de que la principal
   se quede sola en una línea. */
.selection-output {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-left: auto;
}

.empty-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
}

.focus-dialog {
  border: none;
  border-radius: 18px;
  max-width: min(740px, 92vw);
  width: 100%;
  padding: 0;
  background: transparent;
}

.focus-dialog::backdrop {
  background: rgba(18, 28, 24, 0.42);
  backdrop-filter: blur(6px);
}

.focus-inner {
  background: linear-gradient(160deg, rgba(251, 255, 252, 0.95), rgba(229, 241, 231, 0.92));
  border: 1px solid rgba(229, 246, 235, 0.6);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.focus-label {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.focus-question {
  line-height: 1.7;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  animation: breathing 6s ease-in-out infinite;
}

.focus-help {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.focus-status {
  min-height: 1.2em;
  color: #1f617f;
  font-size: 0.88rem;
}

.focus-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.readme-dialog {
  border: none;
  border-radius: 18px;
  width: min(980px, 95vw);
  max-height: 88vh;
  padding: 0;
  background: transparent;
}

.readme-dialog::backdrop {
  background: rgba(18, 28, 24, 0.46);
  backdrop-filter: blur(6px);
}

.readme-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.7rem;
  border: 1px solid rgba(229, 246, 235, 0.6);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(251, 255, 252, 0.97), rgba(229, 241, 231, 0.93));
  padding: 0.9rem;
  height: min(84vh, 840px);
}

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

.readme-head h3 {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.readme-body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.15rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.readme-body h1,
.readme-body h2,
.readme-body h3,
.readme-body h4 {
  margin: 1.2rem 0 0.5rem;
  line-height: 1.25;
}

.readme-body h1:first-child,
.readme-body h2:first-child {
  margin-top: 0;
}

.readme-body h1 { font-size: 1.35rem; }
.readme-body h2 { font-size: 1.12rem; }
.readme-body h3 { font-size: 1rem; }

.readme-body p,
.readme-body ul,
.readme-body ol {
  margin: 0 0 0.7rem;
}

.readme-body ul,
.readme-body ol {
  padding-left: 1.3rem;
}

.readme-body li {
  margin-bottom: 0.25rem;
}

.readme-body code {
  background: rgba(47, 111, 86, 0.09);
  border-radius: 5px;
  padding: 0.08rem 0.3rem;
  font-size: 0.88em;
}

.readme-body pre {
  background: rgba(31, 45, 36, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  overflow-x: auto;
}

.readme-body pre code {
  background: none;
  padding: 0;
}

.readme-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.1rem 0;
}

.readme-body a {
  color: #245a44;
}

.save-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  border-radius: 10px;
  border: 1px solid rgba(47, 111, 86, 0.3);
  background: rgba(245, 255, 248, 0.95);
  color: #1f4a37;
  box-shadow: 0 10px 30px rgba(20, 45, 35, 0.18);
  padding: 0.52rem 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.save-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.save-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-undo {
  border: 1px solid rgba(47, 111, 86, 0.45);
  border-radius: 999px;
  background: #245a44;
  color: #f4fff9;
  padding: 0.22rem 0.6rem;
  font: 600 0.78rem/1.2 inherit;
  cursor: pointer;
  white-space: nowrap;
}

.toast-undo:hover {
  background: #1c4735;
}

.author-footer {
  --footer-proximity: 0;
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  width: min(980px, calc(100vw - 1.5rem));
  transform: translate(-50%, calc((1 - var(--footer-proximity)) * 16px));
  z-index: 45;
  border: 1px solid rgba(34, 50, 39, 0.2);
  border-radius: 16px;
  background: rgba(248, 253, 249, 0.82);
  box-shadow: 0 12px 28px rgba(23, 38, 31, 0.18);
  backdrop-filter: blur(9px);
  overflow: clip;
  transition:
    transform 0.34s cubic-bezier(0.22, 0.74, 0.18, 1),
    box-shadow 0.34s ease,
    background-color 0.34s ease,
    border-color 0.34s ease;
}

.author-footer-handle {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(34, 50, 39, 0.08);
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0.9rem 0.66rem;
  text-align: left;
  display: block;
}

.author-footer-handle:hover {
  transform: none;
}

.author-footer-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.04em;
  font-size: clamp(0.9rem, 1.8vw, 1.03rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #24372d;
}

.author-footer-title .footer-token {
  display: inline-block;
  opacity: 0.92;
  will-change: transform, opacity;
  transition: opacity 0.2s ease;
}

.author-footer-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0.92rem;
  display: grid;
  gap: 0.52rem;
  color: #31473c;
  line-height: 1.45;
  transition:
    max-height 0.4s cubic-bezier(0.22, 0.74, 0.18, 1),
    opacity 0.24s ease,
    padding 0.26s ease;
}

.author-footer-panel p {
  font-size: 0.9rem;
}

.author-footer-panel a {
  color: #8a4e17;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 78, 23, 0.4);
}

.author-footer-panel a:hover {
  color: #6e3a11;
}

.author-footer.near,
.author-footer.pinned,
.author-footer:focus-within {
  border-color: rgba(34, 50, 39, 0.3);
  background: rgba(250, 255, 252, 0.94);
  box-shadow: 0 18px 36px rgba(18, 31, 25, 0.24);
}

.author-footer.near .author-footer-panel,
.author-footer.pinned .author-footer-panel,
.author-footer:focus-within .author-footer-panel {
  max-height: 190px;
  opacity: 1;
  padding: 0.5rem 0.92rem 0.85rem;
}

.stage-pane {
  transform-origin: left center;
  backface-visibility: hidden;
}

body.is-turning .stage-pane {
  will-change: transform, opacity, filter;
}

body.is-turning .app-shell,
body.is-turning .cover {
  pointer-events: none;
}

.stage-pane.pane-leaving h1,
.stage-pane.pane-leaving h2,
.stage-pane.pane-leaving h3,
.stage-pane.pane-leaving p,
.stage-pane.pane-leaving label,
.stage-pane.pane-leaving button,
.stage-pane.pane-leaving strong,
.stage-pane.pane-leaving .bank-chip,
.stage-pane.pane-leaving .bank-stat,
.stage-pane.pane-leaving .question-text,
.stage-pane.pane-leaving .question-subdimension {
  opacity: 0.14;
  filter: blur(1.8px);
  letter-spacing: 0.035em;
  transform: translateY(-3px);
  transition: opacity 0.34s ease, filter 0.34s ease, letter-spacing 0.34s ease, transform 0.34s ease;
}

.stage-pane.pane-entering {
  animation: pageSettle 0.62s cubic-bezier(0.2, 0.72, 0.16, 1) both;
}

.page-turn-fx {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.6) 28%, rgba(211, 231, 221, 0.36) 62%, rgba(41, 68, 54, 0.14) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(249, 252, 250, 0.8) 0px,
      rgba(249, 252, 250, 0.8) 3px,
      rgba(236, 246, 239, 0.62) 3px,
      rgba(236, 246, 239, 0.62) 6px
    );
}

body.is-turning .page-turn-fx {
  opacity: 1;
  animation: pageTurn 0.86s cubic-bezier(0.22, 0.7, 0.18, 1);
}

body.is-turning-release .page-turn-fx {
  animation: none;
  opacity: 0;
  transform: translateX(-0.35%);
  transition: opacity 0.19s ease-out, transform 0.19s ease-out;
}

body.zen-off .orb,
body.zen-off .cover-orb,
body.zen-off .focus-question {
  animation: none !important;
}

body.flow-off .question-text .token {
  transition: none;
}

body.flow-off .cover-flow-text .flow-token {
  transition: none;
}

body.flow-off .stage-pane.pane-leaving p,
body.flow-off .stage-pane.pane-leaving h1,
body.flow-off .stage-pane.pane-leaving h2,
body.flow-off .stage-pane.pane-leaving h3,
body.flow-off .stage-pane.pane-leaving .question-text {
  letter-spacing: normal;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  30% {
    transform: translate3d(4%, 3%, 0) scale(1.05);
  }
  65% {
    transform: translate3d(-5%, 2%, 0) scale(0.96);
  }
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(0.995);
  }
  50% {
    transform: scale(1.014);
  }
}

@keyframes pageSettle {
  0% {
    opacity: 0;
    transform: translateX(14px) scale(0.992);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageTurn {
  0% {
    transform: perspective(1800px) rotateY(0deg) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.55;
  }
  45% {
    transform: perspective(1800px) rotateY(-13deg) translateX(-0.8%);
    opacity: 0.62;
  }
  75% {
    transform: perspective(1800px) rotateY(-22deg) translateX(-1.2%);
    opacity: 0.42;
  }
  100% {
    transform: perspective(1800px) rotateY(-34deg) translateX(-1.5%);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .dimension-nav {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .cover-title {
    max-width: 100%;
  }

  .bank-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-footer {
    width: calc(100vw - 1rem);
    bottom: 0.5rem;
  }

  .author-footer-panel p {
    font-size: 0.84rem;
  }
}

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

  .stage-pane.pane-leaving h1,
  .stage-pane.pane-leaving h2,
  .stage-pane.pane-leaving h3,
  .stage-pane.pane-leaving p,
  .stage-pane.pane-leaving label,
  .stage-pane.pane-leaving button,
  .stage-pane.pane-entering,
  .page-turn-fx,
  .author-footer-title .footer-token {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    letter-spacing: normal !important;
  }
}
