/* The inventory highlight carries selection without a second arrow. */
.nav-current {
  display: none !important;
}
.navigation-toggle {
  display: grid;
  place-items: center;
}
.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
@media (min-width: 1100px) {
  .site-sidebar {
    width: 240px;
    transition:
      transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 180ms ease;
  }
  .sidebar-collapsed {
    --sidebar-width: 0px;
  }
  .sidebar-collapsed .site-sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }
}
.feed-sync[data-connection="live"] .feed-signal i {
  animation: wiki-bars 2200ms ease-in-out infinite;
  transform-origin: bottom;
}
.feed-sync[data-connection="live"] .feed-signal i:nth-child(2) {
  animation-delay: 180ms;
}
.feed-sync[data-connection="live"] .feed-signal i:nth-child(3) {
  animation-delay: 360ms;
}
.feed-sync[data-connection="live"] .feed-signal i:nth-child(4) {
  animation-delay: 540ms;
}
@keyframes wiki-bars {
  0%,
  100% {
    transform: scaleY(0.68);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.95;
  }
}

/* The Market desk resumes item research; aggregate analysis lives in Statistics. */
.market-desk {
  border-bottom: 1px solid var(--line);
  padding: 0 0 28px;
  margin-bottom: 34px;
  min-width: 0;
}
.market-desk[hidden] {
  display: none;
}
.desk-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}
.desk-heading h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
}
.desk-heading p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
  margin: 8px 0 0;
}
.desk-planner-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 18px;
  white-space: nowrap;
}
.desk-planner-link img {
  object-fit: contain;
  image-rendering: pixelated;
}
.desk-planner-link svg {
  width: 15px;
  height: 15px;
}
.desk-planner-link:hover {
  border-color: var(--secondary);
  color: var(--accent);
}
.desk-recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.desk-recent-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}
.desk-recent-heading button {
  font-size: 17px;
}
.desk-recent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.desk-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
}
.desk-item > img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}
.desk-item strong {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.desk-item > span > small {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}
.desk-item b {
  grid-column: 2;
  font-size: 25px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.desk-item b small {
  font-size: 16px;
  color: var(--muted);
  margin-left: 5px;
}
.desk-item:hover {
  border-color: var(--secondary);
}
.desk-empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.desk-empty img {
  flex-shrink: 0;
  image-rendering: pixelated;
}
.desk-empty strong {
  font-size: 23px;
  font-weight: 400;
}
.desk-empty p {
  margin: 7px 0 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
}

/* A supply list answers a different question from ranking or price comparison. */
.planner-intro {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 22px;
  margin-bottom: 25px;
}
.planner-intro h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 400;
}
.planner-intro p {
  margin: 9px 0 0;
  max-width: 65ch;
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}
.planner-intro > button {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 19px;
}
.planner-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.planner-toolbar label {
  font-size: 18px;
  color: var(--muted);
  min-width: 0;
}
.planner-toolbar input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
}
.planner-toolbar .gp-control {
  margin-top: 8px;
}
.planner-toolbar > button {
  margin-top: 29px;
  white-space: nowrap;
  font-size: 18px;
}
.planner-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 28px 0;
  gap: 22px;
  padding: 24px 0;
}
.planner-summary > div {
  min-width: 0;
}
.planner-summary span {
  display: block;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 10px;
}
.planner-summary strong {
  display: block;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.planner-summary small {
  color: var(--muted);
  font-size: 18px;
  margin-left: 5px;
}
.planner-table {
  min-width: 780px;
}
.planner-table input {
  width: 105px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  padding: 8px;
}
.planner-table .table-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.planner-table .table-item img {
  flex-shrink: 0;
}
.planner-empty {
  text-align: center;
  padding: 40px 18px;
}
.planner-empty[hidden] {
  display: none;
}
.planner-empty > img {
  object-fit: contain;
  image-rendering: pixelated;
}
.planner-empty h2 {
  font-size: 27px;
  font-weight: 400;
}
.planner-empty p {
  font-size: 19px;
  color: var(--muted);
}

/* Profile preview for signup and a distinct return gate for sign-in. */
.auth-layout {
  overflow: hidden;
}
.auth-story {
  background: var(--surface);
}
.auth-story h2 {
  font-size: clamp(35px, 4cqw, 52px);
  line-height: 1.1;
  margin-top: 26px;
}
.auth-story > p {
  font-size: 21px;
  line-height: 1.45;
  max-width: 36ch;
}
.auth-mark {
  font-size: 22px;
}
.auth-pass {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
#auth-pass-portrait .profile-portrait {
  width: 76px;
  height: 76px;
  font-size: 49px;
}
.auth-pass > strong {
  font-size: 29px;
  line-height: 1.3;
  margin-top: 15px;
  text-align: center;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-weight: 400;
}
.auth-pass > span {
  font-size: 18px;
  color: var(--muted);
  margin-top: 5px;
}
.auth-mark-choices {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 9px;
  margin-top: 22px;
}
.auth-mark-choices button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px;
}
.auth-mark-choices img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.auth-mark-choices [aria-pressed="true"] {
  border-color: var(--selection);
  background: var(--subtle);
}
.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  padding-top: 8px;
}
.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 18px;
}
.auth-benefits img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  image-rendering: pixelated;
}
.auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 62px 0;
}
.auth-gate img {
  image-rendering: pixelated;
  object-fit: contain;
}
.auth-gate > span {
  width: 55px;
  height: 1px;
  background: var(--line);
}
.auth-form-panel h1 {
  font-size: 36px;
  line-height: 1.2;
}
.auth-form-panel > p {
  font-size: 19px;
  line-height: 1.4;
}
.auth-game-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px !important;
}
.auth-completion {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  animation: auth-arrive 320ms ease-out;
}
.auth-completion-seal {
  position: relative;
  width: 91px;
  height: 91px;
  margin-bottom: 7px;
}
.auth-completion-seal .profile-portrait {
  width: 76px;
  height: 76px;
  font-size: 46px;
}
.auth-completion-seal > svg {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 39px;
  height: 39px;
  padding: 6px;
  background: var(--accent);
  color: var(--bg);
  border: 3px solid var(--surface);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.auth-completion-seal path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: auth-check 280ms 70ms ease-out forwards;
}
.auth-completion h1 {
  font-size: 34px;
  margin: 0;
}
.auth-completion p {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.auth-completion .primary-button {
  font-size: 20px;
  min-width: 165px;
}
.auth-complete .auth-gate > span {
  background: var(--accent);
  transition: background 160ms ease;
}
@keyframes auth-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes auth-check {
  to {
    stroke-dashoffset: 0;
  }
}

/* Intent-delayed item preview with exact quotes and observed history. */
.item-peek.gild-popover {
  width: 365px;
  padding: 19px;
  border: 1px solid var(--secondary);
  border-radius: 5px;
  background: var(--surface);
}
.peek-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.peek-heading img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.peek-heading strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.peek-heading span {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-top: 5px;
}
.peek-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 18px 0;
}
.peek-prices > div {
  min-width: 0;
}
.peek-prices > div:first-child {
  color: var(--accent);
}
.peek-prices > div:last-child {
  color: #d7ba83;
}
.peek-prices span {
  display: block;
  font-size: 17px;
}
.peek-prices strong {
  display: block;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 8px 0 5px;
  overflow-wrap: anywhere;
}
.peek-prices small {
  font-size: 15px;
  color: var(--muted);
}
.peek-prices strong small {
  margin-left: 5px;
}
.peek-facts {
  display: grid;
  gap: 8px;
  border-block: 1px solid var(--line);
  padding-block: 13px;
}
.peek-facts > span {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 17px;
  color: var(--muted);
}
.peek-facts strong {
  font-weight: 400;
  font-size: 19px;
  color: var(--text);
}
.peek-history {
  margin: 17px 0;
}
.peek-history > span {
  font-size: 16px;
  color: var(--muted);
}
.peek-history .mini-spark {
  display: block;
  width: 100%;
  height: 66px;
  margin-top: 9px;
}
.peek-no-history {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}
.peek-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 8px;
  align-items: stretch;
}
.peek-actions a,
.peek-actions > button {
  min-height: 38px;
  font-size: 17px;
  padding: 8px;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.peek-actions svg {
  width: 15px;
  height: 15px;
}
.peek-actions .icon-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 32px;
  height: auto;
}

/* Detailed chart controls are shared by item, history and comparison views. */
.chart-container {
  position: relative;
  touch-action: pan-y;
  user-select: none;
}
.chart-readout {
  position: absolute;
  z-index: 3;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 2px 8px #0002;
  pointer-events: none;
}
.chart-readout[hidden] {
  display: none;
}
.chart-readout > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
}
.chart-readout > div > span {
  min-width: 0;
}
.chart-readout strong {
  font-size: 20px;
  font-weight: 400;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.chart-readout small {
  font-size: 14px;
  color: var(--muted);
  margin-left: 4px;
}
.chart-readout .chart-readout-date {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.chart-readout button {
  pointer-events: auto;
  font-size: 24px;
  padding: 0 4px;
  line-height: 1;
}
.chart-workbench {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 18px 0 24px;
  background: var(--surface);
}
.chart-workbench > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  font-size: 20px;
  list-style: none;
  cursor: pointer;
}
.chart-workbench > summary::-webkit-details-marker {
  display: none;
}
.chart-workbench > summary::marker {
  content: "";
}
.chart-workbench > summary > svg {
  width: 17px;
  height: 17px;
}
.chart-workbench > summary > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
}
.chart-workbench-body {
  padding: 20px 16px 16px;
  border-top: 1px solid var(--line);
}
.chart-setting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.chart-setting-grid label,
.chart-date-range label {
  min-width: 0;
  color: var(--muted);
  font-size: 17px;
}
.chart-setting-grid input,
.chart-date-range input {
  display: block;
  margin-top: 8px;
  min-height: 40px;
  min-width: 0;
  width: 100%;
  font-size: 17px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
}
.chart-setting-grid .select-control,
.chart-setting-grid .gp-control {
  margin-top: 8px;
}
.chart-setting-grid .chart-grid-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
}
.chart-setting-grid input[type="checkbox"] {
  display: inline-block;
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: var(--accent);
  margin: 0;
}
.chart-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 15px;
  align-items: end;
  margin-top: 22px;
}
.chart-date-range > button {
  min-height: 40px;
  font-size: 18px;
  white-space: nowrap;
}
.chart-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 22px;
}
.chart-tool-actions > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  white-space: nowrap;
  min-height: 36px;
}
.chart-tool-actions svg {
  width: 15px;
  height: 15px;
}
.chart-interaction-help,
.chart-range-status {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 17px 0 0;
}
.chart-range-status {
  color: var(--text);
  margin-top: 10px;
}
.chart-focus-dialog {
  width: calc(100vw - 32px);
  max-width: 1600px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
}
.chart-focus-dialog::backdrop {
  background: #050905bb;
}
.chart-focus-dialog .dialog-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.chart-focus-dialog .dialog-header h2 {
  font-size: 26px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  margin: 0;
}
.chart-focus-body {
  padding: 24px;
}
.chart-focus-dialog .chart-container {
  height: 54dvh !important;
  min-height: 240px;
  max-height: 700px;
}
.chart-focus-dialog .chart-toolbar,
.chart-focus-dialog .history-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.chart-focus-dialog .history-controls {
  margin-top: 22px;
}
.chart-focus-dialog .chart-workbench {
  margin-bottom: 0;
}

@container workspace (max-width:760px) {
  .desk-heading,
  .planner-intro {
    flex-direction: column;
    gap: 17px;
  }
  .desk-recent {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
  .desk-item b {
    grid-column: 3;
    font-size: 22px;
  }
  .planner-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planner-toolbar > button {
    grid-column: 1 / -1;
    margin-top: 0;
    justify-self: start;
  }
  .planner-summary strong {
    font-size: 27px;
  }
  .chart-setting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-date-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-date-range > button {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width: 700px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-story {
    display: block;
    padding: 25px;
  }
  .auth-story h2 {
    font-size: 32px;
    margin-top: 16px;
  }
  .auth-story > p {
    font-size: 19px;
    max-width: none;
  }
  .auth-pass {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    column-gap: 16px;
    padding: 18px;
    margin-bottom: 14px;
  }
  #auth-pass-portrait .profile-portrait {
    width: 52px;
    height: 52px;
    font-size: 34px;
  }
  .auth-pass > strong {
    font-size: 24px;
    margin-top: 0;
    flex: 1;
    text-align: left;
  }
  .auth-pass > span {
    display: none;
  }
  .auth-mark-choices {
    width: 100%;
    margin-top: 6px;
  }
  .auth-benefits {
    gap: 12px 18px;
  }
  .auth-benefits span {
    font-size: 16px;
  }
  .auth-signin .auth-story {
    padding-bottom: 24px;
  }
  .auth-gate {
    display: none;
  }
  .auth-form-panel {
    padding: 26px;
  }
  .auth-form-panel h1 {
    font-size: 31px;
  }
  .auth-completion {
    min-height: 330px;
  }
  .chart-focus-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .chart-focus-body {
    padding: 16px;
  }
  .chart-focus-dialog .dialog-header {
    padding: 14px 16px;
  }
  .chart-focus-dialog .dialog-header h2 {
    font-size: 23px;
  }
  .chart-workbench > summary > span {
    display: none;
  }
  .chart-focus-dialog .chart-setting-grid,
  .chart-focus-dialog .chart-date-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-focus-dialog .chart-date-range > button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (max-width: 420px) {
  .chart-focus-dialog .chart-setting-grid,
  .chart-focus-dialog .chart-date-range {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container workspace (max-width:420px) {
  .desk-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .desk-item b {
    grid-column: 2;
  }
  .planner-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .planner-toolbar > button {
    grid-column: 1;
  }
  .planner-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-sidebar {
    transition: none;
  }
  .feed-sync[data-connection="live"] .feed-signal i {
    animation: none;
  }
  .auth-completion {
    animation: none;
  }
  .auth-completion-seal path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
:root[data-reduced-motion="true"] .site-sidebar {
  transition: none;
}
:root[data-reduced-motion="true"]
  .feed-sync[data-connection="live"]
  .feed-signal
  i,
:root[data-reduced-motion="true"] .auth-completion {
  animation: none;
}
:root[data-reduced-motion="true"] .auth-completion-seal path {
  animation: none;
  stroke-dashoffset: 0;
}

/* Item context stays visible through every comparison action. */
.comparison-current,
.comparison-source,
.item-menu-heading,
.limit-form-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.comparison-current {
  margin: 22px 0 14px;
}
.comparison-current img,
.comparison-source img,
.item-menu-heading img,
.limit-form-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 36px;
}
.comparison-current > span,
.comparison-source > span {
  min-width: 0;
  flex: 1;
}
.comparison-current strong,
.comparison-source strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.comparison-current small,
.comparison-source small {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-top: 5px;
}
.comparison-add-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  min-height: 41px;
  font-size: 18px;
}
.comparison-add-current:disabled {
  opacity: 1;
  color: var(--accent);
  border-color: var(--secondary);
  background: var(--bg);
}
.comparison-add-current svg {
  width: 17px;
  height: 17px;
}
.comparison-selection {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 10px;
}
.comparison-selection > div {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
}
.comparison-selection img,
.comparison-replacements img,
.comparison-search-selected img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}
.comparison-selection > div > span {
  flex: 1;
  min-width: 0;
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.comparison-selection > p {
  font-size: 17px;
  color: var(--muted);
  margin: 8px 0 16px;
}
.comparison-selection .icon-button {
  flex: 0 0 30px;
}
.comparison-builder-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.comparison-builder-actions button {
  width: 100%;
  min-height: 42px;
  font-size: 18px;
}
.compare-prompt .comparison-builder-actions #open-compare {
  justify-content: center;
}
#search-comparison-context {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
#search-comparison-context[hidden] {
  display: none;
}
.comparison-source .text-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  white-space: nowrap;
}
.comparison-source .text-button svg {
  width: 16px;
  height: 16px;
}
.comparison-search-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.comparison-search-selected > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 17px;
  max-width: 100%;
}
.comparison-search-selected > button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-search-selected > button > svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.comparison-search-selected > span {
  color: var(--muted);
  font-size: 17px;
}
.comparison-search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  font-size: 17px;
}
.comparison-search-footer button {
  font-size: 17px;
  min-height: 34px;
  padding: 8px 12px;
}
.comparison-replacements {
  display: grid;
  gap: 9px;
}
.comparison-replacements button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}
.comparison-replacements button > span {
  flex: 1;
  text-align: left;
}
.search-compare-state {
  display: grid;
  place-items: center;
  width: 25px;
  flex: 0 0 25px;
}
.search-compare-state svg {
  width: 17px;
  height: 17px;
}
.search-compare-state.is-added {
  color: var(--accent);
}
.command-result .command-price {
  margin-left: auto;
}
.item-menu-heading {
  padding: 8px 8px 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.item-menu-heading strong {
  font-size: 22px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.item-actions-menu .link-menu > button {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  line-height: 1.3;
  min-height: 44px;
}
.item-actions-menu img {
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}
.market-table thead [data-sort] > [data-icon] {
  display: inline-flex;
  width: 15px;
  height: 18px;
  flex: 0 0 15px;
  align-items: center;
}
.market-table thead [data-sort] > [data-icon] svg {
  width: 15px;
  height: 18px;
  margin: 0;
}
.market-table thead [data-sort].sorted > [data-icon] {
  color: var(--accent);
}
.peek-actions {
  grid-template-columns: minmax(0, 1fr) 38px 38px;
}
.peek-actions .icon-button {
  width: 38px;
}
.peek-actions .peek-watch.selected {
  color: var(--accent);
  border-color: var(--secondary);
}
.peek-watch.selected svg {
  fill: currentColor;
}
.planner-list-chooser {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 15px;
  margin-bottom: 20px;
}
.planner-list-chooser > label {
  display: block;
  min-width: 220px;
  max-width: 100%;
  font-size: 18px;
  color: var(--muted);
}
.planner-list-chooser .select-control {
  margin-top: 8px;
}
.planner-list-chooser > button {
  min-height: 40px;
  font-size: 18px;
}

/* One weighted surface with room for every item fact. */
.treemap-surface .map-tile-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}
.treemap-surface .map-tile-head {
  display: flex;
  align-items: center;
  min-height: 0;
}
.treemap-surface .map-tile-head strong {
  display: block;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.1;
}
.treemap-surface .map-tile-head img {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}
.treemap-surface .map-tile-price,
.treemap-surface .map-tile-volume {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2px;
}
.treemap-surface .map-tile-price strong,
.treemap-surface .map-tile-volume strong {
  font-size: 20px;
  line-height: 1.1;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.treemap-surface .map-tile[data-map-scale="lead"] {
  padding: clamp(20px, 2cqw, 38px);
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-body {
  gap: 18px;
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-head strong {
  font-size: 29px;
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-head img {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-change {
  font-size: 52px;
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-price strong,
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-volume strong {
  font-size: 30px;
}
.treemap-surface .map-tile[data-map-scale="medium"] .map-tile-change {
  font-size: 36px;
}

/* Buy limits uses manually recorded purchases and the actual published cap. */
.limit-form-item {
  margin-bottom: 22px;
}
.limit-form-item strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
}
.limit-form-item span {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  color: var(--muted);
}
.limit-status-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 24px;
  border-block: 1px solid var(--line);
  margin: 25px 0;
}
.limit-status-strip > img {
  image-rendering: pixelated;
  object-fit: contain;
}
.limit-status-strip > div {
  flex: 1;
  min-width: 0;
}
.limit-status-strip strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
}
.limit-status-strip span {
  display: block;
  font-size: 17px;
  color: var(--muted);
  margin-top: 5px;
}
.limit-status-strip > a {
  font-size: 18px;
}
.limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.limit-card {
  border: 1px solid var(--line);
  padding: 23px;
  background: var(--surface);
  border-radius: 4px;
  min-width: 0;
}
.limit-card > header {
  display: flex;
  align-items: start;
  gap: 10px;
}
.limit-card > header > a {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.limit-card > header img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}
.limit-card > header strong {
  font-size: 23px;
  line-height: 1.15;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.limit-card > header .icon-button {
  flex: 0 0 25px;
}
.limit-count {
  margin-top: 28px;
}
.limit-count > span {
  display: block;
  color: var(--muted);
  font-size: 17px;
}
.limit-count > strong {
  display: block;
  font-size: 41px;
  color: var(--accent);
  font-weight: 400;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.limit-count > small {
  font-size: 17px;
  color: var(--muted);
}
.limit-capacity {
  height: 5px;
  background: var(--line);
  margin: 20px 0;
  overflow: hidden;
}
.limit-capacity i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  transform-origin: left;
  transition: transform 200ms ease;
}
.limit-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.limit-time span {
  color: var(--muted);
  font-size: 19px;
}
.limit-time strong {
  font-size: 25px;
  font-weight: 400;
}
.limit-card > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  margin: 14px 0 20px;
}
.limit-card > .secondary-button {
  width: 100%;
  min-height: 40px;
  gap: 9px;
  font-size: 18px;
}
.limit-ready {
  border-color: var(--secondary);
}
.limit-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 45px 20px;
}
.limit-empty img {
  object-fit: contain;
  image-rendering: pixelated;
}
.limit-empty h2 {
  font-size: 29px;
  font-weight: 400;
}
.limit-empty p {
  font-size: 20px;
  color: var(--muted);
}

/* The preview displays the complete composed image at its natural ratio. */
.capture-dialog {
  width: min(1080px, calc(100vw - 24px));
  max-width: 1080px;
}
.capture-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.capture-actions > button,
.capture-actions > button:first-child {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 14px;
  text-align: left;
  padding: 17px;
  min-height: 78px;
}
.capture-actions > button > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}
.capture-actions > button > span {
  display: block;
  min-width: 0;
}
.capture-actions strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.capture-actions small {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 6px;
  opacity: 0.75;
}
@media (max-width: 600px) {
  .capture-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .capture-actions > button,
  .capture-actions > button:first-child {
    min-height: 66px;
    padding: 14px;
  }
  .comparison-source {
    flex-wrap: wrap;
  }
  .comparison-source > .text-button {
    margin-left: 48px;
  }
  .comparison-search-footer {
    align-items: start;
  }
  .comparison-search-footer > span {
    line-height: 1.3;
  }
  .limit-status-strip {
    flex-wrap: wrap;
  }
  .limit-status-strip > a {
    margin-left: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .limit-capacity i {
    transition: none;
  }
}
:root[data-reduced-motion="true"] .limit-capacity i {
  transition: none;
}
.search-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
}
.search-dialog > .search-dialog-input,
.search-dialog > .search-caption,
.search-dialog > .search-footer {
  flex-shrink: 0;
}
.search-dialog #command-results {
  min-height: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}
.search-dialog #search-comparison-context {
  flex-shrink: 0;
}
.comparison-search-selected {
  max-height: 96px;
  overflow-y: auto;
}
.treemap-surface .map-tile-price,
.treemap-surface .map-tile-volume {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.treemap-surface .map-tile-price > small,
.treemap-surface .map-tile-volume > small {
  flex-shrink: 0;
}
.buy-list-menu-note {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}

/* Comparison controls share one padded, centered button treatment. */
.comparison-add-current,
.comparison-builder-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 15px;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  text-align: center;
}
.comparison-add-current > span,
.comparison-builder-actions > button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.comparison-add-current > svg,
.comparison-builder-actions > button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.comparison-selection .icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 6px;
}
.chart-tool-actions > .chart-tool-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  justify-content: center;
  font-size: 18px;
  line-height: 1.25;
}
.chart-tool-actions > .chart-tool-button:hover {
  border-color: var(--secondary);
  background: var(--bg);
}

/* Authentication stays in a single form, including the optional signup photo. */
.auth-page #product-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.auth-layout.auth-single {
  display: block;
  min-height: 0;
  border-radius: 5px;
}
.auth-single .auth-form-panel {
  min-width: 0;
  padding: 34px 36px;
  background: var(--surface);
}
.auth-single .auth-form-panel h1 {
  margin-top: 24px;
  font-size: 35px;
  line-height: 1.2;
}
.auth-single .auth-form-panel > p {
  font-size: 19px;
  line-height: 1.4;
}
.auth-photo-editor {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 14px 17px;
  margin: 0 0 25px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
#auth-photo-preview {
  grid-column: 1;
  grid-row: 1 / span 2;
}
#auth-photo-preview .profile-portrait {
  width: 72px;
  height: 72px;
  font-size: 43px;
}
.auth-photo-controls {
  min-width: 0;
  grid-column: 2;
}
.auth-photo-controls > span {
  display: block;
  font-size: 20px;
}
.auth-photo-controls > span > small {
  font-size: 16px;
  color: var(--muted);
  margin-left: 8px;
}
.auth-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-top: 11px;
}
.auth-photo-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  font-size: 18px;
}
.auth-photo-actions .secondary-button {
  padding: 9px 11px;
}
.auth-photo-actions svg {
  width: 17px;
  height: 17px;
}
.auth-photo-actions > button[hidden],
.auth-photo-controls > input[hidden] {
  display: none;
}
.auth-photo-controls > p {
  font-size: 16px;
  line-height: 1.35;
  color: var(--muted);
  margin: 9px 0 0;
}
.auth-photo-editor .auth-mark-choices {
  grid-column: 2;
  justify-content: start;
  gap: 9px;
  margin: 0;
  flex-wrap: wrap;
}
.auth-photo-editor .auth-mark-choices button {
  width: 38px;
  height: 38px;
  padding: 5px;
}
.auth-photo-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--muted);
}
.auth-photo-status:empty {
  display: none;
}
.auth-single .auth-completion {
  min-height: 350px;
}
@media (max-width: 600px) {
  .auth-single .auth-form-panel {
    padding: 25px 22px;
  }
  .auth-single .auth-form-panel h1 {
    font-size: 31px;
  }
  .chart-tool-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
@media (max-width: 380px) {
  .auth-photo-editor {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 12px;
  }
  #auth-photo-preview .profile-portrait {
    width: 54px;
    height: 54px;
    font-size: 33px;
  }
  .auth-photo-controls > span > small {
    display: block;
    margin: 4px 0 0;
  }
}
@media (max-width: 380px) {
  .auth-photo-editor .auth-mark-choices {
    grid-column: 1 / -1;
  }
}
.comparison-action-sprite {
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 20px;
  vertical-align: middle;
}

/* Shared action layout keeps an icon beside its label at every screen width. */
.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary-button > svg,
.secondary-button > svg,
.text-button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.primary-button[hidden],
.secondary-button[hidden],
.text-button[hidden] {
  display: none;
}
.action-button {
  white-space: nowrap;
  min-height: 44px;
}
.action-button > span {
  white-space: nowrap;
}
.planner-list-chooser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin-bottom: 22px;
}
.planner-list-chooser > label {
  min-width: 0;
  width: 100%;
}
.planner-list-chooser .select-trigger {
  min-height: 44px;
}
.planner-list-chooser > .planner-new-list {
  min-height: 44px;
  margin: 0;
  padding: 10px 15px;
  border-color: var(--line);
  background: var(--surface);
  font-size: 19px;
}
.planner-new-list:hover {
  border-color: var(--secondary);
}
.planner-intro > .action-button,
.product-intro > .action-button {
  flex-shrink: 0;
}
.row-compare.is-added {
  color: var(--accent);
}

/* Profile utilities use the game's inventory rhythm, with real saved counts. */
.account-vault {
  min-width: 0;
}
.vault-collection {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.vault-collection > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px 20px 17px;
}
.vault-collection > header img,
.vault-links img {
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.vault-collection h2,
.vault-backups h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
}
.vault-links {
  padding: 0 10px 10px;
}
.vault-links > a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 11px;
  min-height: 53px;
  padding: 10px;
  border-top: 1px solid var(--line);
  transition:
    background 140ms ease,
    color 140ms ease;
  animation: vault-arrive 200ms ease-out both;
}
.vault-links > a:nth-child(2) {
  animation-delay: 35ms;
}
.vault-links > a:nth-child(3) {
  animation-delay: 70ms;
}
.vault-links > a:nth-child(4) {
  animation-delay: 105ms;
}
.vault-links > a:nth-child(5) {
  animation-delay: 140ms;
}
.vault-links > a:hover {
  background: var(--bg);
}
.vault-links > a > span {
  min-width: 0;
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.vault-links strong {
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}
.vault-links > a > svg {
  width: 12px;
  height: 15px;
  color: var(--muted);
}
.vault-backups {
  padding: 27px 0 24px;
}
.vault-backups > p:not(.vault-transfer-status) {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 0 19px;
}
.vault-backups > .vault-transfer {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 13px;
  width: 100%;
  min-height: 76px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  text-align: left;
  white-space: normal;
}
.vault-transfer:hover {
  border-color: var(--secondary);
}
.vault-transfer-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 34px;
  color: var(--accent);
  flex: 0 0 31px;
}
.vault-transfer-icon svg {
  width: 25px;
  height: 25px;
}
.vault-action-copy {
  display: block;
  min-width: 0;
}
.vault-action-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.vault-action-copy small {
  display: block;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 5px;
}
.vault-backups > .vault-import {
  border-style: dashed;
}
.vault-backups > .vault-import.is-dragging {
  border-color: var(--accent);
  background: var(--bg);
}
.vault-backups > input[hidden] {
  display: none;
}
.vault-transfer-status {
  margin: 9px 0 16px;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.vault-transfer-status:empty {
  display: none;
}
.vault-transfer[data-transfer-state="success"] {
  border-color: var(--secondary);
}
.vault-transfer[data-transfer-state="busy"] .vault-transfer-icon {
  animation: vault-transfer 800ms ease-in-out infinite;
}
.vault-transfer[data-transfer-state="success"] .vault-transfer-icon {
  animation: vault-arrive 180ms ease-out;
}
.vault-import-help {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  margin-top: 12px;
  color: var(--muted);
}
.vault-method {
  border-block: 1px solid var(--line);
  padding: 18px 0;
}
.vault-method > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
}
.vault-method > summary::-webkit-details-marker {
  display: none;
}
.vault-method > summary > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.vault-method > summary > svg:last-child {
  margin-left: auto;
  transition: transform 160ms ease;
}
.vault-method[open] > summary > svg:last-child {
  transform: rotate(180deg);
}
.vault-method > div > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 16px 0;
}
.vault-method .secondary-button {
  width: 100%;
  font-size: 18px;
  min-height: 40px;
}
.vault-method .text-button {
  margin: 17px 0 0;
  font-size: 17px;
}
@keyframes vault-arrive {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes vault-transfer {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}
@container workspace (max-width: 560px) {
  .planner-list-chooser {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .planner-list-chooser > #delete-buy-list {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vault-links > a,
  .vault-transfer[data-transfer-state="busy"] .vault-transfer-icon,
  .vault-transfer[data-transfer-state="success"] .vault-transfer-icon {
    animation: none;
  }
  .vault-method > summary > svg:last-child {
    transition: none;
  }
}
:root[data-reduced-motion="true"] .vault-links > a,
:root[data-reduced-motion="true"]
  .vault-transfer[data-transfer-state="busy"]
  .vault-transfer-icon,
:root[data-reduced-motion="true"]
  .vault-transfer[data-transfer-state="success"]
  .vault-transfer-icon {
  animation: none;
}
:root[data-reduced-motion="true"] .vault-method > summary > svg:last-child {
  transition: none;
}

.planner-list-chooser > #delete-buy-list {
  grid-column: 1 / -1;
  justify-self: start;
}
.product-intro > .primary-button,
.product-intro > .secondary-button,
.planner-intro > .action-button {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.planner-list-chooser > .planner-new-list {
  height: 44px;
  padding: 9px 14px;
  line-height: 1.2;
}

/* A centered search lane with controls kept together at every width. */
.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.topbar .global-search {
  justify-self: center;
  width: 100%;
  max-width: 640px;
  margin: 0;
}
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}
.topbar .header-tools .header-actions {
  margin: 0;
  flex-shrink: 0;
}
@media (min-width: 1800px) {
  .topbar {
    grid-template-columns: minmax(340px, 1fr) minmax(280px, 640px) minmax(
        340px,
        1fr
      );
  }
  .navigation-toggle {
    justify-self: start;
  }
  .header-tools {
    justify-self: end;
  }
}
@media (max-width: 1099px) {
  .header-tools {
    gap: 10px;
  }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}
@media (max-width: 600px) {
  .header-tools {
    gap: 4px;
  }
  .topbar {
    gap: 8px;
  }
  .topbar .global-search {
    min-width: 0;
    flex: 1;
  }
  .topbar .header-tools .header-actions {
    gap: 0;
  }
  .topbar .header-tools .feed-sync {
    margin: 0;
    padding: 0 4px;
  }
  .topbar .header-tools .feed-copy {
    display: none;
  }
}
#setup-buffer-hint {
  white-space: nowrap;
  font-size: 16px;
}
.setup-fields > label:last-child {
  min-width: 160px;
}
.chart-readout {
  max-width: min(340px, calc(100% - 16px));
}
.chart-readout > .chart-readout-series {
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.chart-readout > .chart-readout-series:last-child {
  border: 0;
  padding-bottom: 0;
}
.chart-readout-series > div,
.chart-readout-series > p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
}
.chart-readout-series > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.chart-readout-series > p strong {
  font-size: 16px;
  color: var(--text);
}
.chart-readout-series .chart-volume-note {
  display: block;
  font-size: 14px;
}
.portrait-editor {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.portrait-editor .profile-portrait,
#auth-photo-preview .profile-portrait {
  width: 72px;
  height: 72px;
}
.portrait-editor .profile-photo-controls,
.portrait-editor .auth-photo-controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portrait-editor .profile-photo-controls p,
.portrait-editor .auth-photo-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.portrait-editor [type="file"][hidden] {
  display: none;
}
.portrait-editor .profile-photo-status,
.portrait-editor .auth-photo-status {
  grid-column: 1/-1;
  margin: 0;
}
.portrait-editor .profile-photo-status:empty,
.portrait-editor .auth-photo-status:empty {
  display: none;
}
.portrait-editor .secondary-button {
  align-self: flex-start;
  min-height: 42px;
  white-space: nowrap;
}
.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.portrait-picker {
  width: 340px;
  padding: 16px;
  max-width: calc(100vw - 24px);
}
.portrait-picker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.portrait-picker-heading h3 {
  font-size: 22px;
  margin: 0;
}
.portrait-upload {
  width: 100%;
  justify-content: center;
  gap: 8px;
}
.portrait-upload svg {
  width: 19px;
  height: 19px;
}
.portrait-picker-label {
  display: block;
  color: var(--muted);
  margin: 18px 0 10px;
  font-size: 16px;
}
.portrait-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.portrait-picker-grid button {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  transition:
    background 120ms,
    border-color 120ms;
}
.portrait-picker-grid button:hover,
.portrait-picker-grid button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft, #b8dd7020);
}
.portrait-picker-grid img {
  object-fit: contain;
  image-rendering: pixelated;
}
.auth-input-help {
  font-size: 15px !important;
  margin: 8px 0 16px !important;
  color: var(--muted);
}
#gild-auth-form .auth-remember-control,
.custom-check {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  line-height: 1.4;
}
#gild-auth-form .auth-remember-control {
  margin: 24px 0;
}
.auth-remember-control input,
.custom-check input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}
.auth-checkbox,
.custom-checkbox {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--faint);
  border-radius: 3px;
  background: var(--bg);
  transition:
    background 120ms,
    border-color 120ms;
}
.auth-checkbox svg,
.custom-checkbox svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 120ms;
}
.auth-remember-control input:checked + .auth-checkbox,
.custom-check input:checked + .custom-checkbox {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.auth-remember-control input:checked + .auth-checkbox svg,
.custom-check input:checked + .custom-checkbox svg {
  opacity: 1;
}
.auth-remember-control input:focus-visible + .auth-checkbox,
.custom-check input:focus-visible + .custom-checkbox {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.feedback-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.feedback-toolbar > label {
  display: grid;
  gap: 8px;
  min-width: 150px;
  color: var(--muted);
  font-size: 16px;
}
.feedback-toolbar > .feedback-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 12px;
  border-radius: 4px;
}
.feedback-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.feedback-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  padding: 10px 0;
  color: var(--text);
}
.feedback-toolbar select {
  min-height: 44px;
}
.feedback-count {
  color: var(--muted);
  font-size: 16px;
  padding: 16px 0;
}
.suggestion-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.suggestion-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.suggestion-vote svg {
  width: 18px;
  height: 18px;
}
.suggestion-vote strong {
  font-size: 22px;
  font-weight: 400;
}
.suggestion-vote.is-voted {
  color: var(--accent);
  border-color: var(--accent);
}
.suggestion-vote:disabled {
  opacity: 0.55;
  cursor: default;
}
.feedback-title {
  font-size: 23px;
  color: var(--text);
  text-align: left;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.feedback-title:hover {
  color: var(--accent);
}
.suggestion-row p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.feedback-meta,
.feedback-reference {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.feedback-status {
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  align-self: start;
}
.feedback-status[data-status="planned"],
.feedback-status[data-status="in-progress"] {
  color: var(--selection, #e4c47b);
  border-color: #a5915b66;
}
.feedback-status[data-status="shipped"],
.feedback-status[data-status="resolved"] {
  color: var(--accent);
  border-color: #8ba35e66;
}
.feedback-status[data-status="closed"] {
  color: var(--red);
  border-color: #bb6e5c66;
}
.feedback-status[data-status="waiting"] {
  color: #aba5d3;
}
.feedback-empty {
  text-align: center;
  max-width: 580px;
  margin: 50px auto;
  padding: 32px 16px;
}
.feedback-empty img {
  object-fit: contain;
  image-rendering: pixelated;
}
.feedback-empty p,
.feedback-empty-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.feedback-empty-copy {
  padding: 24px 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 48px;
  align-items: start;
}
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.feedback-form h2 {
  margin: 0 0 8px;
  font-size: 27px;
}
.feedback-form label,
#support-reply-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 18px;
  min-width: 0;
}
.feedback-form textarea,
#support-reply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 19px;
  line-height: 1.5;
}
.feedback-form .primary-button {
  align-self: flex-start;
}
.contact-guide {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.contact-guide h2 {
  font-size: 25px;
  margin: 16px 0;
}
.contact-guide p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}
.contact-guide img {
  image-rendering: pixelated;
  object-fit: contain;
}
.contact-extra {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-extra summary {
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}
.contact-extra[open] > label {
  margin-top: 20px;
}
.feedback-form .custom-check {
  flex-direction: row;
  font-size: 16px;
}
.own-support {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.support-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.support-row small {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.feedback-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.feedback-detail h3 {
  font-size: 28px;
  line-height: 1.4;
  margin: 24px 0 16px;
  overflow-wrap: anywhere;
}
.feedback-body {
  font-size: 19px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback-detail details {
  margin: 20px 0;
}
.feedback-detail summary {
  cursor: pointer;
  color: var(--muted);
}
.feedback-thread {
  border-top: 1px solid var(--line);
  margin: 28px 0;
  padding-top: 8px;
}
.feedback-thread section {
  padding: 20px 16px;
  margin-top: 12px;
  background: var(--bg);
  border-left: 2px solid var(--line);
}
.feedback-thread header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.feedback-thread time {
  font-size: 15px;
  color: var(--muted);
}
.feedback-thread .feedback-body {
  margin: 12px 0 0;
}
#support-reply-form {
  display: grid;
  gap: 16px;
}
#support-reply-form .secondary-button {
  justify-self: start;
}
.feedback-receipt {
  text-align: center;
  padding: 24px 8px;
}
.feedback-receipt h3 {
  font-size: 30px;
  color: var(--accent);
}
.feedback-receipt p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 400px;
  margin: 20px auto 28px;
}
.developer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.developer-metrics > div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: var(--surface);
}
.developer-metrics span {
  display: block;
  color: var(--muted);
  font-size: 16px;
}
.developer-metrics strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
  font-weight: 400;
  margin-top: 12px;
}
.developer-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.developer-tabs button {
  white-space: nowrap;
  padding: 14px 20px;
  font-size: 20px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.developer-tabs button[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
}
.developer-table-wrap {
  overflow: auto;
}
.developer-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}
.developer-table th {
  font-weight: 400;
  color: var(--muted);
  font-size: 16px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
}
.developer-table td {
  font-size: 18px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
}
.developer-table td strong {
  display: block;
  font-weight: 400;
  font-size: 22px;
}
.developer-table td small {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}
.developer-user-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.developer-user-heading h3,
.developer-user-heading p {
  margin: 0;
  overflow-wrap: anywhere;
}
.developer-user-heading h3 {
  font-size: 27px;
}
.developer-user-heading p {
  color: var(--muted);
  margin-top: 8px;
}
.developer-user-heading > .feedback-status {
  margin-left: auto;
}
.developer-user-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.developer-user-facts dt {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 8px;
}
.developer-user-facts dd {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.developer-user .developer-metrics {
  gap: 8px;
}
.developer-user .developer-metrics > div {
  padding: 12px;
}
.developer-user .developer-metrics strong {
  font-size: 27px;
}
.developer-contact {
  font-size: 17px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-size: 19px;
  align-self: flex-start;
}
.danger-button:hover {
  background: #b56a5b16;
}
.developer-audit article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.developer-audit svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.developer-audit strong {
  font-weight: 400;
  font-size: 21px;
}
.developer-audit p,
.developer-audit time {
  font-size: 16px;
  color: var(--muted);
  margin: 6px 0 0;
}
@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-guide {
    padding: 20px;
  }
  .feedback-toolbar {
    flex-wrap: wrap;
  }
  .feedback-toolbar > .feedback-search {
    flex-basis: 100%;
  }
  .feedback-toolbar > label {
    flex: 1;
  }
  .suggestion-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }
  .suggestion-row > .feedback-status {
    grid-column: 2;
    justify-self: start;
  }
  .support-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .support-row > .feedback-reference {
    grid-column: 1/-1;
  }
  .developer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .developer-audit article {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .developer-audit time {
    grid-column: 2;
  }
  .feedback-thread header {
    flex-wrap: wrap;
  }
  .developer-user-facts {
    grid-template-columns: 1fr;
  }
  .developer-user-heading {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-picker-grid button,
  .auth-checkbox,
  .custom-checkbox,
  .auth-checkbox svg,
  .custom-checkbox svg {
    transition: none;
  }
}

.chart-readout-series > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep preview prices and volumes in a fixed receipt below the small chart. */
.peek-history .peek-chart {
  height: 96px;
  margin: 9px 0 0;
}
.peek-chart > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.peek-reading {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.peek-reading > time {
  display: block;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}
.peek-reading dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 10px 0 0;
}
.peek-reading dl > div {
  min-width: 0;
}
.peek-reading dt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.3;
}
.peek-reading dd {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 400;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.peek-reading dl > div:first-child dd {
  color: var(--accent);
}

/* Popovers use measured viewport space without moving during their reveal. */
.gild-popover {
  box-sizing: border-box;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  animation: popover-fade 120ms ease;
}
@keyframes popover-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
dialog.has-gild-popover {
  overflow: visible;
}
.item-peek.gild-popover {
  width: 365px;
}
.peek-heading > div {
  flex: 1;
  min-width: 0;
}
.peek-heading .peek-close {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 5px;
  align-self: flex-start;
}
.peek-heading .peek-close svg {
  width: 18px;
  height: 18px;
}
.peek-actions {
  position: sticky;
  bottom: -19px;
  background: var(--surface);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.peek-reading dt {
  min-height: 2.6em;
}
.peek-reading dd {
  min-height: 2.5em;
}

/* Let introductory copy use its row before wrapping at smaller widths. */
.keep-together {
  white-space: nowrap;
}
.comparison-header {
  gap: 24px;
}
.comparison-header > div {
  flex: 1;
  min-width: 0;
}
.comparison-header p {
  max-width: none;
  text-wrap: pretty;
}
.page-flipper .product-intro > p {
  max-width: none;
  flex: 1;
  min-width: 0;
  text-wrap: pretty;
}
.page-flipper .product-intro > a {
  flex-shrink: 0;
}

/* Signup keeps the optional picture and password note centered. */
.auth-create .auth-photo-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 0 24px;
}
.auth-create .auth-photo-controls {
  align-items: center;
  gap: 10px;
  width: 100%;
}
.auth-create .auth-photo-editor .secondary-button {
  align-self: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  font-size: 18px;
}
.auth-create .auth-photo-editor .secondary-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.auth-create .auth-photo-controls > p {
  text-align: center;
}
.auth-single .auth-form-panel > .auth-game-note {
  text-align: center;
  margin: 22px auto 0;
  max-width: 42ch;
  line-height: 1.5;
}

/* Contact and review fields share the site's GP/form control dimensions. */
.contact-layout {
  gap: 28px;
}
#contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
#contact-form > h2 {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.feedback-form input:not([type="checkbox"]):not([type="hidden"]),
.feedback-form textarea,
#support-reply-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 19px;
  line-height: 1.35;
  transition: border-color 120ms;
}
.feedback-form input:focus-visible,
.feedback-form textarea:focus-visible,
#support-reply-form textarea:focus-visible {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--faint);
}
.feedback-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feedback-form .select-control {
  width: 100%;
  min-width: 0;
}
.feedback-form .select-trigger {
  min-height: 46px;
  font-size: 19px;
}
.feedback-form .select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#contact-form textarea {
  min-height: 120px;
}
.contact-guide .text-button {
  white-space: normal;
  text-align: left;
  line-height: 1.4;
}
.contact-guide .text-button svg {
  flex-shrink: 0;
}

/* Replacement is an explicit action, with room for long item names. */
.general-dialog.comparison-replace-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
}
.comparison-replace-dialog .dialog-header {
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.comparison-replace-dialog .dialog-header h2 {
  font-size: 23px;
  line-height: 1.3;
  min-width: 0;
}
.comparison-replace-dialog .dialog-header > button {
  flex-shrink: 0;
}
.comparison-replace-dialog .dialog-body {
  padding-top: 22px;
}
.comparison-replace-content .comparison-source {
  padding-bottom: 18px;
}
.comparison-replace-content .comparison-source strong {
  font-size: 25px;
  line-height: 1.3;
}
.comparison-replace-content .comparison-source small {
  line-height: 1.4;
}
.comparison-replace-copy {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 20px;
}
.comparison-replace-content .comparison-replacements {
  gap: 10px;
}
.comparison-replace-content .comparison-replacements button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 14px;
  min-height: 62px;
  width: 100%;
  white-space: normal;
}
.comparison-replacements .replacement-name {
  font-size: 21px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}
.comparison-replacements .replacement-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--muted);
  font-size: 16px;
}
.replacement-action svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.comparison-replacements button:hover .replacement-action {
  color: var(--accent);
}
@media (max-width: 600px) {
  .comparison-header {
    flex-wrap: wrap;
    gap: 16px;
  }
  .comparison-header > div {
    flex-basis: 100%;
  }
  .feedback-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #contact-form {
    padding: 20px;
  }
  .contact-layout {
    gap: 24px;
  }
  .comparison-replacements .replacement-action > span {
    display: none;
  }
  .comparison-replace-content .comparison-replacements button {
    gap: 10px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gild-popover {
    animation: none;
  }
}
:root[data-reduced-motion="true"] .gild-popover {
  animation: none;
}
.peek-history[data-state="loading"] .peek-reading[hidden] {
  display: block !important;
  visibility: hidden;
}
.peek-reading > time {
  min-height: 1.4em;
}

/* One compact sync status; exact timing is available on hover or keyboard focus. */
.topbar #refresh-button {
  gap: 8px;
  min-height: 36px;
}
.topbar .feed-copy strong {
  font-size: 17px;
  line-height: 1.2;
}
.feed-check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--muted);
}
.feed-check svg {
  width: 18px;
  height: 18px;
}
.feed-sync[data-connection="live"] .feed-check {
  color: var(--accent);
}
.feed-sync[data-connection="offline"] .feed-check {
  color: var(--red);
}
.feed-sync.syncing .feed-check svg {
  animation: feed-rotate 900ms linear infinite;
}
.price-sync-tip {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 1000;
  display: none;
  width: 250px;
  max-width: calc(100vw - 24px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px #0002;
  font: inherit;
}
.price-sync-tip.is-visible {
  display: block;
  animation: popover-fade 120ms ease;
}
.sync-tip-status {
  display: block;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}
.price-sync-tip #feed-age {
  font-size: 18px;
  color: var(--accent);
  line-height: 1.4;
}
.sync-tip-date {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 4px;
}
.price-sync-tip dl {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.price-sync-tip dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
.price-sync-tip dt {
  color: var(--muted);
}
.price-sync-tip dd {
  margin: 0;
  text-align: right;
}
.price-sync-tip p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* The profile menu shares the trigger's width instead of extending into content. */
.gild-popover.profile-menu {
  padding: 7px;
  border-radius: 4px;
  animation: profile-unfold-down 170ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.gild-popover.profile-menu[data-placement="top"] {
  animation-name: profile-unfold-up;
}
.profile-menu .profile-menu-identity {
  gap: 9px;
  padding: 8px 6px 12px;
  margin: 0 0 4px;
}
.profile-menu .profile-menu-identity .profile-portrait {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  font-size: 21px;
}
.profile-menu .profile-menu-identity strong {
  font-size: 18px;
  line-height: 1.3;
}
.profile-menu .profile-menu-identity small {
  font-size: 14px;
  line-height: 1.4;
}
.profile-menu .link-menu a,
.profile-menu .link-menu button {
  padding: 9px 7px;
  min-height: 39px;
  font-size: 17px;
  gap: 9px;
  line-height: 1.3;
}
.profile-menu .link-menu a > span {
  gap: 9px;
  min-width: 0;
}
.profile-menu .link-menu svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@keyframes profile-unfold-down {
  from {
    opacity: 0;
    clip-path: inset(0 0 10% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
@keyframes profile-unfold-up {
  from {
    opacity: 0;
    clip-path: inset(10% 0 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

/* Side colour carries the meaning without additional vertical/horizontal marks. */
.block-prices > .block-buy,
.block-prices > .block-sell {
  border-left: 0;
  padding-left: 0;
}
.block-legend .block-buy::before,
.block-legend .block-sell::before {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .gild-popover.profile-menu,
  .price-sync-tip.is-visible,
  .feed-sync.syncing .feed-check svg {
    animation: none;
  }
}
:root[data-reduced-motion="true"] .gild-popover.profile-menu,
:root[data-reduced-motion="true"] .price-sync-tip.is-visible,
:root[data-reduced-motion="true"] .feed-sync.syncing .feed-check svg {
  animation: none;
}
.profile-menu .link-menu {
  min-width: 0;
  width: 100%;
}
.price-sync-tip[data-connection="offline"] #feed-age {
  color: var(--muted);
}

/* Account actions stay separate from profile and trading preferences. */
#account-security {
  min-width: 0;
}
.security-section {
  min-width: 0;
}
.security-section .section-heading {
  margin-bottom: 20px;
}
.security-section .section-heading h2 {
  margin: 0;
}
.security-section .section-heading > svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex-shrink: 0;
}
.security-form {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.security-form label {
  display: grid;
  gap: 9px;
  font-size: 18px;
  color: var(--muted);
  min-width: 0;
  margin: 0;
}
.security-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.security-form input,
.developer-delete-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}
.security-form input:focus-visible,
.developer-delete-form input:focus-visible {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.security-form input[readonly] {
  color: var(--muted);
}
.security-password {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
}
.security-password input {
  padding-right: 46px;
}
.security-password > button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.security-password svg {
  width: 19px;
  height: 19px;
}
.security-hint {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}
.security-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.security-actions button {
  white-space: normal;
}
.security-actions .security-result {
  font-size: 16px;
  color: var(--accent);
  line-height: 1.4;
}
.security-form .form-error {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.security-form > .danger-button {
  justify-self: start;
}
.account-deletion .danger-button {
  margin-top: 20px;
}
.deletion-request-receipt {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.deletion-request-receipt > strong {
  display: block;
  margin-top: 14px;
  font-size: 25px;
  color: var(--text);
  font-weight: 400;
}
.deletion-request-receipt > p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 20px;
}
.developer-lifecycle-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: -12px 0 28px;
  font-size: 17px;
  color: var(--muted);
}
.developer-lifecycle-counts strong {
  font-weight: 400;
  color: var(--text);
  margin-left: 8px;
}
.developer-deletion-notice {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  margin: 24px 0;
}
.developer-deletion-notice h3 {
  font-size: 23px;
  margin: 0 0 14px;
}
.developer-deletion-notice p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
}
.developer-delete-form {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 28px;
}
.developer-delete-form h3 {
  font-size: 25px;
  margin: 0;
}
.developer-delete-form > p:not(.form-error) {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 650px) {
  .security-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .security-actions {
    align-items: start;
    flex-direction: column;
  }
  .security-actions button {
    max-width: 100%;
  }
  .deletion-request-receipt {
    padding: 16px;
  }
}

/* Action feedback stays above modal backdrops and menus, without stealing input. */
.toast {
  inset: auto;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  z-index: 1100;
  pointer-events: none;
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-size: 18px;
  border-radius: 4px;
}
.toast.toast-fallback {
  display: block;
}
.toast::backdrop {
  background: transparent;
  pointer-events: none;
  backdrop-filter: none;
}

/* Keep the default initial in the same portrait frame as uploaded pictures. */
.sidebar-profile > .profile-portrait {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

/* High alchemy has its own recipe and session workspace. */
.alch-intro,
.alch-results-heading,
.alch-setup-bottom,
.alch-table-controls,
.alch-session-title,
.alch-plan-actions,
.alch-help-spell {
  display: flex;
  align-items: center;
  gap: 16px;
}
.alch-intro {
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.alch-intro > div:nth-child(2) {
  flex: 1;
  min-width: 200px;
}
.alch-intro p {
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.5;
}
.alch-intro span,
.alch-setup small,
.alch-recipe,
.alch-results-heading p,
.alch-plan-empty p,
.alch-session-facts,
.alch-totals dt {
  color: var(--muted);
}
.alch-intro-spell {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.alch-intro-spell img {
  width: 40px;
  height: 36px;
}
.alch-spell,
.alch-recipe img {
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}
.alch-setup {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  margin: 0 0 32px;
}
.alch-setup-fields,
.alch-advanced {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 20px;
  padding: 24px;
}
.alch-setup label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  color: var(--muted);
}
.alch-setup input,
.alch-setup select,
.alch-setup .gp-control,
.alch-setup .select-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.alch-setup input:not([data-gp-enhanced]),
.alch-plan-line input {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}
.alch-setup label > small {
  font-size: 16px;
  line-height: 1.3;
}
.alch-assumptions {
  border-top: 1px solid var(--line);
}
.alch-assumptions summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: var(--muted);
  list-style: none;
}
.alch-assumptions summary::-webkit-details-marker {
  display: none;
}
.alch-assumptions summary svg {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}
.alch-assumptions[open] summary svg {
  transform: rotate(180deg);
}
.alch-advanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 6px;
}
.alch-setup-bottom {
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
}
.alch-recipe,
.alch-recipe > span,
.alch-money {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.alch-recipe {
  gap: 18px;
  flex-wrap: wrap;
  font-size: 16px;
}
.alch-recipe > span > span {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.alch-recipe strong {
  font-weight: 400;
  color: var(--text);
}
.alch-recipe .alch-rune-total {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.alch-money {
  flex-wrap: nowrap;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.alch-money > img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  image-rendering: pixelated;
}
.alch-money strong {
  font-weight: 400;
}
.alch-money small {
  font-size: 14px;
  color: var(--muted);
}
.alch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 28px;
}
.alch-opportunities,
.alch-session {
  min-width: 0;
}
.alch-results-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.alch-results-heading h2,
.alch-session h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 400;
}
.alch-results-heading p {
  margin: 6px 0 0;
  font-size: 17px;
}
.alch-table-controls {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.alch-table-controls .table-search {
  flex: 1 1 180px;
  min-width: 140px;
}
.alch-table-controls .inline-select {
  flex-shrink: 0;
}
.alch-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  color: var(--muted);
}
.alch-check input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
}
.alch-check > span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 20px;
  height: 20px;
}
.alch-check svg {
  width: 15px;
  height: 15px;
  opacity: 0;
}
.alch-check input:checked + span {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.alch-check input:checked + span svg {
  opacity: 1;
}
.alch-check input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.alch-table {
  min-width: 890px;
}
.alch-table td,
.alch-table th {
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}
.alch-table .table-item {
  min-width: 190px;
  gap: 12px;
}
.alch-table .table-item > span {
  min-width: 0;
}
.alch-table .table-item > img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}
.alch-table .item-title {
  white-space: normal;
  max-width: 240px;
}
.alch-table .alch-money {
  justify-content: flex-end;
  gap: 6px;
}
.alch-table .alch-money small {
  display: none;
}
.alch-table .alch-money > img {
  width: 16px;
  height: 16px;
}
.alch-table .cell-subline {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.alch-more {
  margin-top: 20px;
}
.alch-status,
.alch-offer-note,
.alch-plan-warning {
  color: var(--selection);
  font-size: 17px;
  line-height: 1.5;
  padding: 14px 0;
}
.alch-session {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 22px;
}
.alch-session-title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.alch-plan-empty {
  padding-top: 28px;
  line-height: 1.5;
}
.alch-plan-empty > img {
  margin-bottom: 12px;
  image-rendering: pixelated;
}
.alch-plan-empty h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}
.alch-plan-empty p {
  margin: 10px 0 22px;
  font-size: 18px;
}
.alch-plan-empty > span {
  color: var(--faint);
  font-size: 15px;
}
.alch-plan-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.alch-plan-line > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
.alch-plan-line strong {
  display: block;
  font-size: 18px;
  font-weight: 400;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.alch-plan-line label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}
.alch-plan-line input {
  width: 95px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
}
.alch-plan-line > button {
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
}
.alch-totals {
  margin: 18px 0;
}
.alch-totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.alch-totals dd {
  margin: 0;
}
.alch-total-profit {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px !important;
  font-size: 24px;
}
.alch-total-profit small {
  font-size: 16px;
  margin-left: 6px;
}
.alch-session-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.alch-session-facts strong {
  color: var(--text);
  font-weight: 400;
}
#alch-save-list {
  width: 100%;
}
.alch-plan-actions {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.alch-help {
  line-height: 1.6;
}
.alch-help h3 {
  font-size: 23px;
  margin: 24px 0 8px;
}
.alch-session-built {
  animation: alch-session-confirm 650ms ease-out;
}
@keyframes alch-session-confirm {
  from {
    border-color: var(--selection);
  }
  to {
    border-color: var(--line);
  }
}
@media (max-width: 1550px) {
  .alch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .alch-setup-fields,
  .alch-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .alch-setup-fields,
  .alch-advanced {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .alch-assumptions summary,
  .alch-setup-bottom {
    padding: 18px 20px;
  }
  .alch-recipe {
    gap: 12px;
  }
  .alch-recipe .alch-rune-total {
    border-left: 0;
    padding-left: 0;
  }
  .alch-intro {
    align-items: flex-start;
  }
  .alch-intro-spell {
    width: 44px;
    height: 44px;
  }
  .alch-intro-spell img {
    width: 30px;
    height: 27px;
  }
  .alch-table-controls {
    gap: 14px;
  }
  .alch-table-controls .table-search {
    flex-basis: 100%;
  }
}

/* The welcome page introduces the tools with real, inspectable prices. */
body:has(#welcome-app) {
  padding: 0;
}
.welcome-page {
  max-width: 1440px;
  padding: 0 48px;
  margin: 0 auto;
  min-height: 100svh;
  color: var(--text);
}
.welcome-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.welcome-header .brand {
  width: max-content;
}
.welcome-header > .secondary-button {
  justify-self: end;
}
.welcome-header nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 20px;
}
.welcome-header nav a:hover {
  color: var(--accent);
}
.welcome-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 76px 0 64px;
}
.welcome-game {
  margin: 0 0 20px;
  font-size: 19px;
  color: var(--muted);
}
.welcome-copy h1 {
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.welcome-description {
  max-width: 390px;
  font-size: 23px;
  line-height: 1.5;
  color: var(--muted);
  margin: 26px 0 30px;
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.welcome-actions a {
  font-size: 20px;
  min-height: 50px;
  padding: 12px 18px;
}
.welcome-actions img,
.welcome-tools img,
.welcome-item-heading > img {
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.welcome-access {
  font-size: 17px;
  color: var(--faint);
  margin: 18px 0 0;
}
.welcome-market {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 22px 24px 18px;
  min-width: 0;
}
.welcome-market-heading {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.welcome-market-heading > img {
  object-fit: contain;
  image-rendering: pixelated;
}
#welcome-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}
#welcome-item-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.welcome-item-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.welcome-item-tabs button {
  flex: 0 0 auto;
  color: var(--muted);
  padding: 8px 0 12px;
  font-size: 17px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.welcome-item-tabs button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.welcome-item-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.welcome-item-heading > img {
  width: 56px;
  height: 56px;
  padding: 6px;
  box-sizing: border-box;
}
.welcome-item-heading h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.welcome-item-movement {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.welcome-item-movement strong {
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}
.welcome-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.welcome-quotes > div {
  min-width: 0;
  color: var(--accent);
}
.welcome-quotes > div:nth-child(2) {
  color: var(--selection);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.welcome-quotes > div > span {
  display: block;
  font-size: 17px;
}
.welcome-quotes strong {
  display: block;
  font-size: clamp(21px, 2.25vw, 30px);
  line-height: 1.3;
  font-weight: 400;
  margin: 6px 0;
  white-space: nowrap;
}
.welcome-quotes small {
  display: block;
  color: var(--muted);
  font-size: 15px;
}
.welcome-quotes .welcome-gp {
  font-size: 15px;
  color: var(--muted);
  margin-left: 3px;
}
.welcome-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 16px;
}
.welcome-chart-heading > div {
  display: inline-flex;
  gap: 14px;
}
.welcome-chart-heading > div > span:first-child {
  color: var(--accent);
}
.welcome-chart-heading > div > span:last-child {
  color: var(--selection);
}
.welcome-chart {
  height: 150px;
  min-height: 150px;
  margin-top: 10px;
}
.welcome-chart-placeholder {
  display: block;
  height: 100%;
  border-bottom: 1px solid var(--line);
}
.welcome-history-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}
#welcome-chart-caption {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
  min-height: 42px;
}
.welcome-inventory {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.welcome-inventory > span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}
.welcome-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.welcome-tools > a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 15px;
  gap: 16px;
  align-items: start;
  padding: 30px 26px;
}
.welcome-tools > a:first-child {
  padding-left: 0;
}
.welcome-tools > a:last-child {
  padding-right: 0;
}
.welcome-tools > a + a {
  border-left: 1px solid var(--line);
}
.welcome-tools h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.2;
  transition: color 150ms ease;
}
.welcome-tools p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
.welcome-tools > a > span:last-child {
  color: var(--muted);
  font-size: 18px;
}
.welcome-tools > a:hover h2 {
  color: var(--accent);
}
.welcome-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 30px 0;
  font-size: 17px;
  color: var(--muted);
}
.welcome-footer > div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.welcome-footer > small {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 14px;
}
@media (max-width: 1000px) {
  .welcome-page {
    padding: 0 28px;
  }
  .welcome-intro {
    gap: 36px;
    padding: 56px 0;
  }
  .welcome-header nav {
    gap: 24px;
  }
  .welcome-copy h1 {
    font-size: 48px;
  }
  .welcome-quotes {
    gap: 12px;
  }
  .welcome-quotes strong {
    font-size: 22px;
  }
  .welcome-item-heading h2 {
    font-size: 23px;
  }
  .welcome-market {
    padding: 20px;
  }
  .welcome-tools > a {
    padding: 26px 18px;
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .welcome-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 42px 0;
  }
  .welcome-copy h1 {
    font-size: clamp(44px, 8vw, 60px);
  }
  .welcome-description {
    max-width: 480px;
  }
  .welcome-quotes strong {
    font-size: 28px;
  }
  .welcome-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-tools > a,
  .welcome-tools > a:first-child,
  .welcome-tools > a:last-child {
    padding: 24px 0;
  }
  .welcome-tools > a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .welcome-tools h2 {
    margin-bottom: 8px;
  }
  .welcome-footer {
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
  }
  .welcome-header nav {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .welcome-header > a:last-child {
    grid-row: 1;
    grid-column: 2;
  }
}
@media (max-width: 420px) {
  .welcome-page {
    padding: 0 20px;
  }
  .welcome-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-actions a {
    width: 100%;
    justify-content: center;
  }
  .welcome-quotes strong {
    font-size: 21px;
  }
  .welcome-market {
    padding: 18px 16px;
  }
  .welcome-item-tabs {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .alch-session-built {
    animation: none;
  }
  .alch-assumptions summary svg {
    transition: none;
  }
}
:root[data-reduced-motion="true"] .alch-session-built {
  animation: none;
}

/* A common column control keeps source sorting visible and keyboard accessible. */
.market-table th .column-sort,
.developer-table th .column-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
  min-height: 36px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
  text-align: inherit;
}
.market-table th.number .column-sort {
  justify-content: flex-end;
}
.column-sort-indicator {
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  opacity: 0.5;
}
.column-sort-indicator svg {
  width: 16px;
  height: 16px;
}
.column-sort:hover,
.market-table th .column-sort.sorted,
.developer-table th .column-sort.sorted {
  color: var(--accent);
}
.column-sort.sorted .column-sort-indicator {
  opacity: 1;
}
.column-sort:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}
.alch-table {
  min-width: 1060px;
}
.journal-table {
  min-width: 1000px;
}
.journal-date {
  color: var(--muted);
  white-space: nowrap;
  font-size: 16px;
}

/* Budget, selects and numeric fields share one input baseline and helper row. */
.alch-setup-fields > label,
.alch-advanced > label {
  display: grid;
  grid-template-rows: 25px 48px minmax(22px, auto);
  align-content: start;
  gap: 8px;
}
.alch-setup .gp-control,
.alch-setup .select-control {
  margin: 0;
  height: 48px;
  min-height: 48px;
}
.alch-setup .select-trigger,
.alch-setup input:not([data-gp-enhanced]) {
  margin: 0;
  height: 48px;
  min-height: 48px;
  font-size: 18px;
}
.alch-setup .gp-control input {
  height: 46px !important;
  font-size: 18px !important;
  line-height: 24px !important;
}
.alch-setup .gp-input-helper,
.alch-setup label > small {
  margin: 0;
  line-height: 22px;
}
.alch-setup .gp-input-helper:empty {
  min-height: 22px;
}

/* Context sits in a consistent note, rather than trailing loose below a table. */
.information-box,
.data-explanation,
.map-caption,
.calculator-note {
  display: block;
  border: 1px solid var(--line);
  border-left: 2px solid var(--selection);
  border-radius: 4px;
  background: var(--surface);
  padding: 18px 22px;
  margin: 24px 0 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}
.information-box::before,
.data-explanation::before,
.map-caption::before,
.calculator-note::before {
  content: "About these numbers";
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
}
.information-box[data-info-title]::before {
  content: attr(data-info-title);
}
.footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  row-gap: 18px;
}
.footer > p {
  margin: 0;
  white-space: normal;
}
.footer > div:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.5;
}
.footer > div:last-child > span {
  white-space: normal;
}

/* The portrait drawer is a small, scrollable inventory with named collections. */
.portrait-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}
.portrait-filters button {
  font-size: 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding: 5px 0;
}
.portrait-filters button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.portrait-picker-grid {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 4px;
}
.portrait-picker-grid button {
  min-width: 0;
  min-height: 78px;
  padding: 8px 4px;
  gap: 5px;
}
.portrait-picker-grid button[hidden] {
  display: none;
}
.portrait-picker-grid button > small {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
  color: var(--muted);
}
.portrait-result-count {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 15px;
}
.portrait-choice-name {
  display: block;
  min-height: 24px;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--text);
}

/* Notes have a recognisable sprite, a readable summary and optional definitions. */
.information-box[data-information-ready] {
  position: relative;
  border-left-width: 1px;
  border-left-color: var(--line);
  padding: 18px 22px;
  animation: information-enter 240ms ease-out;
}
.information-box[data-information-ready]::before {
  content: none;
  display: none;
}
.information-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.information-emblem {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.information-emblem img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 180ms ease;
}
.information-box:hover .information-emblem img {
  transform: translateY(-1px) rotate(-5deg);
}
.information-title {
  min-width: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}
.information-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 82px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--muted);
  transition:
    color 150ms ease,
    border-color 150ms ease;
}
.information-toggle:hover,
.information-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.information-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.information-toggle svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  transition: transform 180ms ease;
}
.information-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.information-summary {
  display: block;
  margin-top: 12px;
  line-height: 1.6;
}
.information-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.information-details[hidden] {
  display: none;
}
.information-fact {
  display: block;
  min-width: 0;
  animation: information-fact-enter 180ms ease-out both;
}
.information-fact:nth-child(2) {
  animation-delay: 40ms;
}
.information-fact > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}
.information-fact > span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.calculator-note .information-heading {
  gap: 8px;
}
.calculator-note .information-title {
  font-size: 18px;
}
.calculator-note .information-details {
  grid-template-columns: minmax(0, 1fr);
}
@keyframes information-enter {
  from {
    opacity: 0.7;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes information-fact-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .information-box[data-information-ready] {
    padding: 16px;
  }
  .information-heading {
    gap: 10px;
  }
  .information-title {
    font-size: 18px;
  }
  .information-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .information-box[data-information-ready],
  .information-fact {
    animation: none;
  }
  .information-emblem img,
  .information-toggle,
  .information-toggle svg {
    transition: none;
  }
  .information-box:hover .information-emblem img {
    transform: none;
  }
}
:root[data-reduced-motion="true"]
  :is(.information-box[data-information-ready], .information-fact) {
  animation: none;
}
:root[data-reduced-motion="true"]
  :is(.information-emblem img, .information-toggle, .information-toggle svg) {
  transition: none;
}
:root[data-reduced-motion="true"]
  .information-box:hover
  .information-emblem
  img {
  transform: none;
}

/* An item inventory and quiet transitions introduce the live market. */
.welcome-item-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.welcome-item-tabs button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 50px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}
.welcome-item-tabs button > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.welcome-item-tabs button > img {
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 180ms ease;
}
.welcome-item-tabs button:hover > img {
  transform: translateY(-2px);
}
.welcome-item-tabs button[aria-pressed="true"] {
  background: var(--surface-hover);
  border-color: var(--selection);
}
.welcome-item-heading > img {
  animation: welcome-item-settle 700ms ease-out both;
}
.welcome-copy {
  animation: welcome-reveal 480ms ease-out both;
}
.welcome-market {
  animation: welcome-reveal 480ms 90ms ease-out both;
}
.welcome-tools > a {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  animation: welcome-reveal 480ms 160ms ease-out both;
}
.welcome-tools > a:nth-child(2) {
  animation-delay: 210ms;
}
.welcome-tools > a:nth-child(3) {
  animation-delay: 260ms;
}
.welcome-tools > a > img {
  width: 38px;
  height: 38px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}
.welcome-tools > a > span:last-child {
  color: inherit;
  font-size: inherit;
}
.welcome-tools h2 {
  color: var(--text);
}
.welcome-tools > a:hover > img,
.welcome-tools > a:focus-visible > img {
  transform: translateY(-3px);
  border-color: var(--selection);
}
.welcome-tools > a::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -1px;
  height: 2px;
  background: var(--selection);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.welcome-tools > a:first-child::after {
  left: 0;
}
.welcome-tools > a:last-child::after {
  right: 0;
}
.welcome-tools > a:hover::after,
.welcome-tools > a:focus-visible::after {
  transform: scaleX(1);
}
@keyframes welcome-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes welcome-item-settle {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .information-box,
  .data-explanation,
  .map-caption,
  .calculator-note {
    padding: 16px;
    font-size: 16px;
  }
  .welcome-item-tabs {
    gap: 6px;
  }
  .welcome-item-tabs button {
    height: 44px;
    padding: 5px;
  }
  .welcome-item-tabs button img {
    width: 25px;
    height: 25px;
  }
  .welcome-tools > a::after {
    left: 0;
    right: 0;
  }
  .welcome-item-heading h2 {
    font-size: 27px;
  }
  .welcome-item-movement {
    gap: 6px;
    font-size: 15px;
  }
}
@media (max-width: 420px) {
  .welcome-market-heading {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 7px;
    font-size: 16px;
  }
  .welcome-market-heading > img {
    width: 22px;
    height: 22px;
  }
  #welcome-item-link {
    font-size: 15px;
    padding-inline: 8px;
  }
  .welcome-item-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
  .welcome-item-heading > img {
    width: 44px;
    height: 44px;
    padding: 3px;
  }
  .welcome-quotes {
    gap: 12px;
  }
  .welcome-quotes > div:nth-child(2) {
    padding-left: 12px;
  }
  #welcome-chart-caption {
    min-height: 63px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-copy,
  .welcome-market,
  .welcome-tools > a,
  .welcome-item-heading > img {
    animation: none;
  }
  .welcome-tools > a::after,
  .welcome-tools > a > img,
  .welcome-item-tabs button > img {
    transition: none;
  }
}
:root[data-reduced-motion="true"]
  :is(
    .welcome-copy,
    .welcome-market,
    .welcome-tools > a,
    .welcome-item-heading > img
  ) {
  animation: none;
}

/* Compact summaries use their row; expandable coverage spans both charts. */
.journal-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0;
  gap: 16px;
}
.journal-summary > div {
  min-width: 0;
}
.journal-summary span {
  margin-bottom: 8px;
}
.market-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px 0;
}
.market-summary > div {
  min-width: 0;
  padding: 0 22px;
}
.market-summary > div:last-child {
  padding-right: 0;
}
.analytics-layout {
  align-items: start;
  gap: 28px;
}
.analytics-layout > .data-explanation {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}
.analytics-layout > .data-explanation .information-summary {
  max-width: none;
}
.portrait-picker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 320px;
}
.portrait-picker-grid button {
  min-height: 100px;
  padding: 10px 7px;
  align-content: center;
}
.portrait-picker-grid button > small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}
.field-with-help {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.25;
}
.field-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--muted);
}
.field-help svg {
  width: 15px;
  height: 15px;
}
.field-help:hover,
.field-help:focus-visible {
  color: var(--accent);
}
.buffer-unit {
  font-size: 14px;
  color: var(--muted);
}
.setup-fields .buffer-unit {
  display: none;
}
.field-help-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 16px;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.45;
  overflow: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px #0003;
}
.alch-layout {
  grid-template-columns: minmax(0, 1fr);
}
.alch-plan-dialog {
  min-width: 0;
}
.alch-plan-dialog .alch-session-title {
  margin-bottom: 18px;
}
.alch-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .journal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .market-summary > div {
    padding: 0;
    border: 0;
  }
  .market-summary strong {
    margin-top: 8px;
  }
  .analytics-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.auth-security-question {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.auth-security-question > label {
  display: block;
  margin: 16px 0 8px;
}
.auth-security-question > label:first-child {
  margin-top: 0;
}
.auth-security-question .select-control {
  width: 100%;
}
.account-role[data-role="supporter"] {
  color: var(--selection);
}
.changelog-entries {
  width: 100%;
}
.change-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.change-date {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  color: var(--muted);
}
.change-date > span {
  color: var(--text);
  font-size: 22px;
}
.change-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 16px;
  color: var(--accent);
}
.change-entry[data-change="fix"] .change-entry-meta {
  color: var(--selection);
}
.change-content {
  min-width: 0;
}
.change-content h2 {
  margin: 10px 0 16px;
  font-size: 28px;
  line-height: 1.2;
}
.change-content > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  max-width: 78ch;
  color: var(--muted);
}
.change-content > button {
  margin-top: 18px;
}
.developer-change-actions {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
}
.developer-access {
  margin: 24px 0;
}
.developer-access h3 {
  font-size: 22px;
  margin-bottom: 16px;
}
.developer-ip {
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.developer-browser {
  display: block;
  max-width: 32ch;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .change-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 24px;
  }
  .change-date {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
  }
  .change-content h2 {
    font-size: 25px;
  }
  .change-content > p {
    font-size: 18px;
  }
  .developer-change-actions {
    flex-wrap: wrap;
  }
}

/* Page guidance has one predictable position directly after the introduction. */
.page-information {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0 0 28px;
}
.page-information > .information-box {
  width: 100%;
  max-width: none;
  margin: 0;
}
.page-information .information-summary {
  max-width: none;
}
.flip-panel > .calculator-note {
  margin-block: 16px 22px;
}
.planner-list-chooser {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
}
.planner-list-chooser > #delete-buy-list {
  grid-column: auto;
  justify-self: stretch;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.planner-list-chooser > .planner-new-list,
.planner-list-chooser .select-trigger {
  height: 46px;
  min-height: 46px;
}
.planner-toolbar {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
}
.planner-toolbar > button {
  min-height: 48px;
  margin-top: 30px;
  align-self: start;
}
:is(.journal-summary, .market-summary, .planner-summary) > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 18px 20px;
}
:is(.journal-summary, .market-summary, .planner-summary) {
  gap: 0;
  padding-block: 14px;
  width: 100%;
}
:is(.journal-summary, .market-summary, .planner-summary) > div + div {
  border-left: 1px solid var(--line);
}
.market-summary > div {
  border-right: 0;
}
.market-summary > div:first-child,
.market-summary > div:last-child {
  padding-inline: 20px;
}
.market-summary strong {
  justify-content: center;
  margin-block: 14px 10px;
  gap: 8px;
}
.journal-summary strong {
  font-size: clamp(27px, 2.1vw, 38px);
  line-height: 1.3;
}
.journal-summary span {
  margin-bottom: 12px;
  font-size: 18px;
}
.market-summary p {
  margin-top: 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.contact-guide {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-guide > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 21px;
}
.contact-guide > summary::-webkit-details-marker {
  display: none;
}
.contact-guide > summary > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
.contact-guide > summary > svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  transition: transform 160ms ease;
}
.contact-guide[open] > summary > svg {
  transform: rotate(180deg);
}
.contact-guide > div {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
}
.contact-guide > div > p {
  max-width: 90ch;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
}
.contact-layout #contact-form {
  width: 100%;
  max-width: none;
}
.profile-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.profile-name-line > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#sidebar-profile-role {
  flex: 0 0 auto;
  display: inline-flex;
}
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.profile-role-badge[data-role="supporter"] {
  color: var(--selection);
}
.profile-role-badge[data-role="developer"] {
  color: var(--accent);
}
.planner-alchemy {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.planner-alchemy > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}
.planner-alchemy > header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.planner-alchemy h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}
.planner-alchemy > header img {
  image-rendering: pixelated;
  object-fit: contain;
}
.gild-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  min-height: 36px;
  color: var(--muted);
  flex: 0 0 auto;
}
.switch-track {
  display: inline-block;
  width: 34px;
  height: 20px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 3px;
}
.switch-track::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: var(--faint);
  transition:
    transform 160ms ease,
    background 160ms ease;
}
.gild-switch[aria-checked="true"] {
  color: var(--accent);
}
.gild-switch[aria-checked="true"] .switch-track {
  border-color: var(--accent);
}
.gild-switch[aria-checked="true"] .switch-track::after {
  transform: translateX(14px);
  background: var(--accent);
}
#planner-alchemy-body {
  border-top: 1px solid var(--line);
  padding: 20px 22px;
}
.planner-alchemy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 24px;
  align-items: center;
}
.planner-alchemy-controls > p,
.planner-alchemy-recipe > p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.planner-alchemy-controls > label {
  display: grid;
  gap: 8px;
  font-size: 17px;
  color: var(--muted);
}
.planner-alchemy .planner-summary {
  margin: 20px 0;
}
.planner-alchemy .planner-summary strong {
  font-size: clamp(23px, 1.9vw, 31px);
}
.planner-alchemy-recipe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.save-receipt {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 10px 4px;
}
.save-receipt-mark {
  position: relative;
  display: inline-flex;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
}
.save-receipt-mark > img {
  image-rendering: pixelated;
  object-fit: contain;
}
.save-receipt-mark > span {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
}
.save-receipt-mark svg {
  width: 16px;
  height: 16px;
}
.save-receipt h3 {
  margin: 0 0 12px;
  font-size: 29px;
}
.save-receipt p {
  max-width: 48ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.save-receipt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
}
.save-receipt-actions > * {
  min-height: 46px;
}
@media (max-width: 700px) {
  .planner-list-chooser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planner-list-chooser > label {
    grid-column: 1 / -1;
  }
  .planner-list-chooser > #delete-buy-list {
    grid-column: auto;
  }
  .planner-list-chooser > .planner-new-list {
    width: 100%;
    justify-content: center;
  }
  .planner-alchemy-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .planner-alchemy-recipe {
    flex-direction: column;
    align-items: start;
  }
  .market-summary > div,
  .market-summary > div:first-child,
  .market-summary > div:last-child {
    border: 0;
    padding: 16px;
  }
  .journal-summary > div:nth-child(3) {
    border-left: 0;
  }
  .planner-summary > div {
    border: 0;
  }
  .save-receipt-actions {
    flex-direction: column;
  }
  .save-receipt-actions > * {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .switch-track::after,
  .contact-guide > summary > svg {
    transition: none;
  }
}
:root[data-reduced-motion="true"]
  :is(.switch-track::after, .contact-guide > summary > svg) {
  transition: none;
}

.planner-list-chooser {
  grid-template-columns: minmax(0, 1fr) auto;
}
.planner-list-chooser:has(#delete-buy-list) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
@media (max-width: 700px) {
  .planner-list-chooser,
  .planner-list-chooser:has(#delete-buy-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planner-list-chooser:not(:has(#delete-buy-list)) > .planner-new-list {
    grid-column: 1 / -1;
  }
}

/* Account ranks use compact game-like labels, with the requested white/green glow. */
.profile-role-badge.rank-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 5px;
  min-height: 20px;
  border: 1px solid #dce2d052;
  border-radius: 3px;
  background: #1d231b;
  color: #eef3e9;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 0 5px #ffffff70;
  box-shadow: 0 0 5px #ffffff12;
}
.profile-role-badge.rank-label[data-role="supporter"] {
  color: var(--accent);
  border-color: #b8e66c75;
  background: #1c2816;
  text-shadow: 0 0 6px #b8e66c8c;
  box-shadow: 0 0 7px #b8e66c20;
}
.profile-role-badge.rank-label[data-role="developer"] {
  color: var(--selection);
  border-color: var(--selection);
  text-shadow: none;
  box-shadow: none;
}
.flip-result > .flip-result-heading {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
}
.flip-result-heading > span:first-child {
  color: var(--muted);
  font-size: 19px;
}
.flip-result .flip-result-heading #flip-roi {
  display: inline;
  margin: 0;
  white-space: nowrap;
  font-size: 18px;
  text-align: right;
}
.flip-result > #flip-profit {
  display: block;
}
.flipper-layout {
  grid-template-columns: minmax(0, 1fr);
}
.flipper-record {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin: 24px 0;
}
.flipper-record .ledger-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.flipper-record .ledger-heading h2 {
  font-size: 22px;
  margin: 0;
}
.flipper-record .ledger-heading > a {
  margin-left: auto;
}
.flipper-record .ledger-heading img {
  image-rendering: pixelated;
  object-fit: contain;
}
.flipper-record .outcome-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.flipper-record .outcome-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}
.flipper-record .outcome-lines dd {
  font-size: 25px;
}
.flipper-record .ledger-note {
  margin: 14px 0 0;
  max-width: none;
}
.alch-plan-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.alch-plan-toolbar label {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 17px;
}
.alch-plan-toolbar input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
}
.alch-directory-note {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 20px;
}
.alch-directory-list {
  display: grid;
  gap: 12px;
}
.alch-directory-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.alch-directory-row.active {
  border-color: var(--selection);
}
.alch-directory-open {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.alch-directory-icons {
  display: flex;
  align-items: center;
}
.alch-directory-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-right: -7px;
}
.alch-directory-name,
.alch-directory-profit {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.alch-directory-name strong {
  font-size: 23px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.alch-directory-name small,
.alch-directory-profit small {
  font-size: 15px;
  color: var(--muted);
}
.alch-directory-profit {
  text-align: right;
}
.alch-directory-profit strong {
  font-size: 22px;
  font-weight: 400;
  white-space: nowrap;
}
/* A denser market treemap retains the item identity and all exact data in its list view. */
.treemap-surface .map-tile {
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.treemap-surface .map-tile-body {
  padding: 12px;
  gap: 7px;
  justify-content: center;
}
.treemap-surface .map-tile-head {
  gap: 7px;
  align-items: center;
}
.treemap-surface .map-tile-head strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
  display: block;
  line-height: 1.1;
  font-size: 16px;
}
.treemap-surface .map-tile-head img {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}
.treemap-surface .map-tile-change {
  font-size: 26px;
  line-height: 1.15;
}
.treemap-surface .map-tile-change small {
  font-size: 12px;
}
.treemap-surface .map-tile-price,
.treemap-surface .map-tile-volume {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
}
.treemap-surface .map-tile-price > small,
.treemap-surface .map-tile-volume > small {
  font-size: 12px;
}
.treemap-surface .map-tile-price strong,
.treemap-surface .map-tile-volume strong {
  font-size: 15px;
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-body {
  padding: 25px;
  gap: 18px;
}
.treemap-surface .map-tile[data-map-scale="lead"] .map-tile-change {
  font-size: 52px;
}
.treemap-surface .map-tile[data-map-scale="medium"] .map-tile-change {
  font-size: 35px;
}
.treemap-surface .map-tile[data-map-scale="compact"] .map-tile-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.treemap-surface .map-tile[data-map-scale="compact"] .map-tile-price,
.treemap-surface .map-tile[data-map-scale="compact"] .map-tile-volume {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.treemap-surface .map-tile[data-map-scale="lead"] {
  padding: 0;
}
.support-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 17px;
  white-space: nowrap;
  color: var(--text);
}
.support-project-link img {
  object-fit: contain;
  flex-shrink: 0;
}
.support-project-link:hover {
  border-color: var(--selection);
  color: var(--selection);
}
.welcome-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.project-support {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 44px;
  align-items: start;
}
.project-support-copy {
  min-width: 0;
}
.project-support-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}
.project-support-identity img {
  object-fit: contain;
  image-rendering: pixelated;
}
.project-support-identity h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}
.project-support-copy > p {
  margin: 22px 0;
  max-width: 62ch;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
}
.project-support-work {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}
.project-support-work > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.project-support-work dt {
  font-size: 23px;
  margin: 0 0 7px;
}
.project-support-work dd {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  color: var(--muted);
}
.kofi-support {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 30px;
  background: var(--surface);
  text-align: center;
}
.kofi-project-logo {
  display: block;
  object-fit: contain;
  margin: 0 auto 22px;
}
.kofi-support h2 {
  font-size: 30px;
  margin: 0 0 15px;
}
.kofi-support p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 24px;
}
.kofi-support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  font-size: 22px;
}
.kofi-support-button > svg {
  width: 18px;
  height: 18px;
}
.kofi-support-address {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin: 13px 0 24px;
}
.kofi-support .kofi-optional-note {
  font-size: 17px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project-support-faq {
  margin-top: 36px;
}
.project-support-faq > details {
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.project-support-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  font-size: 23px;
  cursor: pointer;
}
.project-support-faq summary::-webkit-details-marker {
  display: none;
}
.project-support-faq summary svg {
  width: 18px;
  height: 18px;
}
.project-support-faq p {
  font-size: 19px;
  color: var(--muted);
}
.project-support-faq details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.notification-popover {
  padding: 0;
}
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
.notification-header h2 {
  margin: 0;
  font-size: 25px;
}
.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
}
.notification-toolbar > div {
  display: flex;
  gap: 15px;
}
.notification-toolbar button {
  color: var(--muted);
  font-size: 16px;
}
.notification-toolbar [aria-pressed="true"] {
  color: var(--accent);
}
.notification-list {
  max-height: min(520px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.notification-row {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-left: 2px solid transparent;
}
.notification-row.unread {
  border-left-color: var(--accent);
  background: var(--surface-hover);
}
.notification-row > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 28px;
}
.notification-row > span {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.notification-row strong {
  font-size: 21px;
  font-weight: 400;
}
.notification-row span > span {
  font-size: 17px;
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notification-row small {
  font-size: 15px;
  color: var(--muted);
}
.notification-row:hover strong {
  color: var(--accent);
}
.notification-empty {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  padding: 20px 18px;
  margin: 0;
}
.notification-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.notification-footer a:hover {
  color: var(--accent);
}
.notification-watching {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.notification-watching h3 {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
}
.notification-watching > a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 19px;
}
.notification-watching img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
}
.notification-watching small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
@media (max-width: 1280px) {
  .header-actions .support-project-link > span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .header-actions .support-project-link {
    width: 36px;
    padding: 7px;
  }
}
@media (max-width: 760px) {
  .project-support {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .project-support-identity h2 {
    font-size: 31px;
  }
  .project-support-copy > p {
    font-size: 20px;
  }
  .welcome-header-actions {
    grid-row: 1;
    grid-column: 2;
    gap: 8px;
  }
  .welcome-header-actions .support-project-link > span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .welcome-header-actions .support-project-link {
    width: 36px;
    padding: 7px;
  }
  .flipper-record .outcome-lines {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
}
@media (max-width: 500px) {
  .alch-directory-open {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .alch-directory-icons img {
    width: 24px;
    height: 24px;
    margin-right: -10px;
  }
  .alch-directory-profit {
    grid-column: 2;
    text-align: left;
  }
  .alch-plan-toolbar {
    flex-wrap: wrap;
  }
  .alch-plan-toolbar > label {
    flex-basis: 100%;
  }
  .notification-toolbar {
    gap: 9px;
    padding-inline: 12px;
  }
  .notification-toolbar > div {
    gap: 10px;
  }
  .notification-toolbar button {
    font-size: 15px;
  }
  .notification-footer {
    flex-wrap: wrap;
    font-size: 16px;
  }
}

/* Recovery shares the sign-in form, with paired fields that become one column on phones. */
.auth-forgot-password {
  display: block;
  width: fit-content;
  margin: 12px 0 0 auto;
  color: var(--accent);
  font-size: 18px;
}
.auth-forgot-password:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#recovery-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.recovery-field {
  min-width: 0;
  margin-bottom: 20px;
}
.recovery-field > label {
  display: block;
  color: var(--secondary);
  font-size: 19px;
  margin-bottom: 9px;
}
.recovery-field > .select-control {
  width: 100%;
}
.recovery-field .select-trigger {
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  min-height: 48px;
}
.recovery-new-password {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 26px;
}
.recovery-new-password h2 {
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 400;
}
.recovery-new-password .recovery-field {
  margin-bottom: 0;
}
.recovery-new-password > .auth-input-help {
  margin: 13px 0 0;
  line-height: 1.4;
}
.auth-recovery .auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.auth-recovery .auth-submit [data-recovery-label] {
  margin: 0;
}
.recovery-complete-check {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
}
.recovery-complete-check svg {
  width: 32px;
  height: 32px;
}
#recovery-error {
  margin-top: 22px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .recovery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .recovery-new-password .recovery-field + .recovery-field {
    margin-top: 20px;
  }
}

/* Keep long identities readable instead of truncating them beside the rank label. */
.sidebar-profile .profile-name-line {
  flex-wrap: wrap;
  gap: 5px 7px;
}
.sidebar-profile .profile-name-line > strong {
  flex: 1 0 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.sidebar-profile .profile-copy small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.sidebar-account {
  flex-shrink: 0;
}
#product-page > .account-layout {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.account-layout > div,
.account-layout > aside {
  min-width: 0;
  width: 100%;
  max-width: none;
}
.account-layout .settings-section > label,
.account-layout .vault-transfer,
.account-layout .vault-collection,
.account-layout aside .method-panel {
  width: 100%;
  max-width: none;
}
.page-account #account-form .settings-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.page-account #account-form .settings-section > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.page-account .settings-section .profile-photo-editor {
  margin: 0;
}
.danger-icon {
  color: var(--red);
  flex: 0 0 auto;
}
.danger-icon svg {
  width: 20px;
  height: 20px;
}
.danger-icon:hover {
  background: var(--red-bg);
  color: var(--red);
}
:root[data-price-refresh] {
  overflow-anchor: none;
}
.money-cell,
.market-summary strong,
.journal-summary strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1250px) {
  .page-account #account-form .settings-section {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  #product-page > .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.asset-actions {
  flex-wrap: wrap;
  align-items: center;
}
.asset-actions #asset-buy-list {
  white-space: nowrap;
  gap: 8px;
}
.asset-actions #asset-buy-list img {
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.planner-zero {
  margin: 32px 0;
  padding: 46px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.change-entry h2 a:hover {
  color: var(--accent);
}
.change-entry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.change-entry[data-change-entry] {
  cursor: pointer;
}
.change-detail {
  max-width: 960px;
  width: 100%;
  padding: 12px 0 30px;
}
.change-detail > header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.change-detail h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin: 28px 0;
  overflow-wrap: anywhere;
}
.change-detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.map-view-toolbar {
  flex-wrap: wrap;
  row-gap: 14px;
}
.map-share-button {
  margin-left: auto;
  white-space: nowrap;
}

.asset-topline {
  flex-wrap: wrap;
  row-gap: 18px;
}
.asset-topline > .asset-name {
  min-width: 0;
}
.asset-topline > .asset-actions {
  margin-left: auto;
}
@media (max-width: 600px) {
  .asset-topline > .asset-actions {
    margin-left: 0;
    width: 100%;
  }
}

.page-account .settings-section .profile-photo-editor {
  border: 0;
  padding: 0;
}

.account-layout > aside {
  display: block;
}
.planner-summary strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* The desktop rail is fixed and non-scrollable. Cramped layouts use a closed, explicit drawer. */
.site-sidebar {
  box-sizing: border-box;
  width: 240px;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
  overflow-anchor: none;
  scrollbar-width: none;
  touch-action: pinch-zoom;
}
.site-sidebar::-webkit-scrollbar {
  display: none;
}
.site-sidebar > .brand,
.site-sidebar > .sidebar-pages,
.site-sidebar > .sidebar-account {
  flex-shrink: 0;
}
:root[data-navigation-mode="rail"] {
  --sidebar-width: 240px;
}
:root.sidebar-collapsed[data-navigation-mode="rail"],
:root[data-navigation-mode="drawer"] {
  --sidebar-width: 0px;
}
:root[data-navigation-mode="drawer"] .site-sidebar {
  display: flex;
  visibility: hidden;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: none;
}
:root[data-navigation-mode="drawer"] .navigation-toggle {
  display: grid;
}
@media (min-width: 1100px) {
  .site-sidebar {
    padding: 24px 14px 16px;
  }
  .site-sidebar .brand {
    margin-bottom: 22px;
  }
  .site-sidebar .sidebar-pages {
    gap: 2px;
  }
  .site-sidebar .sidebar-link {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 20px;
    line-height: 1.25;
  }
  .site-sidebar .sidebar-account {
    padding-top: 12px;
  }
}
@media (min-width: 1100px) and (max-height: 900px) {
  .site-sidebar {
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .site-sidebar .brand {
    margin-bottom: 16px;
  }
  .site-sidebar .sidebar-pages {
    gap: 1px;
  }
  .site-sidebar .sidebar-link {
    min-height: 36px;
    padding-block: 5px;
    font-size: 18px;
  }
  .site-sidebar .sidebar-profile {
    padding-block: 10px;
  }
}
@media (min-width: 1100px) and (max-height: 760px) {
  .site-sidebar {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .site-sidebar .brand {
    margin-bottom: 12px;
  }
  .site-sidebar .sidebar-pages {
    gap: 0;
  }
  .site-sidebar .sidebar-link {
    min-height: 32px;
    padding-block: 3px;
  }
  .site-sidebar .sidebar-link .nav-sprite img {
    width: 24px;
    height: 24px;
  }
  .site-sidebar .sidebar-account {
    padding-top: 8px;
  }
}
.navigation-dialog[open] {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.navigation-dialog > .navigation-dialog-header {
  flex: 0 0 auto;
}
.navigation-dialog > .drawer-navigation {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y pinch-zoom;
}
.drawer-navigation > .sidebar-pages,
.drawer-navigation > .sidebar-account {
  flex-shrink: 0;
}

:root[data-navigation-density="compact"] .site-sidebar {
  padding-top: 18px;
  padding-bottom: 12px;
}
:root[data-navigation-density="compact"] .site-sidebar .brand {
  margin-bottom: 16px;
}
:root[data-navigation-density="compact"] .site-sidebar .sidebar-pages {
  gap: 1px;
}
:root[data-navigation-density="compact"] .site-sidebar .sidebar-link {
  min-height: 36px;
  padding-block: 5px;
  font-size: 18px;
}
:root[data-navigation-density="compact"] .site-sidebar .sidebar-profile {
  padding-block: 10px;
}
:root[data-navigation-density="tight"] .site-sidebar {
  padding-top: 12px;
  padding-bottom: 10px;
}
:root[data-navigation-density="tight"] .site-sidebar .brand {
  margin-bottom: 12px;
}
:root[data-navigation-density="tight"] .site-sidebar .sidebar-pages {
  gap: 0;
}
:root[data-navigation-density="tight"] .site-sidebar .sidebar-link {
  min-height: 32px;
  padding-block: 3px;
  font-size: 18px;
}
:root[data-navigation-density="tight"]
  .site-sidebar
  .sidebar-link
  .nav-sprite
  img {
  width: 24px;
  height: 24px;
}
:root[data-navigation-density="tight"] .site-sidebar .sidebar-account {
  padding-top: 8px;
}
:root[data-navigation-density="tight"] .site-sidebar .sidebar-profile {
  padding-block: 10px;
}

/* Route loads restore the rail immediately; only deliberate toggles animate it. */
.site-sidebar {
  transition: none;
}
:root.navigation-animating:not([data-reduced-motion="true"]) .site-sidebar {
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 180ms ease;
}
:root[data-navigation-density="tight"]
  .site-sidebar
  .sidebar-link
  > .nav-sprite {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
@media (prefers-reduced-motion: reduce) {
  :root.navigation-animating .site-sidebar {
    transition: none;
  }
}

/* The Flipper has one content column; the former scoring rail is part of Flip estimates. */
.page-flipper .flipper-layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
.page-flipper .flipper-main {
  width: 100%;
  min-width: 0;
}

/* Account entry is a focused page, with no market navigation or market controls. */
#gild-app[data-layout="auth"] {
  --sidebar-width: 0px;
}
#gild-app[data-layout="auth"] .site-sidebar,
#gild-app[data-layout="auth"] .navigation-toggle,
#gild-app[data-layout="auth"] .global-search,
#gild-app[data-layout="auth"] .header-tools,
#gild-app[data-layout="auth"] .ticker,
#gild-app[data-layout="auth"] .page-heading,
#gild-app[data-layout="auth"] .mobile-nav,
#gild-app[data-layout="auth"] #about-button {
  display: none;
}
#gild-app[data-layout="auth"] .topbar {
  margin-left: 0;
  width: 100%;
  min-height: 76px;
  padding-inline: clamp(20px, 5vw, 64px);
}
#gild-app[data-layout="auth"] .topbar > .brand {
  display: flex;
}
#gild-app[data-layout="auth"] .workspace {
  width: 100%;
  margin: 0;
  padding: 32px 20px 0;
}
#gild-app[data-layout="auth"] #product-page {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
body:has(#gild-app[data-layout="auth"]) {
  padding-bottom: 0;
}
#welcome-session {
  display: flex;
  align-items: center;
  justify-content: end;
  min-width: 44px;
}
.welcome-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: border-color 160ms ease;
}
.welcome-profile:hover,
.welcome-profile:focus-visible {
  border-color: var(--accent);
}
.welcome-profile .profile-portrait {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 25px;
}
@media (max-width: 480px) {
  #gild-app[data-layout="auth"] .workspace {
    padding-inline: 12px;
  }
}

[data-welcome-create][hidden] {
  display: none;
}
#identity-form .identity-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 24px;
}
#identity-form .security-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
#identity-form .security-field > label,
#identity-form .security-field-heading {
  min-height: 26px;
}
#identity-form .security-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
#identity-form .security-field-heading > label {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
#identity-form .optional-label {
  font-size: 15px;
  color: var(--muted);
}
#identity-form input {
  height: 48px;
  min-height: 48px;
  align-self: start;
  font-size: 19px;
  line-height: 24px;
  padding-block: 11px;
}
#identity-form .security-hint {
  font-size: 16px;
  line-height: 1.45;
}
#identity-form .identity-confirmation {
  width: min(100%, 480px);
}
.email-verification {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
}
.email-verification[data-state="verified"] {
  color: var(--accent);
}
.email-verification[data-state="unverified"] {
  color: var(--red);
}
.email-verification > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 2.3;
}
@media (max-width: 680px) {
  #identity-form .identity-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #identity-form .identity-confirmation {
    width: 100%;
  }
}

body:has(.email-action-page) {
  padding: 0;
}

.sidebar-link.member-locked,
.mobile-nav .member-locked {
  color: var(--faint);
}
.sidebar-link.member-locked > .nav-sprite,
.drawer-navigation .member-locked > .nav-sprite {
  opacity: 0.45;
  filter: grayscale(1);
}
.sidebar-link.member-locked:hover,
.sidebar-link.member-locked:focus-visible {
  background: var(--surface);
  color: var(--muted);
}
.member-access-prompt {
  text-align: center;
  padding: 6px 0 4px;
}
.member-access-prompt > img {
  margin-inline: auto;
  image-rendering: pixelated;
  object-fit: contain;
}
.member-access-prompt h3 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin: 20px 0 12px;
}
.member-access-prompt > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 auto 24px;
}
.member-access-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.member-access-actions > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  font-size: 19px;
}
.member-access-prompt > .text-button {
  font-size: 18px;
}
@media (max-width: 380px) {
  .member-access-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
.email-action-page {
  min-height: 100svh;
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: 32px;
}
.email-action-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.email-action-header .brand {
  flex-shrink: 0;
}
.email-action-header > .text-button {
  font-size: 18px;
}
.email-action-main {
  width: min(100%, 480px);
  margin: clamp(40px, 9vh, 100px) auto 40px;
}
.email-action-panel {
  padding: 40px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}
.email-action-panel h1 {
  margin: 22px 0 12px;
  color: var(--text);
  font-size: 36px;
  line-height: 1.15;
}
.email-action-panel > p {
  margin: 0 auto 26px;
  max-width: 32ch;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}
.email-action-envelope {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-inline: auto;
}
.email-action-progress {
  width: 104px;
  height: 3px;
  overflow: hidden;
  margin: 30px auto 12px;
  background: var(--line);
}
.email-action-progress > span {
  display: block;
  width: 40px;
  height: 100%;
  background: var(--accent);
  animation: email-checking 1200ms ease-in-out infinite;
}
.email-action-seal {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto;
}
.email-success-check {
  display: block;
  width: 84px;
  height: 84px;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.email-success-check circle {
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: email-circle 480ms ease-out forwards;
}
.email-success-check path {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: email-circle 340ms 350ms ease-out forwards;
}
.email-action-seal > img {
  position: absolute;
  right: -5px;
  bottom: 0;
  image-rendering: pixelated;
  animation: email-seal-reveal 220ms 550ms ease-out both;
}
.email-action-panel > .primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.email-action-panel > .text-button {
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
}
.email-action-note {
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  margin: 20px 0 0;
}
.email-action-error-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-inline: auto;
  color: var(--red);
}
.email-action-error-icon > svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
#email-reset-form {
  display: grid;
  gap: 10px;
  text-align: left;
}
#email-reset-form > label {
  font-size: 18px;
  color: var(--muted);
}
.email-password-field {
  display: flex;
  position: relative;
  margin-bottom: 12px;
}
.email-password-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 64px 10px 12px;
}
.email-password-field input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.email-password-field > button {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--muted);
}
#email-reset-form > .primary-button {
  min-height: 48px;
  justify-content: center;
  font-size: 20px;
}
#email-reset-form > .email-reset-error {
  color: var(--red);
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 12px;
}
@keyframes email-checking {
  0% {
    transform: translateX(-40px);
  }
  100% {
    transform: translateX(104px);
  }
}
@keyframes email-circle {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes email-seal-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 520px) {
  .email-action-page {
    padding-inline: 20px;
  }
  .email-action-header {
    min-height: 76px;
  }
  .email-action-header > .text-button {
    font-size: 16px;
  }
  .email-action-header .game-tag {
    display: none;
  }
  .email-action-panel {
    padding: 30px 22px 26px;
  }
  .email-action-panel h1 {
    font-size: 31px;
  }
  .email-action-panel > p {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .email-action-progress > span,
  .email-success-check circle,
  .email-success-check path,
  .email-action-seal > img {
    animation: none;
  }
  .email-success-check circle,
  .email-success-check path {
    stroke-dashoffset: 0;
  }
}

/* RuneMarket identity and device notification preferences. */
.brand-mark {
  flex: 0 0 32px;
  image-rendering: pixelated;
}
.brand-wordmark {
  font-size: 26px;
  letter-spacing: -0.6px;
  white-space: nowrap;
  color: var(--text);
}
.brand-wordmark > span {
  color: var(--accent);
}
.site-sidebar .brand {
  gap: 8px;
}
.site-sidebar .brand .game-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 4px;
}
.browser-notifications {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  margin: 22px 0;
}
.browser-notifications > img {
  image-rendering: pixelated;
  flex-shrink: 0;
}
.browser-notifications > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.browser-notifications h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.browser-notifications p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.5;
}
.browser-notification-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .browser-notifications {
    flex-wrap: wrap;
  }
  .browser-notification-actions {
    width: 100%;
    padding-left: 50px;
  }
}
@media (max-width: 480px) {
  .brand-wordmark {
    font-size: 24px;
  }
  .browser-notifications {
    padding: 16px;
    gap: 12px;
  }
  .browser-notification-actions {
    padding-left: 0;
  }
  .browser-notification-actions button {
    white-space: normal;
  }
}

.site-sidebar .brand > .brand-wordmark {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.site-sidebar .brand .game-tag {
  display: none;
}
.topbar > .brand > .brand-wordmark {
  font-size: 24px;
  letter-spacing: -0.6px;
}
@media (max-width: 480px) {
  .topbar > .brand .game-tag {
    display: none;
  }
  .topbar > .brand > .brand-wordmark {
    font-size: 22px;
  }
}
.site-sidebar .brand {
  margin-inline: 0;
}
.welcome-header .brand > .brand-wordmark {
  font-size: 28px;
  letter-spacing: -0.6px;
}
@media (max-width: 760px) {
  .welcome-header .brand .game-tag {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar > .brand > .brand-wordmark {
    display: none;
  }
  .topbar > .brand > .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
@media (max-width: 420px) {
  .welcome-header {
    gap: 12px;
  }
  .welcome-header .brand {
    gap: 6px;
  }
  .welcome-header .brand > .brand-wordmark {
    font-size: 22px;
  }
  .welcome-header .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .welcome-header-actions {
    gap: 6px;
  }
  .welcome-header-actions .secondary-button {
    padding: 8px 10px;
    font-size: 18px;
  }
  .welcome-header-actions .support-project-link {
    width: 32px;
  }
}
