@font-face {
  font-family: Pixel;
  src: url("/assets/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #17151f;
  --sidebar: #121119;
  --panel: #211e2b;
  --panel-light: #272231;
  --border: #3a3345;
  --ink: #e8e0d4;
  --muted: #c9bfce;
  --faint: #b8aac1;
  --placeholder: #88818f;
  --orange: #eca76e;
  --orange-dark: #c6824f;
  --green: #a9b995;
  --purple: #b19acb;
  --red: #d58f8c;
  --pixel: Pixel, "Courier New", monospace;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --text-caption: 0.875rem;
  --text-small: 1rem;
  --text-body: 1rem;
  --text-lead: 1.25rem;
  --line-ui: 1.375;
  --line-copy: 1.5;
  --line-caption: 1.428571429;
}

.guide-sharing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-width: 0; margin-block: 12px 20px; }
.guide-share-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; max-width: 100%; padding: 8px 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.guide-share-button > svg { flex: 0 0 auto; }
html:not(.native-guide-share) .guide-native-share { display: none; }
.guide-share-status { color: var(--muted); font-size: var(--text-caption); overflow-wrap: anywhere; }
.guide-share-status:empty { display: none; }
.guide-share-manual { flex-basis: 100%; min-width: 0; color: var(--muted); font-size: var(--text-caption); }
.guide-share-manual[hidden] { display: none; }
.guide-share-manual > span { display: block; margin-bottom: 8px; }
.guide-share-manual > input { width: 100%; min-width: 0; min-height: 44px; }
* {
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--text-body);
  line-height: var(--line-ui);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}
::selection {
  background: #865c43;
  color: #fff;
}
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  image-rendering: pixelated;
}
.muted {
  color: var(--faint);
}
p,
h1,
h2,
h3 {
  margin: 0;
}
p {
  line-height: var(--line-copy);
}
.skip-link {
  position: fixed;
  z-index: 50;
  top: -100px;
  left: 20px;
  padding: 12px 18px;
  background: var(--orange);
  color: var(--bg);
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 37px 18px 0;
  background: var(--sidebar);
  border-right: 1px solid #292332;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 10px 54px;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: var(--text-lead);
  line-height: 1.65;
  letter-spacing: 1px;
}
.brand-skull {
  color: var(--orange);
}
.brand-tagline {
  display: block;
  font: var(--text-caption) var(--mono);
  font-weight: 700;
  letter-spacing: 1.15px;
  color: var(--faint);
  margin-top: 9px;
  white-space: nowrap;
}
.nav-label {
  font-size: var(--text-caption);
  letter-spacing: 1.4px;
  color: var(--faint);
  padding: 0 14px;
  margin-bottom: 14px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 14px;
  color: #aaa0b6;
  font-size: var(--text-body);
  border: 1px solid transparent;
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item .icon {
  color: #a399b1;
  width: 17px;
  height: 17px;
}
.nav-item:hover {
  background: #221d2c;
  color: var(--ink);
}
.nav-item.active {
  background: #30232a;
  color: var(--orange);
  border-color: #4a3334;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--orange);
}
.nav-item.active .icon {
  color: var(--orange);
}
.nav-count {
  margin-left: auto;
  font-size: var(--text-caption);
  border: 1px solid #5c4142;
  padding: 0 5px;
  color: var(--orange);
  line-height: var(--line-caption);
}
.sidebar-rule {
  height: 1px;
  background: #2a2432;
  margin: 29px 14px;
}
.sidebar-bottom {
  margin-top: auto;
  text-align: center;
  padding: 40px 0 0;
}
.candle-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  color: var(--orange);
  margin-bottom: 17px;
}
.small-skull {
  color: #bcb0b7;
  margin-bottom: -1px;
}
.candle {
  filter: drop-shadow(0 -4px 10px #e4a15d38);
  animation: candle-flicker 4s steps(2, end) infinite;
}
.candle.two {
  animation-delay: 1s;
  color: #cb9975;
}
.sidebar-bottom p {
  font-family: var(--pixel);
  font-size: var(--text-caption);
  line-height: 2.1;
  color: #aea1b4;
}
.sidebar-bottom > span {
  display: block;
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  color: var(--faint);
  margin: 9px 0 27px;
}
.version {
  border-top: 1px solid #2a2432;
  padding: 15px 5px;
  display: flex;
  justify-content: space-between;
  font-size: var(--text-caption);
  letter-spacing: 1px;
  color: #a09aaa;
}
.version span {
  color: #a09ba8;
}
.workspace {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid #2c2635;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 15px;
}
.breadcrumb {
  font-size: var(--text-caption);
  letter-spacing: 1.3px;
  color: var(--faint);
  display: flex;
  gap: 17px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 400;
  color: #b8aebf;
}
.slash {
  color: #a29ba8;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}
.alive-dot {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px #adc4904a;
  background: var(--green);
}
.status-text {
  font-size: var(--text-caption);
  letter-spacing: 1px;
  color: var(--green);
  margin-right: 16px;
}
.character-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #231e2c;
  border: 1px solid #3d3348;
  color: #c7b8cf;
  font-size: var(--text-small);
  letter-spacing: 1px;
}
.character-button .icon {
  color: #b4a6bd;
}
main {
  max-width: 1416px;
  padding: 33px 40px 0;
  margin: 0 auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 12px;
}
h1 {
  font-family: var(--pixel);
  font-size: 1.75rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: #eee4d8;
}
.subheading {
  font-size: var(--text-body);
  color: var(--muted);
  margin-top: 7px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 43px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--pixel);
  font-size: var(--text-body);
  line-height: var(--line-ui);
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button.primary {
  background: var(--orange);
  border-color: #f2bd90;
  color: #2c1c22;
  box-shadow:
    0 3px 0 #95613f,
    0 4px 0 #0d0c13;
}
.button.primary:hover {
  background: #f5b880;
  transform: translateY(-1px);
}
.button.primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #95613f;
}
.button.secondary {
  background: #2b2333;
  color: #cbbbd3;
  border-color: #51425d;
}
.button.secondary:hover {
  background: #352b40;
}
.button.danger-button {
  background: #cd8f89;
  border-color: #e2aaa4;
}
.text-button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  background: none;
  border: 0;
  padding: 0;
  font-size: var(--text-body);
  line-height: var(--line-ui);
}
.text-button:hover,
.text-link:hover {
  color: #f9c498;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button.danger {
  color: var(--red);
}
.pixel-panel {
  background: var(--panel);
  border: 1px solid #494050;
  box-shadow: inset 0 0 0 3px #1d1925;
}
.ttl-hero {
  position: relative;
  min-height: 308px;
  overflow: hidden;
  background: #171421;
  border-color: #63505b;
  box-shadow:
    0 0 0 3px #211d28,
    inset 0 0 0 3px #13111b;
}
.ttl-hero::after {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 1px solid #d7a77c22;
  z-index: 1;
}
.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("/assets/castle-banner.png");
  background-size: cover;
  background-position: center top;
  image-rendering: pixelated;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #17141cf5 0%, #17141ce6 22%, #17141c80 47%, #17141c00 74%),
    linear-gradient(0deg, #17141cf5 0%, #17141c00 50%);
}
.hero-copy {
  position: relative;
  padding: 27px 30px 92px;
  z-index: 2;
  max-width: 75%;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-caption);
  color: #c8b9cb;
  letter-spacing: 1.6px;
}
.hero-kicker .icon {
  color: #d8b08c;
}
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
}
.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.countdown strong {
  font: 2.75rem/1.3 var(--pixel);
  letter-spacing: -2px;
  color: #efb482;
  text-shadow: 3px 3px #674738;
}
.countdown > div > span {
  font-size: var(--text-caption);
  letter-spacing: 2px;
  color: #c9b6b2;
}
.countdown > b {
  font: 1.625rem/1.65 var(--pixel);
  color: #ac989e;
  font-weight: 400;
  animation: clock-blink 4s steps(1, end) infinite;
}
.countdown .countdown-skull {
  align-self: center;
  margin: 0 0 19px 0;
  color: #a798a7;
}
.hero-description {
  margin-top: 19px;
  font-size: var(--text-body);
  color: #bbacbd;
}
.hero-link {
  margin-top: 13px;
  color: var(--orange);
  font-size: var(--text-body);
}
.hero-chip {
  position: absolute;
  right: 22px;
  top: 20px;
  padding: 4px 7px;
  font-size: var(--text-caption);
  letter-spacing: 1px;
  color: #e0c4ab;
  background: #1c1620b3;
  border: 1px solid #9a715747;
  z-index: 2;
}
.hero-bottom {
  position: absolute;
  bottom: 19px;
  left: 30px;
  right: 30px;
  z-index: 2;
}
.life-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-caption);
  letter-spacing: 1.2px;
  color: #b9a6b9;
  margin-bottom: 7px;
}
.life-bar-top span:last-child {
  color: var(--orange);
}
.life-bar {
  height: 7px;
  border: 1px solid #776374;
  background: #2e293b;
  position: relative;
}
.life-bar > span {
  height: 100%;
  display: block;
  background: repeating-linear-gradient(90deg, #b5917c 0, #b5917c 8px, #6c5359 8px, #6c5359 10px);
}
.life-bar > i {
  height: 11px;
  top: -3px;
  position: absolute;
  transform: translateX(-1px);
  background: var(--orange);
  width: 3px;
  box-shadow: 0 0 7px #dc9d6a88;
}
.life-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-caption);
  letter-spacing: 1.1px;
  color: #a599ac;
  margin-top: 6px;
}
.life-bar-labels .icon {
  color: #bca7b9;
}
.life-bar-labels > span:nth-child(2) {
  margin-left: auto;
  margin-right: 11px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0 31px;
}
.stat-card {
  background: #201c28;
  border: 1px solid #393140;
  padding: 17px 17px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 83px;
}
.stat-icon {
  color: #ae95bb;
}
.stat-card:first-child .stat-icon {
  color: #cba477;
}
.stat-card:last-child .stat-icon {
  color: #a2ae8b;
}
.stat-card > div > span {
  font-size: var(--text-caption);
  letter-spacing: 1.1px;
  color: #a89aad;
  display: block;
  margin-bottom: 6px;
}
.stat-card strong {
  font-family: var(--pixel);
  font-size: var(--text-lead);
  line-height: 1.5;
  font-weight: 400;
  color: #e0d3c7;
  display: block;
  white-space: nowrap;
}
.stat-card small {
  font: var(--text-caption) var(--mono);
  color: #a399aa;
  margin-left: 6px;
  letter-spacing: 0;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 28px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.section-top h2,
h2 {
  font-family: var(--pixel);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.1px;
}
.section-top h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-top h2 .icon {
  width: 17px;
  height: 17px;
  color: #bc9dc5;
}
.section-top p {
  font-size: var(--text-small);
  color: #a298ad;
  margin-top: 5px;
}
.section-top .text-link {
  font-size: var(--text-small);
  white-space: nowrap;
}
.quest-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quest-card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px;
  background: #211d2b;
  border: 1px solid #3c3346;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.quest-card:hover {
  background: #292231;
  border-color: #7e5c66;
}
.quest-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 57px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid #64566e;
  background: #353044;
  color: #b0a0d0;
}
.quest-art::after {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid currentColor;
  opacity: 0.13;
}
.art-create {
  color: #c7ac76;
  background: #39302c;
  border-color: #67543f;
}
.art-connection {
  color: #cf93a7;
  background: #3e293b;
  border-color: #6c455b;
}
.art-learn {
  color: #a6bca1;
  background: #2a3432;
  border-color: #536c5c;
}
.art-vitality {
  color: #acb68c;
  background: #34382d;
  border-color: #59674a;
}
.quest-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 6px;
}
.quest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.3;
}
.category {
  font-size: var(--text-caption);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.cat-adventure {
  color: #b49dcb;
}
.cat-create {
  color: #cbae79;
}
.cat-connection {
  color: #d195ad;
}
.cat-learn {
  color: #a4bba3;
}
.cat-vitality {
  color: #afbd8a;
}
.starter-label {
  font-size: var(--text-caption);
  letter-spacing: 1px;
  color: #a798ad;
}
.complete-label {
  font-size: var(--text-caption);
  color: var(--green);
  letter-spacing: 1px;
}
.quest-body > strong {
  font-size: var(--text-body);
  font-weight: 700;
  color: #e0d4e3;
  line-height: var(--line-ui);
  overflow-wrap: anywhere;
}
.quest-milestone-count {
  color: var(--muted);
  font-size: var(--text-small);
  line-height: var(--line-copy);
  overflow-wrap: anywhere;
}
.quest-next-step {
  color: #d4b9dd;
  font-size: var(--text-small);
  line-height: var(--line-copy);
  overflow-wrap: anywhere;
}
.quest-next-label {
  color: var(--muted);
}
.quest-card-action {
  margin-top: 5px;
  color: var(--orange);
  font-size: var(--text-small);
  line-height: var(--line-ui);
  overflow-wrap: anywhere;
}
.quest-card:hover .quest-card-action {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quest-progress-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: var(--text-caption);
  color: #a697af;
}
.mini-progress {
  display: block;
  height: 4px;
  background: #45394f;
  flex: 1;
  min-width: 40px;
  max-width: 100px;
  overflow: hidden;
}
.mini-progress > i {
  height: 100%;
  background: #bda57d;
  display: block;
}
.quest-date {
  margin-left: auto;
  font-size: var(--text-caption);
  letter-spacing: 0.4px;
  color: #a698b0;
}
.quest-card-arrow {
  color: #a598ac;
  margin-left: 1px;
}
.quest-card:hover .quest-card-arrow {
  color: var(--orange);
}
.quest-card.compact {
  padding: 14px 15px;
  gap: 14px;
  min-height: 93px;
  align-items: flex-start;
}
.compact .quest-art {
  width: 49px;
  height: 51px;
}
.compact .quest-body > strong {
  font-size: var(--text-body);
}
.compact .quest-progress-line {
  gap: 7px;
}
.compact .mini-progress {
  max-width: 71px;
}
.add-quest-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 1px dashed #4b3b51;
  color: #af93b7;
  margin-top: 11px;
  min-height: 39px;
  font-size: var(--text-small);
}
.add-quest-line:hover {
  border-color: #ad7e93;
  color: #e4c2cf;
  background: #261e2d;
}
.buff-preview {
  background: #211e28;
  border: 1px solid #3b3341;
}
.buff-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  padding: 20px 18px;
  background: none;
  border: 0;
  border-bottom: 1px solid #3a3042;
  width: 100%;
}
.buff-row:hover {
  background: #2b2331;
}
.buff-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 37px;
  height: 43px;
  flex-shrink: 0;
  color: #afba94;
  background: #2d332b;
  border: 1px solid #4e5943;
}
.buff-row:nth-child(2) .buff-icon {
  color: #b5a2cc;
  background: #332b40;
  border-color: #584666;
}
.buff-row > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}
.buff-label {
  font-size: var(--text-caption);
  color: #b4bd9b;
  letter-spacing: 1px;
}
.buff-row:nth-child(2) .buff-label {
  color: #b9a7cf;
}
.buff-row strong {
  font-size: var(--text-body);
  color: #e0d5e3;
  line-height: var(--line-ui);
}
.buff-row small {
  font-size: var(--text-caption);
  color: #a797b2;
}
.buff-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: var(--text-small);
  color: var(--orange);
}
.buff-all:hover {
  background: #2c2433;
}
.reaper-note {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 23px 12px;
  color: #a499b0;
}
.reaper-note > .icon {
  color: #ab96aa;
}
.reaper-note p {
  font-size: var(--text-body);
  color: #c4b5c8;
  line-height: var(--line-copy);
}
.reaper-note em {
  font-style: normal;
  color: #edba8e;
}
.reaper-note p > span {
  font-size: var(--text-caption);
  letter-spacing: 0.8px;
  color: #a598ad;
  display: block;
  margin-top: 8px;
}
.next-section {
  margin-top: 29px;
  padding-top: 23px;
  border-top: 1px solid #352c3e;
}
.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.next-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  background: #211c2a;
  border: 1px solid #3b3144;
}
.next-card > div {
  min-width: 0;
}
.next-card strong {
  font-size: var(--text-body);
  line-height: var(--line-ui);
  display: block;
}
.next-card span {
  font-size: var(--text-caption);
  display: block;
  color: #a598af;
  margin-top: 3px;
}
.next-card span b {
  margin: 0 5px;
  font-weight: 400;
  color: #a29aa8;
}
.step-check {
  border: 1px solid #7b658b;
  min-width: 19px;
  width: 19px;
  height: 19px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #292231;
  color: #261e2c;
}
.step-check:hover {
  border-color: var(--orange);
  background: #40313d;
}
.step-check.checked {
  background: var(--green);
  border-color: var(--green);
}
.main-footer {
  border-top: 1px solid #302738;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  padding: 20px 0;
  font-size: var(--text-caption);
  letter-spacing: 0.8px;
  color: #a599ad;
}
.main-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-dot {
  color: #a49aaa;
}
.main-footer a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ae93b9;
  font-size: var(--text-caption);
  letter-spacing: 0;
}
.main-footer a:hover {
  color: var(--orange);
}
.maker-credit {
  width: 100%;
  margin: 0;
  text-align: left;
  letter-spacing: 0;
}
.maker-credit strong {
  color: var(--orange);
}
.maker-signature {
  display: inline-block;
  white-space: nowrap;
}
.quest-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 8px 0 20px;
}
.filter-tabs {
  display: flex;
  border-bottom: 1px solid #44364e;
  gap: 7px;
}
.filter-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 14px;
  color: #a896b2;
  font-size: var(--text-body);
}
.filter-tabs button.selected {
  color: var(--orange);
  border-color: var(--orange);
}
.filter-tabs button:hover {
  color: #e6c0a0;
}
.budget-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-caption);
  letter-spacing: 1px;
  color: #ab95b5;
}
.starter-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #4d3c51;
  background: #2b222e;
  font-size: var(--text-small);
  color: #bda6c7;
  margin-bottom: 18px;
}
.starter-strip > .text-button {
  margin-left: auto;
  white-space: nowrap;
  font-size: var(--text-small);
}
.quest-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 15px;
}
.quest-list .quest-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr auto auto;
  align-items: start;
  row-gap: 6px;
}
.quest-list .quest-body {
  display: contents;
}
.quest-list .quest-meta {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 6px;
}
.quest-list .quest-meta > span {
  white-space: nowrap;
}
.quest-list .quest-art {
  grid-column: 1;
  grid-row: 2;
}
.quest-list .quest-body > strong {
  grid-column: 2;
  grid-row: 2;
}
.quest-list .quest-milestone-count {
  grid-column: 2;
  grid-row: 3;
}
.quest-list .quest-next-step {
  grid-column: 2;
  grid-row: 4;
}
.quest-list .quest-card-action {
  grid-column: 2;
  grid-row: 5;
}
.quest-list .quest-progress-line {
  grid-column: 2;
  grid-row: 6;
}
.quest-list .quest-card-arrow {
  grid-column: 3;
  grid-row: 2;
}
.quest-list .empty-state {
  grid-column: 1/-1;
}
.recommendations {
  margin-top: 42px;
}
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.idea-card {
  display: flex;
  flex-direction: column;
  background: #211c2a;
  border: 1px solid #43354b;
  padding: 22px 21px;
  min-height: 226px;
  transition: border-color 0.2s;
}
.idea-card:hover {
  border-color: #866274;
}
.idea-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
  color: #c0a1cb;
}
.idea-card h3 {
  font-family: var(--mono);
  font-size: var(--text-body);
  line-height: var(--line-ui);
  color: #e2d0e5;
  font-weight: 700;
}
.idea-card p {
  font-size: var(--text-body);
  line-height: var(--line-copy);
  color: #ae95b6;
  margin: 10px 0 23px;
}
.idea-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.idea-bottom > span {
  font-size: var(--text-caption);
  letter-spacing: 0.7px;
  color: #c0a3cd;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  background: #332538;
  border: 1px solid #5c4162;
  color: var(--orange);
  padding: 0;
}
.icon-button:hover {
  border-color: var(--orange);
  background: #463041;
}
.empty-state {
  padding: 40px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-height: 220px;
  border: 1px dashed #5c4261;
  color: #b299bb;
}
.empty-state h3 {
  font-family: var(--pixel);
  font-size: var(--text-body);
  line-height: 2;
  color: #ded0e2;
}
.empty-state p {
  color: #ad95b5;
  font-size: var(--text-body);
}
.empty-state > .icon {
  color: #ae96ac;
}
.empty-line {
  font-size: var(--text-body);
  color: #ab95b6;
  padding: 20px;
}
.info-strip,
.save-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 19px;
  font-size: var(--text-body);
  line-height: var(--line-copy);
  background: #2e242c;
  border: 1px solid #61464e;
  color: #d5b5b1;
  margin: 0 0 22px;
}
.info-strip .icon,
.save-warning .icon {
  flex-shrink: 0;
}
.save-warning {
  background: #3c2531;
  border-color: #a4656d;
}
.apothecary-banner {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 29px 30px;
  background: linear-gradient(110deg, #2b2d26, #29212e);
  border: 1px solid #515243;
  margin-bottom: 28px;
}
.apothecary-banner > .icon {
  color: #b8c68e;
}
.apothecary-banner h2 {
  font-size: var(--text-body);
  line-height: 2;
  color: #d6d8bc;
}
.apothecary-banner p {
  font-size: var(--text-body);
  color: #aaa88f;
  margin-top: 12px;
}
.pixel-spark {
  margin-left: auto;
  font-size: 3.4375rem;
  color: #a896b1;
}
.buff-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin-bottom: 28px;
}
.buff-card {
  display: flex;
  flex-direction: column;
  padding: 24px 23px;
  background: #221e2a;
  border: 1px solid #4d3c54;
}
.buff-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.large-buff-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #35382b;
  border: 1px solid #697348;
  width: 58px;
  height: 60px;
  color: #bac78b;
}
.buff-card:nth-child(2) .large-buff-icon {
  background: #362b42;
  border-color: #675078;
  color: #bea6d5;
}
.tag {
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  color: #c1a6cf;
  border: 1px solid #5c4369;
  padding: 4px 7px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.green-tag {
  color: #bdca9e;
  border-color: #66794d;
}
.buff-card > .eyebrow {
  font-size: var(--text-caption);
  color: #be9fc7;
  margin-bottom: 10px;
}
.buff-card > h2 {
  font: 700 var(--text-lead)/1.7 var(--mono);
  margin-bottom: 13px;
}
.buff-card > p:not(.eyebrow) {
  font-size: var(--text-body);
  color: #b59abe;
  line-height: var(--line-copy);
  min-height: 91px;
}
.buff-evidence {
  background: #19171f;
  border: 1px solid #3c3045;
  padding: 17px 17px;
  margin: 22px 0;
  font-size: var(--text-body);
  line-height: var(--line-copy);
  color: #af96ba;
}
.buff-evidence > span {
  font-size: var(--text-caption);
  color: #c0aa8b;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 10px;
}
.buff-evidence a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: var(--text-small);
  margin-top: 15px;
}
.buff-evidence a:hover {
  text-decoration: underline;
}
.buff-card > .buff-evidence {
  flex: 1;
}
.buff-card > .button {
  margin-top: auto;
  font-size: var(--text-body);
}
.hourglass-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
}
.year-panel {
  padding: 28px;
}
.year-panel .section-top h2 {
  font-size: var(--text-caption);
}
.year-panel .tag {
  font-size: var(--text-caption);
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin: 28px 0;
}
.year {
  aspect-ratio: 1;
  max-height: 29px;
  background: #332a3e;
  border: 1px solid #695075;
  display: block;
}
.year.lived,
.year-legend i.lived {
  background: #95726e;
  border-color: #b18a7d;
}
.year.current-year,
.year-legend i.current-year {
  background: var(--orange);
  border-color: #f4c798;
  box-shadow: 0 0 10px #e8a37333;
}
.year-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--text-caption);
  color: #ae93bc;
}
.year-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.year-legend i {
  width: 10px;
  height: 10px;
  background: #332a3e;
  border: 1px solid #695075;
}
.hourglass-quote {
  font-size: var(--text-body);
  color: #d0b8cb;
  line-height: var(--line-copy);
  border-top: 1px solid #44334d;
  margin-top: 26px;
  padding-top: 22px;
}
.horizon-detail {
  padding: 29px;
}
.horizon-number {
  font: 2.25rem/1.7 var(--pixel);
  color: var(--orange);
  margin: 20px 0;
}
.horizon-number > span {
  display: block;
  font: var(--text-caption) var(--mono);
  letter-spacing: 1.6px;
  color: #b29abd;
  margin-top: 8px;
}
.horizon-detail dl {
  margin: 29px 0 22px;
}
.horizon-detail dl > div {
  padding: 13px 0;
  border-top: 1px solid #43354b;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: var(--text-body);
}
.horizon-detail dt {
  color: #b095ba;
  max-width: 60%;
}
.horizon-detail dd {
  margin: 0;
  white-space: nowrap;
  color: #e6cdbf;
}
.codex-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 25px;
}
.codex-article {
  padding: 30px;
}
.codex-article h2 {
  color: #dac4b2;
  margin: 32px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.codex-article h2:first-child {
  margin-top: 0;
}
.codex-article p {
  color: #bba3c6;
  font-size: var(--text-body);
  line-height: var(--line-copy);
  margin-bottom: 17px;
}
.codex-article a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.codex-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.privacy-panel,
.fresh-start {
  padding: 27px;
}
.privacy-panel > .icon {
  color: #baa37e;
  margin-bottom: 21px;
}
.privacy-panel h2 {
  line-height: 2.1;
  color: #d9c5b1;
}
.privacy-panel p,
.fresh-start p {
  font-size: var(--text-body);
  line-height: var(--line-copy);
  color: #b69cc0;
  margin: 17px 0;
}
.privacy-panel > .button {
  width: 100%;
  margin-top: 12px;
  font-size: var(--text-body);
}
.fresh-start h3 {
  font: var(--text-caption)/2 var(--pixel);
  color: #d6aaa6;
}
.fresh-start .text-button {
  font-size: var(--text-small);
}
dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 1px solid #8c6d83;
  background: #211a29;
  box-shadow:
    0 0 0 4px #17131c,
    0 20px 100px #0009;
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.wide-modal {
  width: min(730px, calc(100% - 32px));
}
/* A compact dismissal bar leaves room for content when text is enlarged. */
#modal[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#modal > .modal-header {
  flex: none;
  position: static;
}
#modal > .modal-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #08060ec4;
  backdrop-filter: blur(4px);
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #261e2e;
  border-bottom: 1px solid #5f4566;
  padding: 16px 27px;
}
.modal-header .eyebrow {
  font-size: var(--text-caption);
  color: #b496bd;
  margin: 0;
}
.modal-heading {
  padding: 22px 27px;
  min-width: 0;
}
.modal-heading h2 {
  font: var(--text-body)/1.9 var(--pixel);
  color: #e4c8b2;
  overflow-wrap: anywhere;
}
.close-modal {
  flex-shrink: 0;
  background: #33243c;
  border-color: #6a4974;
  color: #b996c6;
}
.modal-body {
  padding: 23px 27px 27px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.modal-intro {
  font-size: var(--text-body);
  line-height: var(--line-copy);
  color: #c3a8cb;
  margin-bottom: 22px;
}
.form-section-title {
  font: var(--text-caption)/2 var(--pixel);
  color: #cfab87;
  padding: 0 0 14px;
  margin-top: 23px;
}
.form-section-title:first-child {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.field > span {
  font-size: var(--text-body);
  color: #d4b9dd;
}
.field > span > small {
  font-size: var(--text-caption);
  color: #ad94b9;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #62466f;
  background: #17131e;
  color: #e5cde7;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 0;
  font-size: var(--text-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  outline-offset: 2px;
  outline-width: 2px;
}
.field select {
  padding-right: 8px;
}
.field textarea {
  resize: vertical;
  min-height: 75px;
}
.field > small {
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  color: #ad94b7;
}
.reference-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b89bc0;
  background: #2b2232;
  padding: 10px 12px;
  font-size: var(--text-caption);
  border: 1px solid #4e3859;
  margin: 0 0 22px;
}
.form-note {
  font-size: var(--text-caption);
  color: #b092bc;
  line-height: var(--line-caption);
  margin: 0 0 17px;
}
.interest-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}
.interest-options label {
  position: relative;
  cursor: pointer;
}
.interest-options input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.interest-options label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #61456f;
  background: #251c2e;
  color: #ba9bc6;
  padding: 9px 11px;
  font-size: var(--text-small);
}
.interest-options input:checked + span {
  border-color: #c69975;
  background: #483039;
  color: #f0c199;
}
.interest-options input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.form-error {
  font-size: var(--text-body);
  line-height: var(--line-ui);
  color: #f0a39e;
  margin: 0;
  outline: 0;
}
.form-error:not(:empty) {
  padding: 12px;
  margin-top: 16px;
  border: 1px solid #95575e;
  background: #3b232d;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #4a3457;
  margin-top: 22px;
  padding-top: 22px;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ad95b7;
  font-size: var(--text-caption);
}
.modal-actions .button {
  font-size: var(--text-body);
}
.modal-actions .form-note {
  margin-bottom: 0;
  font-size: var(--text-caption);
}
.quest-plan-actions {
  border: 0;
  padding-top: 0;
  margin: 0 0 22px;
}
.quest-log-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.quest-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  color: #b092bc;
  font-size: var(--text-caption);
  letter-spacing: 0.5px;
  margin-bottom: 17px;
}
.quest-why {
  font-size: var(--text-body);
  color: #c8a7cd;
  line-height: var(--line-copy);
  margin-bottom: 15px;
}
.starter-detail {
  font-size: var(--text-caption);
  color: #b192bb;
  margin: 12px 0;
}
.detail-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 23px 0 27px;
}
.detail-progress .mini-progress {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: none;
  height: 6px;
}
.detail-progress > strong {
  font: var(--text-caption) var(--pixel);
  color: #cbae8b;
  min-width: 0;
  white-space: normal;
}
.backcast-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #563d63;
  padding-bottom: 16px;
  margin-bottom: 7px;
}
.backcast-title > h3 {
  font: var(--text-caption)/2 var(--pixel);
  color: #d3b2db;
}
.backcast-title > span {
  font-size: var(--text-caption);
  color: #b490c2;
}
.backcast {
  position: relative;
}
.backcast::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 38px;
  bottom: 36px;
  width: 1px;
  border-left: 1px dashed #6d4e7d;
  z-index: 0;
}
.backcast-step {
  display: flex;
  gap: 17px;
  align-items: center;
  position: relative;
  padding: 20px 0;
}
.backcast-step > div {
  flex: 1;
}
.step-date {
  font-size: var(--text-caption);
  letter-spacing: 0.6px;
  color: #b291c1;
  display: block;
  margin-bottom: 8px;
}
.step-date > b {
  margin: 0 5px;
  font-weight: 400;
}
.backcast-step strong {
  font-size: var(--text-body);
  line-height: var(--line-ui);
  display: block;
  color: #e1c8e5;
}
.backcast-step:last-child strong {
  color: #ecc096;
}
.backcast-step .step-check {
  position: relative;
  z-index: 1;
}
.backcast-step.done strong {
  color: #ab95b4;
  text-decoration: line-through;
}
.backcast-step.done .step-date {
  color: #a599ab;
}
.edit-step {
  width: 26px;
  height: 26px;
  background: none;
  border-color: #50395e;
  color: #b292c0;
}
.detail-actions .text-button {
  font-size: var(--text-small);
}
.buff-modal-icon {
  display: flex;
  justify-content: center;
  color: #c0bc8f;
  padding: 8px 0 25px;
}
.toast {
  position: fixed;
  left: calc(50% + 116px);
  bottom: 25px;
  transform: translate(-50%, 20px);
  z-index: 100;
  max-width: calc(100vw - 40px);
  padding: 15px 22px;
  background: #313629;
  border: 1px solid #9da87a;
  box-shadow: 4px 4px #0d0b13;
  color: #d3dfb8;
  font-size: var(--text-body);
  line-height: var(--line-ui);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.error-toast {
  background: #472632;
  border-color: #c77b89;
  color: #ffd2d7;
}
@keyframes candle-flicker {
  0%,
  100% {
    opacity: 0.85;
  }
  30% {
    opacity: 1;
  }
  65% {
    opacity: 0.7;
  }
}
@keyframes clock-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 42px;
  }
  .ttl-hero {
    min-height: 338px;
  }
  .hero-copy {
    padding-top: 35px;
  }
  .countdown strong {
    font-size: 3.25rem;
  }
  .hero-bottom {
    bottom: 23px;
  }
  .dashboard-columns {
    gap: 35px;
  }
  .quest-card.compact {
    min-height: 102px;
  }
  .buff-row {
    padding-top: 23px;
    padding-bottom: 23px;
  }
  .stat-grid {
    margin-bottom: 35px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 208px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    font-size: var(--text-body);
    gap: 10px;
    margin-left: 8px;
    margin-right: 5px;
  }
  .brand-skull {
    width: 32px;
    height: 32px;
  }
  .brand-tagline {
    font-size: var(--text-caption);
  }
  .workspace {
    margin-left: 208px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 28px 28px 0;
  }
  .stat-card {
    gap: 12px;
    padding: 15px 13px;
  }
  .stat-card small {
    display: block;
    margin: 6px 0 0;
    font-size: var(--text-caption);
  }
  .stat-card > div > span {
    font-size: var(--text-caption);
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
    gap: 23px;
  }
  .section-top h2 {
    font-size: var(--text-caption);
    gap: 8px;
  }
  .quest-date {
    font-size: var(--text-caption);
  }
  .compact .mini-progress {
    max-width: 47px;
  }
  .compact .quest-body > strong {
    font-size: var(--text-body);
  }
  .compact .quest-art {
    width: 41px;
    height: 46px;
  }
  .quest-card.compact {
    gap: 11px;
    padding: 13px 12px;
  }
  .buff-row {
    padding: 19px 13px;
    gap: 11px;
  }
  .buff-row strong {
    font-size: var(--text-small);
  }
  .buff-row small {
    font-size: var(--text-caption);
  }
  .buff-icon {
    width: 33px;
  }
  .quest-list {
    grid-template-columns: 1fr;
  }
  .buff-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .codex-layout {
    grid-template-columns: 1.5fr 1fr;
  }
  .horizon-detail {
    padding: 23px;
  }
  .hourglass-layout {
    grid-template-columns: 1.2fr 1fr;
  }
  .year-panel {
    padding: 23px;
  }
  .year-grid {
    gap: 8px;
  }
  .toast {
    left: calc(50% + 104px);
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 188px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    font-size: var(--text-body);
    margin-bottom: 43px;
  }
  .brand-tagline {
    font-size: var(--text-caption);
    letter-spacing: 0.5px;
  }
  .nav-item {
    font-size: var(--text-body);
    gap: 10px;
    padding: 10px 12px;
  }
  .nav-label {
    font-size: var(--text-caption);
    padding-left: 12px;
    letter-spacing: 1px;
  }
  .workspace {
    margin-left: 188px;
  }
  .topbar {
    height: 64px;
    padding: 0 23px;
  }
  .breadcrumb {
    font-size: var(--text-caption);
    gap: 11px;
  }
  .status-text {
    margin-right: 8px;
    font-size: var(--text-caption);
  }
  .character-button {
    font-size: var(--text-body);
    padding: 6px 8px;
  }
  main {
    padding: 25px 23px 0;
  }
  h1 {
    font-size: 1.375rem;
  }
  .eyebrow {
    font-size: var(--text-caption);
  }
  .subheading {
    font-size: var(--text-body);
  }
  .page-heading > .button {
    font-size: var(--text-body);
    padding: 11px 12px;
    gap: 9px;
  }
  .ttl-hero {
    min-height: 300px;
  }
  .hero-copy {
    padding: 25px 23px 95px;
  }
  .hero-kicker {
    font-size: var(--text-caption);
    letter-spacing: 1px;
  }
  .countdown {
    gap: 20px;
    margin-top: 23px;
  }
  .countdown strong {
    font-size: 2.25rem;
  }
  .hero-description {
    font-size: var(--text-small);
    max-width: 290px;
  }
  .hero-chip {
    font-size: var(--text-caption);
    right: 14px;
    top: 14px;
  }
  .hero-bottom {
    left: 23px;
    right: 23px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .compact .mini-progress {
    max-width: 110px;
  }
  .compact .quest-art {
    width: 47px;
    height: 50px;
  }
  .compact .quest-body > strong {
    font-size: var(--text-body);
  }
  .quest-date {
    font-size: var(--text-caption);
  }
  .quest-card.compact {
    padding: 15px;
    gap: 16px;
  }
  .buff-row {
    padding: 19px;
  }
  .buff-row strong {
    font-size: var(--text-body);
  }
  .buff-row small {
    font-size: var(--text-small);
  }
  .section-top h2 {
    font-size: var(--text-caption);
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    gap: 9px;
  }
  .stat-card > .icon {
    width: 20px;
    height: 20px;
  }
  .stat-card strong {
    font-size: var(--text-body);
  }
  .stat-card > div > span {
    font-size: var(--text-caption);
    letter-spacing: 0.6px;
  }
  .reaper-note {
    padding: 22px 13px 0;
  }
  .idea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .idea-grid .idea-card:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .next-grid {
    grid-template-columns: 1fr;
  }
  .main-footer {
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding-bottom: 22px;
  }
  .quest-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .starter-strip {
    flex-wrap: wrap;
  }
  .buff-cards {
    grid-template-columns: 1fr;
  }
  .buff-card > p:not(.eyebrow) {
    min-height: 0;
  }
  .apothecary-banner {
    padding: 24px;
    gap: 20px;
  }
  .apothecary-banner h2 {
    font-size: var(--text-small);
  }
  .pixel-spark {
    display: none;
  }
  .hourglass-layout,
  .codex-layout {
    grid-template-columns: 1fr;
  }
  .horizon-detail dl {
    margin: 18px 0;
  }
  .horizon-number {
    font-size: 1.875rem;
  }
  .codex-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .year-grid {
    grid-template-columns: repeat(14, 1fr);
  }
  .toast {
    left: calc(50% + 94px);
  }
}
@media (max-width: 1000px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 18px 17px 0;
    border-right: 0;
    border-bottom: 1px solid #3b2d45;
    display: block;
  }
  .brand {
    font-size: var(--text-body);
    line-height: 1.8;
    margin: 0 0 17px 4px;
    gap: 12px;
    width: max-content;
  }
  .brand br {
    display: none;
  }
  .brand br::after {
    content: " ";
  }
  .brand > span {
    display: flex;
    gap: 11px;
    align-items: center;
    letter-spacing: 1px;
  }
  .brand-tagline {
    display: none;
  }
  .brand-skull {
    width: 28px;
    height: 28px;
  }
  .sidebar > .nav-label,
  .sidebar-rule,
  .sidebar-bottom,
  .sidebar > nav:last-of-type {
    display: none;
  }
  .sidebar > nav:first-of-type {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .nav-item {
    padding: 9px 6px 13px;
    min-height: 48px;
    font-size: var(--text-body);
    gap: 7px;
    justify-content: center;
    border: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-item .icon {
    width: 14px;
    height: 14px;
  }
  .nav-item.active {
    background: none;
    border-color: var(--orange);
  }
  .nav-item.active::before {
    display: none;
  }
  .nav-count {
    font-size: var(--text-caption);
    line-height: var(--line-caption);
    margin-left: 0;
    padding: 0 3px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 45px;
    padding: 0 21px;
  }
  .breadcrumb {
    font-size: var(--text-caption);
    gap: 9px;
  }
  .topbar-right {
    gap: 6px;
  }
  .status-text {
    font-size: var(--text-caption);
    margin: 0;
  }
  .character-button {
    margin-left: 7px;
    padding: 4px 7px;
    font-size: var(--text-body);
  }
  .character-button .icon {
    width: 13px;
    height: 13px;
  }
  main {
    padding: 23px 21px 0;
  }
  .page-heading {
    gap: 17px;
    margin-bottom: 23px;
    align-items: center;
  }
  .eyebrow {
    font-size: var(--text-caption);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }
  h1 {
    font-size: 1.375rem;
    letter-spacing: -0.7px;
    line-height: 1.8;
  }
  .subheading {
    font-size: var(--text-small);
    margin-top: 7px;
    line-height: var(--line-copy);
  }
  .page-heading > .button {
    min-height: 38px;
    padding: 10px;
    font-size: var(--text-body);
    gap: 7px;
  }
  .page-heading > .button .icon {
    width: 10px;
    height: 10px;
  }
  .ttl-hero {
    min-height: 305px;
  }
  .hero-copy {
    padding: 25px 20px 95px;
    max-width: 100%;
  }
  .hero-art {
    background-position: 65% center;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #18141de8 0%, #18141dc9 43%, #18141d45 100%),
      linear-gradient(0deg, #17141cf5 0%, #17141c00 70%);
  }
  .hero-kicker {
    font-size: var(--text-caption);
    letter-spacing: 0.7px;
    gap: 7px;
    max-width: 75%;
    line-height: 1.8;
  }
  .hero-kicker > .icon {
    width: 12px;
    height: 12px;
  }
  .countdown {
    gap: 19px;
    margin-top: 22px;
  }
  .countdown strong {
    font-size: 2.3125rem;
  }
  .countdown > div {
    gap: 6px;
  }
  .countdown > div > span {
    font-size: var(--text-caption);
  }
  .countdown > b {
    font-size: 1.75rem;
    line-height: 2;
  }
  .countdown .countdown-skull {
    margin-left: 0;
    opacity: 0.7;
  }
  .hero-description {
    font-size: var(--text-caption);
    margin-top: 18px;
    max-width: 90%;
  }
  .hero-link {
    font-size: var(--text-small);
    margin-top: 14px;
  }
  .hero-chip {
    font-size: var(--text-caption);
    letter-spacing: 0.5px;
    right: 10px;
    top: 12px;
    padding: 3px 4px;
  }
  .hero-bottom {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .life-bar-top {
    font-size: var(--text-caption);
    letter-spacing: 0.7px;
  }
  .life-bar-labels {
    font-size: var(--text-caption);
  }
  .stat-grid {
    gap: 8px;
    margin: 18px 0 26px;
  }
  .stat-card {
    padding: 13px 9px;
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
    min-height: 110px;
  }
  .stat-card > div > span {
    font-size: var(--text-caption);
    letter-spacing: 0.3px;
    margin-bottom: 7px;
    white-space: nowrap;
  }
  .stat-card strong {
    font-size: var(--text-body);
  }
  .stat-card small {
    font-size: var(--text-caption);
    line-height: var(--line-caption);
    white-space: normal;
    margin-top: 7px;
  }
  .stat-card > .icon {
    width: 18px;
    height: 18px;
  }
  .dashboard-columns {
    gap: 26px;
  }
  .section-top {
    gap: 12px;
  }
  .section-top h2 {
    font-size: var(--text-caption);
    gap: 8px;
  }
  .section-top h2 .icon {
    width: 15px;
    height: 15px;
  }
  .section-top p {
    font-size: var(--text-caption);
    margin-top: 7px;
  }
  .section-top .text-link {
    font-size: var(--text-caption);
    gap: 5px;
  }
  .quest-card.compact {
    padding: 13px 12px;
    gap: 12px;
    min-height: 97px;
  }
  .compact .quest-art {
    width: 41px;
    height: 47px;
  }
  .compact .quest-body > strong {
    font-size: var(--text-body);
  }
  .category {
    font-size: var(--text-caption);
  }
  .starter-label {
    font-size: var(--text-caption);
    letter-spacing: 0.5px;
  }
  .quest-meta {
    gap: 7px;
  }
  .quest-date {
    font-size: var(--text-caption);
    letter-spacing: 0;
  }
  .quest-progress-line {
    gap: 6px;
    font-size: var(--text-caption);
  }
  .compact .mini-progress {
    max-width: 60px;
  }
  .quest-card-arrow > .icon {
    width: 10px;
    height: 10px;
  }
  .quest-card-arrow {
    margin: 0;
  }
  .buff-row {
    padding: 18px 15px;
    gap: 12px;
  }
  .buff-row strong {
    font-size: var(--text-body);
  }
  .buff-row small {
    font-size: var(--text-caption);
  }
  .buff-label {
    font-size: var(--text-caption);
  }
  .buff-icon {
    width: 35px;
  }
  .reaper-note {
    padding-bottom: 3px;
  }
  .next-section {
    margin-top: 25px;
  }
  .next-card {
    padding: 15px 12px;
  }
  .next-card strong {
    font-size: var(--text-small);
  }
  .next-card span {
    font-size: var(--text-caption);
  }
  .main-footer {
    font-size: var(--text-caption);
    letter-spacing: 0.3px;
    margin-top: 28px;
  }
  .main-footer a {
    font-size: var(--text-caption);
  }
  .main-footer > span {
    gap: 6px;
  }
  .filter-tabs {
    width: 100%;
    gap: 8px;
  }
  .filter-tabs button {
    flex: 1;
    font-size: var(--text-small);
    padding: 10px 5px;
  }
  .budget-note {
    font-size: var(--text-caption);
  }
  .starter-strip {
    font-size: var(--text-caption);
    padding: 12px;
    line-height: var(--line-caption);
  }
  .starter-strip .text-button {
    font-size: var(--text-body);
  }
  .quest-card {
    padding: 16px 13px;
    gap: 14px;
  }
  .quest-art {
    width: 46px;
    height: 50px;
  }
  .quest-body > strong {
    font-size: var(--text-body);
  }
  .quest-list .quest-card {
    min-height: 109px;
  }
  .recommendations {
    margin-top: 31px;
  }
  .recommendations .section-top {
    align-items: flex-start;
  }
  .recommendations .section-top > .text-button {
    font-size: var(--text-body);
    max-width: 100px;
    text-align: right;
  }
  .idea-grid {
    gap: 13px;
    grid-template-columns: 1fr 1fr;
  }
  .idea-card {
    padding: 17px 14px;
    min-height: 245px;
  }
  .idea-top {
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .idea-top > .icon {
    width: 21px;
    height: 21px;
  }
  .idea-top .category {
    font-size: var(--text-caption);
  }
  .idea-card h3 {
    font-size: var(--text-body);
    line-height: var(--line-ui);
  }
  .idea-card p {
    font-size: var(--text-small);
    line-height: var(--line-copy);
    margin-bottom: 18px;
  }
  .idea-bottom {
    gap: 7px;
  }
  .idea-bottom > span {
    font-size: var(--text-caption);
    line-height: var(--line-caption);
  }
  .idea-bottom > .icon-button {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  .idea-grid .idea-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .apothecary-banner {
    padding: 22px 18px;
    gap: 17px;
  }
  .apothecary-banner > .icon {
    width: 32px;
    height: 32px;
  }
  .apothecary-banner h2 {
    font-size: var(--text-caption);
    line-height: 2.2;
  }
  .apothecary-banner p {
    font-size: var(--text-small);
  }
  .buff-card {
    padding: 23px 21px;
  }
  .buff-card > h2 {
    font-size: var(--text-lead);
  }
  .buff-card > p:not(.eyebrow) {
    font-size: var(--text-body);
  }
  .info-strip,
  .save-warning {
    font-size: var(--text-small);
    align-items: flex-start;
    padding: 15px;
    gap: 9px;
  }
  .year-panel {
    padding: 23px 19px;
  }
  .year-panel .section-top {
    flex-wrap: wrap;
  }
  .year-panel .section-top h2 {
    font-size: var(--text-caption);
  }
  .year-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
  }
  .year-legend {
    font-size: var(--text-caption);
    gap: 13px;
  }
  .hourglass-quote {
    font-size: var(--text-body);
  }
  .horizon-detail {
    padding: 24px 21px;
  }
  .horizon-detail dt {
    font-size: var(--text-small);
  }
  .horizon-detail dd {
    font-size: var(--text-small);
  }
  .codex-article {
    padding: 24px 21px;
  }
  .codex-article h2 {
    font-size: var(--text-caption);
    gap: 10px;
  }
  .codex-article p {
    font-size: var(--text-body);
    line-height: var(--line-copy);
  }
  .codex-side {
    display: flex;
  }
  .privacy-panel,
  .fresh-start {
    padding: 25px 22px;
  }
  .privacy-panel > .button {
    min-height: 45px;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-heading h2 {
    font-size: var(--text-small);
    line-height: 2;
  }
  .modal-body,
  .modal-heading {
    padding: 21px 20px;
  }
  .modal-intro {
    font-size: var(--text-body);
  }
  .form-grid {
    gap: 0 15px;
  }
  .field > span {
    font-size: var(--text-small);
  }
  .field input,
  .field select,
  .field textarea {
    font-size: var(--text-body);
    min-height: 43px;
    padding: 10px;
  }
  .field > small {
    font-size: var(--text-caption);
  }
  .form-section-title {
    font-size: var(--text-caption);
  }
  .modal-actions {
    gap: 15px;
    flex-wrap: wrap;
  }
  .modal-actions > .button {
    font-size: var(--text-body);
    flex: 1;
    min-height: 43px;
  }
  .privacy-note {
    font-size: var(--text-caption);
  }
  .interest-options {
    gap: 7px;
  }
  .interest-options label > span {
    font-size: var(--text-caption);
    padding: 8px;
    gap: 6px;
  }
  .interest-options .icon {
    width: 12px;
    height: 12px;
  }
  .backcast-title {
    gap: 10px;
    flex-wrap: wrap;
  }
  .backcast-title > h3 {
    font-size: var(--text-caption);
  }
  .backcast-title > span {
    font-size: var(--text-caption);
  }
  .backcast-step {
    gap: 12px;
  }
  .backcast-step strong {
    font-size: var(--text-body);
  }
  .step-date {
    font-size: var(--text-caption);
    line-height: var(--line-caption);
  }
  .quest-why {
    font-size: var(--text-body);
  }
  .toast {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 30px);
    bottom: 20px;
    font-size: var(--text-body);
    padding: 13px 17px;
  }
}
@media (max-width: 380px) {
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .breadcrumb > .slash {
    display: none;
  }
  h1 {
    font-size: var(--text-lead);
  }
  .page-heading > .button {
    font-size: var(--text-body);
    padding: 8px;
    gap: 5px;
  }
  .nav-item {
    font-size: var(--text-body);
    gap: 5px;
  }
  .nav-item .icon {
    width: 12px;
    height: 12px;
  }
  .hero-copy {
    padding-left: 17px;
  }
  .countdown {
    gap: 17px;
  }
  .countdown strong {
    font-size: 2.125rem;
  }
  .hero-kicker {
    font-size: var(--text-caption);
  }
  .stat-card > div > span {
    font-size: var(--text-caption);
  }
  .stat-card small {
    font-size: var(--text-caption);
  }
  .stat-card strong {
    font-size: var(--text-body);
  }
  .compact .quest-art {
    width: 34px;
    height: 42px;
  }
  .compact .quest-body > strong {
    font-size: var(--text-small);
  }
  .compact .mini-progress {
    max-width: 40px;
  }
  .quest-date {
    font-size: var(--text-caption);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .year-grid {
    gap: 6px;
  }
  .year-legend {
    font-size: var(--text-caption);
  }
  .section-top h2 {
    font-size: var(--text-caption);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1000px) {
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > div {
    flex: 1 1 200px;
  }
  .page-heading > .button {
    flex-shrink: 0;
  }
}

/* The living catalogue, progressive profile and Death's administrative office. */
.hero-reference {
  color: #c6b2cc;
  font-size: var(--text-small);
  margin-top: 8px;
}
.refinement-banner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
  margin: 23px 0;
  border-color: #614a68;
  background: linear-gradient(115deg, #2a2134, #211e2b);
}
.refinement-emblem {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--orange);
  border: 1px solid #66516f;
  background: #1b1723;
}
.refinement-banner h2 {
  font: bold var(--text-lead)/1.5 var(--mono);
  color: var(--ink);
  margin: 5px 0;
}
.refinement-banner p:not(.eyebrow) {
  font-size: var(--text-body);
  color: var(--muted);
}
.refinement-banner .eyebrow {
  font-size: var(--text-caption);
  color: var(--orange);
}
.refinement-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.refinement-actions .button,
.refinement-banner > .button {
  font-size: var(--text-body);
}
.coverage-note {
  display: block;
  color: var(--faint);
  font-size: var(--text-small);
  margin-top: 3px;
}
.reaper-sprite {
  display: block;
  image-rendering: pixelated;
  overflow: visible;
  flex-shrink: 0;
}
.reaper-small {
  width: 64px;
  height: 80px;
}
.reaper-tiny {
  width: 40px;
  height: 50px;
}
.reaper-large {
  width: 192px;
  height: 240px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px #77528544);
}
.reaper-float {
  animation: reaper-hover 3s steps(3, end) infinite;
  transform-origin: 32px 65px;
}
.reaper-eyes {
  animation: reaper-blink 7s steps(1, end) infinite;
}
.reaper-shadow {
  animation: reaper-shadow 3s steps(3, end) infinite;
  transform-origin: 32px 76px;
}
@keyframes reaper-hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes reaper-blink {
  0%,
  46%,
  50%,
  100% {
    opacity: 1;
  }
  47%,
  49% {
    opacity: 0.1;
  }
}
@keyframes reaper-shadow {
  0%,
  100% {
    opacity: 0.8;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleX(0.82);
  }
}
.library-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 22px;
  padding: 22px 25px;
  margin-bottom: 25px;
  background: #262030;
}
.library-intro > div {
  min-width: 0;
}
.library-intro > a {
  grid-column: 2;
  justify-self: start;
  min-width: 0;
}
.library-intro strong {
  color: #e2d0e5;
  font-size: var(--text-lead);
}
.library-intro p {
  color: var(--muted);
  font-size: var(--text-body);
  margin-top: 4px;
}
.library-emblem {
  color: var(--orange);
}
.library-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 1.7fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}
.library-filter-fields {
  display: contents;
}
.library-filter-fields[hidden] {
  display: none;
}
.library-filters-toggle {
  display: none;
}
.library-controls .library-selects {
  grid-column: 2;
}
.library-controls .library-category-tabs {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.library-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.library-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #9d7456;
  background: #3a2b34;
  color: #efd8bc;
  font-size: var(--text-small);
  text-align: left;
}
.library-filter-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.library-filter-chip > .icon {
  flex: none;
}
.library-active-filters > .text-button {
  min-height: 44px;
  max-width: 100%;
}
.catalogue-search {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
  gap: 8px;
}
.catalogue-search > span {
  font-size: var(--text-body);
  color: var(--muted);
}
.catalogue-search .icon {
  color: var(--orange);
  margin-right: 5px;
}
.catalogue-search input {
  background: #18151f;
  color: var(--ink);
  border: 1px solid var(--border);
  min-height: 44px;
  padding: 11px 13px;
  width: 100%;
  border-radius: 0;
}
.library-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(95px, 1fr));
  gap: 10px;
  flex: 1.7;
}
.library-selects .field {
  margin: 0;
}
.library-selects .field > span {
  font-size: var(--text-small);
}
.library-selects select {
  padding: 10px 8px;
  font-size: var(--text-body);
  min-height: 44px;
}
.library-category-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.library-category-tabs button {
  border: 1px solid var(--border);
  color: var(--muted);
  background: #211b29;
  padding: 8px 13px;
  font-size: var(--text-body);
}
.library-category-tabs button.selected {
  color: #efd8bc;
  background: #3a2b34;
  border-color: #9d7456;
}
.library-category-tabs button:hover {
  border-color: #9d7456;
}
.library-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: var(--text-small);
}
.library-results-heading > span {
  letter-spacing: 1px;
}
.catalogue-card {
  min-width: 0;
}
.quest-title-button {
  display: block;
  min-height: 44px;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  padding: 0;
  width: 100%;
}
.quest-title-button:hover h3 {
  color: var(--orange);
}
.guide-footer-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.guide-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.buff-card-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.catalogue-card p {
  margin-bottom: 15px;
}
.idea-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: var(--text-caption);
  color: #baa5c5;
  margin: auto 0 13px;
}
.idea-matches span::before {
  content: "· ";
  color: var(--orange);
}
.catalogue-timing {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid #3c3047;
  margin-top: auto;
}
.catalogue-timing strong {
  font-size: var(--text-body);
  color: #eadbcd;
}
.catalogue-timing > span {
  font-size: var(--text-body);
  color: var(--muted);
}
.catalogue-timing small {
  font-size: var(--text-caption);
  color: #a797b2;
  letter-spacing: 0.5px;
  margin-top: 5px;
}
.catalogue-card .idea-bottom {
  padding-top: 8px;
  border-top: 1px solid #3c3047;
  margin-top: 0;
}
.catalogue-card .idea-bottom .fits-now {
  color: var(--green);
}
.library-grid > .empty-state {
  grid-column: 1 / -1;
}
.timing-panel {
  border: 1px solid #51405b;
  border-left: 3px solid var(--purple);
  padding: 18px 20px;
  background: #251f30;
  margin: 20px 0;
}
.timing-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.timing-panel-top strong {
  font-size: var(--text-lead);
  color: #efddc6;
}
.timing-panel p {
  font-size: var(--text-body);
  color: #c0afca;
  margin: 12px 0;
  line-height: var(--line-copy);
}
.timing-panel > small {
  display: block;
  font-size: var(--text-caption);
  color: var(--faint);
  margin-top: 10px;
}
.source-link {
  font-size: var(--text-body);
  overflow-wrap: anywhere;
}
.quest-plan-preview {
  padding: 6px 0 12px;
}
.quest-plan-preview h3 {
  font: var(--text-caption)/1.8 var(--pixel);
  color: var(--purple);
}
.quest-plan-preview > p {
  color: var(--muted);
  font-size: var(--text-body);
  margin: 10px 0;
}
.quest-plan-preview ol {
  padding-left: 22px;
  color: var(--ink);
  line-height: var(--line-copy);
}
.quest-plan-preview li {
  padding: 7px 0 7px 6px;
  font-size: var(--text-body);
}
.question-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--text-caption);
  margin-bottom: 22px;
}
.question-title {
  font: bold 1.375rem/1.5 var(--mono);
  margin-bottom: 10px;
  color: #ebdce5;
}
.refine-modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.refine-modal-actions > .text-button {
  margin-right: auto;
}
.refine-modal-actions .button {
  font-size: var(--text-body);
}
.onboarding-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: var(--text-body);
  margin-bottom: 20px;
}
.profile-details {
  border-top: 1px solid var(--border);
  padding: 17px 0 0;
  margin-top: 20px;
}
.profile-details summary {
  cursor: pointer;
  color: #ccb5d5;
  font-weight: bold;
  font-size: var(--text-body);
}
.profile-details[open] summary {
  margin-bottom: 20px;
}
.profile-answer {
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid #352d3e;
}
.profile-answer > strong {
  font-size: var(--text-body);
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.expanded-buffs .buff-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.expanded-buffs .buff-card h2 {
  min-height: auto;
  font: bold 1.375rem/1.45 var(--mono);
  margin: 8px 0 12px;
}
.expanded-buffs .buff-card > p:not(.eyebrow) {
  font-size: var(--text-body);
  min-height: 0;
}
.buff-time {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.buff-time strong {
  font-size: var(--text-body);
  color: var(--orange);
}
.buff-time span {
  font-size: var(--text-small);
  color: var(--muted);
}
.match-reason {
  color: #a9b995 !important;
  font-size: var(--text-small) !important;
  margin: 12px 0 !important;
}
.buff-card-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 7px;
}
.buff-card-footer .button {
  width: auto;
  font-size: var(--text-body);
  min-height: 36px;
}
.buff-card-footer .text-button {
  border: none;
  padding: 0;
  background: none;
  font: bold var(--text-small) var(--mono);
  color: #baa1c8;
}
.survival-section {
  padding: 28px;
  margin-top: 26px;
}
.survival-bars {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 15px 0 22px;
}
.survival-bars > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 45px;
  gap: 15px;
  align-items: center;
  font-size: var(--text-body);
}
.survival-bars strong {
  text-align: right;
  color: var(--orange);
}
.survival-track {
  height: 10px;
  background: #14101c;
  border: 1px solid #493751;
}
.survival-track i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #a185b4 0 7px, #6f577d 7px 9px);
}
.estimate-history {
  padding: 25px 28px;
  margin-top: 24px;
}
.estimate-history h2 {
  font: var(--text-small)/1.9 var(--pixel);
  color: var(--purple);
}
.estimate-history > p {
  font-size: var(--text-body);
  color: var(--muted);
  margin: 12px 0;
}
.estimate-history > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px;
  font-size: var(--text-body);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.estimate-history strong {
  color: var(--orange);
}
.death-chamber {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 35px;
  padding: 30px 45px 25px 25px;
  background:
    radial-gradient(ellipse at 24% 40%, #47305377, transparent 55%),
    linear-gradient(125deg, #221a31, #1c1724);
  border-color: #655070;
  overflow: hidden;
  position: relative;
}
.reaper-stage {
  position: relative;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.reaper-moon {
  position: absolute;
  width: 148px;
  height: 148px;
  background: #aa819a1c;
  top: 9px;
  clip-path: polygon(
    20% 0,
    80% 0,
    80% 10%,
    90% 10%,
    90% 20%,
    100% 20%,
    100% 80%,
    90% 80%,
    90% 90%,
    80% 90%,
    80% 100%,
    20% 100%,
    20% 90%,
    10% 90%,
    10% 80%,
    0 80%,
    0 20%,
    10% 20%,
    10% 10%,
    20% 10%
  );
  box-shadow: inset 0 0 0 12px #8c649c22;
}
.stage-plinth {
  position: absolute;
  bottom: 5px;
  height: 17px;
  width: 200px;
  background: #3e304c;
  border-top: 4px solid #6a517a;
  box-shadow: 0 7px 0 #17131d;
}
.stage-candle {
  position: absolute;
  bottom: 22px;
  color: var(--orange);
  z-index: 2;
}
.stage-candle.left {
  left: 11%;
}
.stage-candle.right {
  right: 10%;
}
.stage-star {
  position: absolute;
  color: #c09ac7;
  font-size: var(--text-lead);
}
.star-one {
  left: 17%;
  top: 42px;
}
.star-two {
  right: 13%;
  top: 74px;
  font-size: var(--text-body);
}
.death-dialogue .tag {
  font-size: var(--text-caption);
  color: #d7b8df;
  border-color: #5b4169;
}
.death-dialogue h2 {
  font: 1.375rem/1.9 var(--pixel);
  color: #ecd9bc;
  margin: 24px 0 18px;
}
.death-dialogue > p {
  font-size: var(--text-body);
  color: #bfaccb;
  line-height: var(--line-copy);
}
.death-dialogue .death-aside {
  font-size: var(--text-body);
  color: #ab95b2;
  margin-top: 18px;
  font-style: italic;
}
.deal-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px;
  padding: 24px 28px;
  margin-top: 25px;
  align-items: center;
}
.deal-picker .field {
  margin: 0;
}
.deal-picker > div p {
  color: var(--ink);
  margin: 7px 0;
  font-size: var(--text-body);
}
.deal-picker .eyebrow {
  font-size: var(--text-caption);
  color: var(--purple);
}
.deal-contracts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.deal-contract {
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #251e2b;
  position: relative;
  border-top: 3px solid #99724f;
}
.deal-contract > .eyebrow {
  color: var(--orange);
  font-size: var(--text-caption);
}
.deal-contract h2 {
  font: bold 1.375rem/1.5 var(--mono);
  color: #ebdac3;
  margin: 12px 0;
}
.deal-contract > p:not(.eyebrow) {
  font-size: var(--text-body);
  color: #bba8c4;
  min-height: 88px;
}
.deal-contract dl {
  margin: 20px 0;
  font-size: var(--text-body);
  flex: 1;
}
.deal-contract dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #4c3b51;
}
.deal-contract dt {
  color: var(--muted);
}
.deal-contract dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}
.deal-contract .button {
  width: 100%;
  font-size: var(--text-body);
}
.deal-footnote {
  color: var(--faint);
  font-size: var(--text-body);
  max-width: 800px;
  margin: 24px auto 0;
  text-align: center;
}
@media (max-width: 1250px) {
  .library-controls {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .library-controls .library-selects {
    grid-column: 1;
  }
  .library-selects {
    flex: auto;
  }
  .refinement-banner {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .refinement-actions,
  .refinement-banner > .button {
    grid-column: 2;
    justify-self: start;
    flex-direction: row;
  }
  .death-chamber {
    gap: 16px;
    padding-right: 28px;
  }
  .death-dialogue h2 {
    font-size: var(--text-body);
  }
}
@media (max-width: 900px) {
  .death-chamber {
    grid-template-columns: 1fr;
  }
  .reaper-stage {
    height: 240px;
  }
  .reaper-large {
    width: 168px;
    height: 210px;
  }
  .death-dialogue {
    text-align: center;
    padding: 10px 10px 22px;
  }
  .death-dialogue h2 {
    font-size: var(--text-lead);
  }
  .deal-picker {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 1000px) {
  .sidebar > nav:first-of-type {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sidebar .nav-item {
    min-width: 0;
    font-size: var(--text-body);
    padding: 7px 3px 10px;
  }
  .sidebar .nav-item span:not(.nav-count) {
    white-space: normal;
  }
  .refinement-banner {
    padding: 18px;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 14px;
  }
  .refinement-emblem {
    width: 44px;
    height: 44px;
  }
  .refinement-banner h2 {
    font-size: var(--text-body);
  }
  .refinement-banner .eyebrow {
    font: var(--text-caption)/var(--line-caption) var(--mono);
    letter-spacing: 0.5px;
  }
  .refinement-banner p:not(.eyebrow) {
    font-size: var(--text-body);
  }
  .refinement-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
  }
  .refinement-banner > .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .hero-reference {
    font-size: var(--text-caption);
    max-width: 230px;
  }
  .library-intro {
    padding: 18px;
    gap: 14px;
  }
  .library-intro strong {
    font-size: var(--text-body);
  }
  .library-intro .library-emblem .icon {
    width: 28px;
    height: 28px;
  }
  .library-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .library-results-heading {
    align-items: start;
  }
  .library-results-heading .text-button {
    text-align: right;
    font-size: var(--text-small);
  }
  .library-category-tabs {
    gap: 6px;
  }
  .library-category-tabs button {
    font-size: var(--text-small);
    padding: 7px 10px;
  }
  .library-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalogue-card {
    padding: 20px;
  }
  .catalogue-card .idea-top {
    margin-bottom: 14px;
  }
  .catalogue-card h3 {
    font-size: var(--text-lead);
  }
  .catalogue-card p {
    font-size: var(--text-body);
  }
  .catalogue-card .idea-bottom {
    min-height: 43px;
  }
  .expanded-buffs .buff-card {
    padding: 20px;
  }
  .expanded-buffs .buff-card h2 {
    font-size: 1.375rem;
  }
  .buff-card-footer .button {
    font-size: var(--text-body);
  }
  .timing-panel {
    padding: 15px;
  }
  .timing-panel-top {
    align-items: start;
  }
  .timing-panel-top .tag {
    white-space: normal;
    font-size: var(--text-caption);
  }
  .timing-panel p {
    font-size: var(--text-body);
  }
  .question-title {
    font-size: 1.375rem;
  }
  .question-progress {
    font-size: var(--text-caption);
  }
  .question-progress .tag {
    white-space: normal;
    font-size: var(--text-caption);
  }
  .refine-modal-actions {
    flex-wrap: wrap;
    justify-content: end;
  }
  .refine-modal-actions > .text-button {
    flex-basis: 100%;
    text-align: left;
  }
  .refine-modal-actions .button {
    padding: 12px 10px;
    font-size: var(--text-body);
  }
  .onboarding-intro {
    gap: 15px;
    font-size: var(--text-body);
  }
  .survival-section {
    padding: 20px;
  }
  .survival-bars > div {
    grid-template-columns: 85px minmax(0, 1fr) 30px;
    gap: 10px;
    font-size: var(--text-body);
  }
  .estimate-history {
    padding: 20px;
  }
  .estimate-history > div {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    font-size: var(--text-small);
  }
  .estimate-history > div > span:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .death-chamber {
    padding: 22px 15px;
    gap: 8px;
  }
  .death-dialogue {
    padding: 10px 0;
  }
  .death-dialogue h2 {
    font-size: var(--text-body);
    line-height: 2.1;
    margin: 18px 0;
  }
  .death-dialogue > p {
    font-size: var(--text-body);
  }
  .death-dialogue .tag {
    font-size: var(--text-caption);
    white-space: normal;
    line-height: var(--line-caption);
  }
  .deal-picker {
    padding: 20px;
  }
  .deal-picker select {
    font-size: var(--text-body);
    min-width: 0;
    width: 100%;
  }
  .deal-contracts {
    grid-template-columns: minmax(0, 1fr);
  }
  .deal-contract > p:not(.eyebrow) {
    min-height: 0;
  }
  .deal-contract dl > div {
    font-size: var(--text-body);
  }
}
@media (min-width: 721px) and (max-height: 820px) {
  .sidebar-bottom .candle-scene {
    display: none;
  }
  .sidebar .brand {
    margin-bottom: 25px;
  }
  .sidebar-bottom {
    padding-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reaper-float,
  .reaper-eyes,
  .reaper-shadow {
    animation: none;
  }
}
.planning-receipt {
  margin: 18px 0;
  padding: 12px 15px;
  background: #251f30;
  border: 1px solid #51405b;
}
.planning-receipt summary {
  color: var(--purple);
  cursor: pointer;
  font-size: var(--text-body);
}
.planning-receipt .timing-panel {
  margin-bottom: 0;
}
.quest-appearance {
  margin-bottom: 22px;
  border: 1px solid var(--border);
  background: #211b29;
  min-width: 0;
}
.quest-appearance > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 24px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--text-body);
}
.quest-appearance > summary::-webkit-details-marker {
  display: none;
}
.quest-appearance > summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.quest-appearance > summary small {
  color: var(--muted);
  font-size: var(--text-caption);
}
.quest-appearance > summary > .icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--purple);
}
.quest-appearance[open] > summary > .icon {
  transform: rotate(180deg);
}
.quest-appearance-fields {
  padding: 4px 16px 16px;
  min-width: 0;
}
.quest-appearance-fields .quest-icon-picker {
  margin-bottom: 0;
}
.global-refinement > .refinement-banner {
  margin-top: 0;
  margin-bottom: 28px;
}

/* Readable type at every viewport. Let content wrap instead of shrinking it. */
.brand {
  font-size: 0.9375rem;
  max-width: 100%;
}
.brand > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.nav-item > span:not(.nav-count),
.idea-card,
.refinement-banner h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-heading > .button {
  min-width: 0;
  max-width: 100%;
}
.countdown {
  flex-wrap: wrap;
}
.brand-tagline {
  white-space: normal;
  letter-spacing: 0;
  line-height: var(--line-caption);
}
.sidebar {
  overflow-y: auto;
}
.button {
  font-family: var(--mono);
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.button,
.icon-button,
.character-button,
.add-quest-line,
.library-category-tabs button {
  min-height: 44px;
}
.icon-button,
.step-check,
.edit-step {
  min-width: 44px;
  width: 44px;
  height: 44px;
}
.step-check {
  align-self: center;
}
.backcast::before {
  left: 22px;
}
.text-button,
.text-link {
  white-space: normal;
  overflow-wrap: anywhere;
}
.section-top,
.page-heading,
.quest-toolbar,
.backcast-title,
.life-bar-top,
.life-bar-labels,
.quest-progress-line,
.library-results-heading,
.buff-card-footer,
.refinement-actions,
.filter-tabs {
  flex-wrap: wrap;
}
.section-top > div,
.page-heading > div,
.buff-row > span:nth-child(2),
.next-card > div,
.backcast-step > div,
.death-dialogue {
  min-width: 0;
}
.section-top .text-link,
.stat-card strong,
.stat-card > div > span,
.tag,
.horizon-detail dd {
  white-space: normal;
}
.section-top h2,
h1,
.death-dialogue h2,
.backcast-step strong,
.deal-contract dd {
  overflow-wrap: anywhere;
}
.stat-card small {
  display: block;
  margin: 8px 0 0;
  line-height: var(--line-caption);
}
.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.idea-grid,
.quest-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}
.idea-grid .idea-card:last-child:nth-child(odd) {
  grid-column: auto;
}
.buff-card-footer .button,
.modal-actions .button,
.refine-modal-actions .button,
.page-heading > .button,
.refinement-banner .button,
.deal-contract .button {
  font-size: var(--text-small);
}
.field input,
.field select,
.field textarea,
.library-selects select,
.deal-picker select {
  font-size: var(--text-body);
  min-height: 48px;
}
.field input::placeholder,
.field textarea::placeholder,
.catalogue-search input::placeholder {
  color: var(--placeholder);
  font-size: var(--text-caption);
  line-height: var(--line-caption);
  opacity: 1;
}
.field input:focus::placeholder,
.field textarea:focus::placeholder,
.catalogue-search input:focus::placeholder {
  opacity: 0;
}
.eyebrow,
.field small,
.form-note,
.reference-note,
.coverage-note,
.hero-reference,
.timing-panel > small,
.deal-footnote {
  font-size: var(--text-caption);
  line-height: var(--line-caption);
}
.buff-card > p:not(.eyebrow),
.deal-contract > p:not(.eyebrow) {
  min-height: 0;
}
.horizon-detail dl > div,
.deal-contract dl > div {
  flex-wrap: wrap;
}
.horizon-detail dd,
.deal-contract dd {
  margin-left: auto;
}
.hero-copy {
  max-width: 70%;
  padding-bottom: 25px;
}
.hero-shade {
  background:
    linear-gradient(90deg, #17141cf7 0%, #17141ceb 70%, #17141c33 100%),
    linear-gradient(0deg, #17141cf5 0%, #17141c00 65%);
}
.hero-chip {
  position: relative;
  display: inline-block;
  top: auto;
  right: auto;
  margin: 0 30px 20px;
}
.hero-bottom {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0 30px 25px;
}
.hero-description,
.hero-reference {
  max-width: 44rem;
}
.life-bar-labels > span:nth-child(2) {
  margin-left: 0;
}
.life-bar-top,
.life-bar-labels {
  gap: 8px 16px;
}
.modal-content,
.modal-header > div,
.onboarding-intro > p {
  min-width: 0;
}
.modal-heading h2 {
  font-size: 1rem;
}
.onboarding-intro {
  align-items: start;
}
.survival-bars > div {
  grid-template-columns: auto minmax(30px, 1fr) auto;
}
.survival-bars > div > span:first-child {
  max-width: 8rem;
}
.main-footer > span {
  flex-wrap: wrap;
  justify-content: center;
}
.library-selects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1001px) {
  .sidebar {
    width: 264px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .workspace {
    margin-left: 264px;
  }
  .toast {
    left: calc(50% + 132px);
  }
  .topbar {
    min-height: 74px;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
@media (max-width: 1000px) {
  .sidebar .nav-item {
    font-size: var(--text-small);
    min-height: 52px;
    padding: 12px 6px;
  }
  .topbar {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .breadcrumb {
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }
  .character-button {
    font-size: var(--text-body);
  }
  .modal-header {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 100%;
    padding-bottom: 22px;
  }
  .hero-shade {
    background: #17141ce6;
  }
  .hero-chip {
    margin-left: 20px;
  }
  .hero-bottom {
    margin: 0 20px 22px;
  }
  .hero-kicker {
    max-width: none;
  }
  .refinement-banner h2 {
    font-size: var(--text-lead);
  }
  .toast {
    left: 50%;
  }
}
@media (max-width: 600px) {
  .sidebar > nav:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .breadcrumb > span:first-child,
  .breadcrumb > .slash {
    display: none;
  }
  .page-heading > div {
    flex-basis: 100%;
  }
  .brand {
    font-size: 0.875rem;
  }
  .sidebar .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  .section-top h2 {
    font-size: var(--text-caption);
  }
  .quest-list,
  .idea-grid,
  .library-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-selects {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-filters-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: #211b29;
    color: var(--ink);
    text-align: left;
  }
  .library-filters-toggle > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .library-filters-toggle strong {
    display: block;
    font-size: var(--text-body);
    line-height: var(--line-copy);
  }
  #library-filter-summary {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: var(--text-caption);
    line-height: var(--line-caption);
  }
  .library-filters-toggle > .icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--purple);
  }
  .library-filters-toggle[aria-expanded="true"] > .icon {
    transform: rotate(180deg);
  }
  .library-filter-fields {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    background: #211b29;
  }
  .quest-card-arrow {
    display: none;
  }
  .quest-list .quest-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .quest-card,
  .quest-card.compact {
    gap: 12px;
    align-items: start;
  }
  .quest-date {
    margin-left: 0;
    flex-basis: 100%;
  }
  .backcast-step {
    flex-wrap: wrap;
    align-items: start;
  }
  .backcast-step > div {
    flex-basis: calc(100% - 58px);
  }
  .backcast-step .edit-step {
    margin-left: 56px;
  }
  .refine-modal-actions > .button {
    flex: 1 1 100%;
  }
  .horizon-detail dd,
  .deal-contract dd {
    text-align: left;
    margin-left: 0;
    flex-basis: 100%;
  }
}
