/* Shared Quick Chart card — Academy sheet + Cast DIY placeholder */
.qref-frame {
  --gx-gold: var(--gold, #c4a35a);
  --gx-elevated: var(--elevated, #f8f5ec);
  --gx-font-display: var(--font-d, Philosopher, serif);
  --gx-a2: var(--a2, #193828);
  --gx-a3: var(--a3, #2a935f);
  --gx-b1: var(--b1, #c2d055);
  --gx-ink: var(--gx-gold, #c4a35a);
}
.qref__glyph {
  display: flex;
  flex-direction: column;
  gap: var(--gx-yao-gap, 7px);
  width: var(--gx-hex-w, 83px);
}
.qref__yao {
  width: var(--gx-hex-w, 83px);
  height: var(--gx-yao-h, 8px);
  border-radius: var(--gx-yao-r, 3px);
  background: var(--gx-ink, #c4a35a);
}
.qref__yao.is-yin {
  display: flex;
  gap: 7px;
  background: transparent;
}
.qref__yao.is-yin i {
  flex: 1;
  height: inherit;
  border-radius: inherit;
  background: var(--gx-ink, #c4a35a);
}

/* Quick Reference — 3:4 collection card, scaled to the column */
.qref-block {
  width: 100%;
}
.qref-block__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.qref-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  container-type: inline-size;
  overflow: hidden;
}
.qref__breakdown {
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  font: 500 14px / 1.45 var(--gx-font-ui, "Josefin Sans", sans-serif);
  letter-spacing: 0.01em;
  color: rgba(248, 245, 236, 0.5);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.qref__breakdown:hover {
  color: rgba(248, 245, 236, 0.88);
}
.qref {
  position: relative;
  isolation: isolate;
  width: 768px;
  height: 1024px;
  margin: 0;
  display: grid;
  grid-template-rows: 50px 367px minmax(0, 1fr) 42px;
  overflow: hidden;
  transform: scale(calc(100cqw / 768px));
  transform-origin: top left;
  border: 1px solid color-mix(in srgb, var(--gx-gold) 42%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(42, 147, 95, 0.18), transparent 32%),
    radial-gradient(circle at 8% 54%, rgba(196, 163, 90, 0.08), transparent 25%),
    #0c1d17;
  color: var(--gx-elevated, #f8f5ec);
  box-shadow: 0 26px 80px rgba(12, 20, 16, 0.2);
}
.qref::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    radial-gradient(circle, rgba(200, 208, 134, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(196, 163, 90, 0.72) 0 1px, transparent 1.5px);
  background-position: 20px 26px, 58px 70px;
  background-size: 88px 92px, 126px 118px;
  mask-image: linear-gradient(180deg, #000, transparent 48%);
}
.qref p,
.qref h3,
.qref dl,
.qref dd {
  margin: 0;
}
.qref p,
.qref dd {
  color: rgba(248, 245, 236, 0.86);
  font-size: 10.8px;
  line-height: 1.42;
  text-wrap: pretty;
}
.qref__topbar {
  min-width: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.28);
  background: rgba(6, 18, 14, 0.72);
}
.qref__wordmark {
  min-width: 0;
  width: 118px;
  display: block;
}
.qref__wordmark img {
  display: block;
  width: 118px;
  height: auto;
  object-fit: contain;
}
.qref__wordmark span,
.qref__topbar > p {
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.qref__wordmark span {
  display: block;
  width: 88px;
  margin: 2px 0 0 30px;
  text-align: center;
  color: rgba(248, 245, 236, 0.5);
}
.qref__topbar > p {
  color: var(--gx-gold, #c4a35a);
}
.qref__masthead {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  min-width: 0;
  width: 100%;
  padding: 18px 26px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.qref__label {
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gx-gold, #c4a35a);
}
.qref__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.qref__title-row h3 {
  font-family: var(--gx-font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--gx-elevated, #f8f5ec);
  text-shadow: 0 2px 12px rgba(6, 18, 14, 0.72);
}
.qref__title-row span {
  font-size: 15px;
  font-weight: 600;
  color: rgba(248, 245, 236, 0.7);
}
.qref__symbol {
  flex: none;
  --gx-ink: var(--gx-gold, #c4a35a);
  --gx-hex-w: 83px;
  --gx-yao-h: 8px;
  --gx-yao-r: 3px;
  --gx-yao-gap: 7px;
  filter: drop-shadow(0 10px 30px rgba(196, 163, 90, 0.2));
}
.qref__art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(196, 163, 90, 0.28);
  border-bottom: 1px solid rgba(196, 163, 90, 0.28);
  background: var(--gx-a2, #193828);
}
.qref__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.055);
  filter: saturate(0.86) contrast(1.08);
}
.qref__vibe {
  padding: 9px 24px 10px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
  background: rgba(42, 147, 95, 0.08);
}
.qref__vibe .qref__label {
  margin: 0;
  color: var(--gx-a3, #2a935f);
}
.qref__vibe p:last-child {
  font-family: var(--gx-font-display);
  font-size: 11.6px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(248, 245, 236, 0.92);
}
.qref__art-keywords {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 18px;
  font-size: 8.8px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gx-gold, #c4a35a);
  text-shadow: 0 2px 8px rgba(6, 18, 14, 0.92);
}
.qref__content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  background: rgba(7, 26, 20, 0.84);
}
.qref__primary {
  display: block;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref__primary > section {
  padding: 14px 24px 15px;
}
.qref__primary > section:first-child {
  border-right: 0;
}
.qref__primary .qref__label,
.qref__structure .qref__label,
.qref-brief .qref__label {
  margin-bottom: 7px;
}
.qref__primary > section:first-child p:last-child {
  font-family: var(--gx-font-display);
  font-size: 12.2px;
  font-weight: 700;
  line-height: 1.38;
}
.qref__stance {
  background: rgba(200, 208, 134, 0.11);
}
.qref__stance p:last-child {
  color: rgba(248, 245, 236, 0.92);
  font-weight: 600;
}
.qref__stance--full {
  padding: 9px 24px 10px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref__structure {
  padding: 10px 24px 11px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref__structure p:last-child {
  font-size: 10.2px;
  line-height: 1.38;
  color: rgba(248, 245, 236, 0.76);
}
.qref__matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref-brief {
  padding: 9px 16px 10px 24px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.14);
}
.qref-brief .qref__label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.qref__brief-icon {
  flex: none;
  width: 15.5px;
  height: 15.5px;
  filter: drop-shadow(0 2px 5px rgba(12, 20, 16, 0.22));
}
.qref-brief:nth-child(odd) {
  border-right: 1px solid rgba(196, 163, 90, 0.18);
}
.qref-brief:nth-child(even) {
  padding-left: 16px;
  padding-right: 24px;
}
.qref-brief:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.qref-brief p:last-child {
  font-size: 10px;
  line-height: 1.34;
  color: rgba(248, 245, 236, 0.78);
}
.qref-brief:nth-child(3) .qref__label {
  color: var(--gx-b1, #c2d055);
}
.qref-brief:nth-child(4) .qref__label {
  color: #dc8e75;
}
.qref-brief--opportunity .qref__label {
  color: var(--gx-b1, #c2d055);
}
.qref-brief--risk .qref__label {
  color: #dc8e75;
}
.qref-brief--inner .qref__label {
  color: #8dc9b6;
}
.qref-brief--outer .qref__label {
  color: #f2c568;
}
.qref__checks {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.qref__checks > header {
  padding: 9px 24px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref__checks > header > p:last-child {
  font-size: 9.2px;
  line-height: 1.25;
  color: rgba(248, 245, 236, 0.48);
}
.qref__checks dl {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}
.qref__checks dl > div {
  min-height: 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(196, 163, 90, 0.14);
}
.qref__checks dl > div:last-child {
  border-bottom: 0;
}
.qref__checks dt {
  align-self: stretch;
  padding: 5px 12px 5px 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-right: 1px solid rgba(196, 163, 90, 0.18);
  font-size: 8.6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gx-gold, #c4a35a);
}
.qref__check-icon {
  flex: none;
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 2px 5px rgba(12, 20, 16, 0.22));
}
.qref__check-icon--crush {
  color: #dc8e75;
}
.qref__check-icon--bag {
  color: var(--gx-gold, #c4a35a);
}
.qref__check-icon--cash {
  color: var(--gx-b1, #c2d055);
}
.qref__check-icon--glow {
  color: #f2c568;
}
.qref__check-icon--squad {
  color: #8dc9b6;
}
.qref__checks dd {
  padding: 5px 24px 5px 16px;
  font-size: 9.5px;
  line-height: 1.3;
  color: rgba(248, 245, 236, 0.78);
}
.qref__footer {
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  border-top: 1px solid rgba(196, 163, 90, 0.3);
  background: rgba(6, 18, 14, 0.82);
}
.qref__footer > p {
  min-width: 0;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 245, 236, 0.5);
}
.qref__footer > p:last-of-type {
  justify-self: end;
  text-align: right;
}
.qref__footer > div {
  display: flex;
  justify-self: center;
  gap: 10px;
}
.qref__footer i {
  width: 6px;
  height: 6px;
  display: block;
  background: var(--gx-gold, #c4a35a);
  transform: rotate(45deg);
}
.qref__structure .qref__label,
.qref__primary .qref__label,
.qref__keys-block .qref__label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.qref__keys-block {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, auto);
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref__keys-block > header {
  padding: 9px 24px 8px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref__keys-block dl {
  margin: 0;
  min-height: 0;
}
.qref__keys-block dl > div {
  min-height: 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid rgba(196, 163, 90, 0.14);
}
.qref__keys-block dl > div:last-child {
  border-bottom: 0;
}
.qref__keys-block dt {
  align-self: stretch;
  padding: 6px 12px 6px 24px;
  border-right: 1px solid rgba(196, 163, 90, 0.18);
  font-size: 8.6px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gx-gold, #c4a35a);
}
.qref__keys-block dd {
  padding: 6px 24px 6px 16px;
  font-size: 9.5px;
  line-height: 1.34;
  color: rgba(248, 245, 236, 0.78);
}
.qref__line-head {
  padding: 12px 24px 10px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}
.qref p.qref__line-title {
  margin: 0;
  font-family: var(--gx-font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gx-elevated, #f8f5ec);
}
.qref__sub .qref__label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gx-a3, #2a935f);
}
/* AI reading card — Quick Chart chrome, 4:3 dialogue, readable body */
.qref-frame.qref-frame--chat {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  container-type: inline-size;
  overflow: visible;
}
.qref-frame--chat .qref.qref--chat {
  --chat-shell: calc(100cqw / 768px);
  width: 100%;
  height: auto;
  transform: none;
  display: grid;
  grid-template-rows: auto auto auto auto;
  overflow: hidden;
}
.qref-frame--chat .qref__topbar {
  min-height: calc(50px * var(--chat-shell));
  padding: 0 calc(24px * var(--chat-shell));
  gap: calc(18px * var(--chat-shell));
}
.qref-frame--chat .qref__wordmark,
.qref-frame--chat .qref__wordmark img {
  width: calc(118px * var(--chat-shell));
}
.qref-frame--chat .qref__wordmark span {
  width: calc(88px * var(--chat-shell));
  margin: calc(2px * var(--chat-shell)) 0 0 calc(30px * var(--chat-shell));
  font-size: calc(8.5px * var(--chat-shell));
}
.qref-frame--chat .qref__topbar > p {
  font-size: calc(8.5px * var(--chat-shell));
}
.qref-frame--chat .qref__art.qref__art--chat {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: #0c1d17;
  border-top: 1px solid rgba(196, 163, 90, 0.28);
  border-bottom: 1px solid rgba(196, 163, 90, 0.28);
}
.qref-frame--chat .qref--chat p.qref-chat__ask {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  padding: 16px clamp(16px, 3vw, 24px) 10px;
  font-family: var(--gx-font-display, Philosopher, serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(248, 245, 236, 0.92);
}
.qref-frame--chat .qref-chat__ask #gx-chat-title {
  display: block;
}
.qref-frame--chat .qref-chat__ask #gx-chat-q {
  display: block;
  margin-top: 7px;
  max-width: 46ch;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.42;
  color: rgba(248, 245, 236, 0.76);
}
.qref-frame--chat .qref-chat__thread {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px clamp(16px, 3vw, 24px) 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.qref-frame--chat .qref-chat__thread::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.qref-frame--chat .gx-chat__msg {
  max-width: min(92%, 40rem);
  padding: 14px 16px 15px;
  border-radius: 8px;
  border: 1px solid rgba(248, 245, 236, 0.14);
  background: rgba(248, 245, 236, 0.08);
  animation: gx-chat-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.qref-frame--chat .gx-chat__msg--reader {
  align-self: flex-start;
}
.qref-frame--chat .gx-chat__msg--user {
  align-self: flex-end;
  background: rgba(42, 147, 95, 0.28);
  border-color: rgba(110, 190, 145, 0.4);
}
.qref-frame--chat .gx-chat__msg--wait {
  opacity: 0.9;
}
.qref-frame--chat .qref--chat .gx-chat__who.qref__label,
.qref-frame--chat .gx-chat__who {
  display: block;
  margin: 0 0 7px;
  font-family: var(--gx-font-ui, "Josefin Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gx-gold, #c4a35a);
}
.qref-frame--chat .gx-chat__msg--user .gx-chat__who {
  text-align: right;
}
.qref-frame--chat .qref--chat p.gx-chat__sec-title,
.qref-frame--chat .gx-chat__sec-title {
  margin: 0 0 7px;
  font-family: var(--gx-font-display, Philosopher, serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(248, 245, 236, 0.92);
}
.qref-frame--chat .gx-chat__body {
  margin: 0;
  font-family: var(--gx-font-ui, "Josefin Sans", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
  color: rgba(248, 245, 236, 0.86);
  text-wrap: pretty;
  white-space: pre-wrap;
}
.qref-frame--chat .gx-chat__body ul {
  margin: 0;
  padding-left: 1.15em;
  white-space: normal;
}
.qref-frame--chat .gx-chat__body li {
  margin: 0 0 6px;
}
.qref-frame--chat .gx-chat__body li:last-child {
  margin-bottom: 0;
}
.qref-frame--chat .gx-chat__allow {
  margin: 0;
  padding: 12px clamp(16px, 3vw, 24px) 0;
  color: rgba(248, 245, 236, 0.72);
  font: 500 14px var(--gx-font-ui, "Josefin Sans", sans-serif);
  line-height: 1.45;
}
.qref-frame--chat .gx-chat__confirm {
  margin: 10px clamp(16px, 3vw, 24px) 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 208, 120, 0.45);
  border-radius: 10px;
  background: rgba(242, 208, 120, 0.1);
}
.qref-frame--chat .gx-chat__confirm[hidden] {
  display: none !important;
}
.qref-frame--chat .gx-chat__confirm p {
  margin: 0 0 10px;
  color: rgba(248, 245, 236, 0.92);
  font: 500 14px var(--gx-font-ui, "Josefin Sans", sans-serif);
  line-height: 1.45;
}
.qref-frame--chat .gx-chat__confirm div {
  display: flex;
  gap: 8px;
}
.qref-frame--chat .gx-chat__confirm button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 245, 236, 0.24);
  background: transparent;
  color: #f8f5ec;
  font: 600 14px var(--gx-font-ui, "Josefin Sans", sans-serif);
  cursor: pointer;
}
.qref-frame--chat .gx-chat__confirm button:first-child {
  background: #f2d078;
  color: #0d1c14;
  border-color: #f2d078;
}
.qref-frame--chat .qref-chat__dock {
  background: rgba(6, 18, 14, 0.82);
}
.qref-frame--chat .gx-chat__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px clamp(16px, 3vw, 24px) 0;
  border-top: 0;
  background: transparent;
}
.qref-frame--chat .gx-chat__suggest[hidden] {
  display: none !important;
}
.qref-frame--chat .gx-chat__chip {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 245, 236, 0.18);
  background: rgba(248, 245, 236, 0.08);
  color: rgba(248, 245, 236, 0.82);
  font: 500 14px var(--gx-font-ui, "Josefin Sans", sans-serif);
  cursor: pointer;
  text-align: left;
}
.qref-frame--chat .gx-chat__chip:hover {
  color: #fff;
  border-color: rgba(196, 163, 90, 0.5);
  background: rgba(196, 163, 90, 0.16);
}
.qref-frame--chat .gx-chat__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px clamp(16px, 3vw, 24px) 14px;
  border-top: 0;
  background: transparent;
}
.qref-frame--chat .gx-chat__input {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 245, 236, 0.18);
  background: rgba(248, 245, 236, 0.1);
  color: rgba(248, 245, 236, 0.94);
  font-family: var(--gx-font-ui, "Josefin Sans", sans-serif);
  font-size: 16px;
  line-height: 1.42;
  outline: none;
}
.qref-frame--chat .gx-chat__input::placeholder {
  color: rgba(248, 245, 236, 0.42);
}
.qref-frame--chat .gx-chat__input:focus {
  border-color: rgba(196, 163, 90, 0.55);
  background: rgba(248, 245, 236, 0.12);
}
.qref-frame--chat .gx-chat__send {
  margin: 0;
  padding: 10px 16px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(196, 163, 90, 0.32);
  color: rgba(248, 245, 236, 0.96);
  font: 600 16px var(--gx-font-display, Philosopher, serif);
  cursor: pointer;
}
.qref-frame--chat .gx-chat__send:hover {
  background: rgba(196, 163, 90, 0.45);
}
.qref-frame--chat .gx-chat__send:disabled {
  opacity: 0.4;
  cursor: default;
}
.qref-frame--chat .qref__footer {
  min-height: calc(42px * var(--chat-shell));
  padding: 0 calc(24px * var(--chat-shell));
  column-gap: calc(18px * var(--chat-shell));
}
.qref-frame--chat .qref__footer > p {
  font-size: calc(8px * var(--chat-shell));
}
.qref-frame--chat .qref__footer > div {
  gap: calc(10px * var(--chat-shell));
}
.qref-frame--chat .qref__footer i {
  width: calc(6px * var(--chat-shell));
  height: calc(6px * var(--chat-shell));
}

@media print {
  .qref-block__foot,
  .qref__breakdown {
    display: none;
  }
  .qref-frame:not(.qref-frame--chat) {
    width: 768px;
    height: 1024px;
    aspect-ratio: auto;
  }
  .qref {
    transform: none;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
