/* Market-maker Quote section — scoped component */
.mm-quote-section {
  --mm-blue: var(--blue, #175cff);
  --mm-cyan: var(--cyan, #10a8cf);
  --mm-green: var(--green, #15956f);
  --mm-amber: var(--amber, #925b00);
  --mm-violet: #5866d9;
  --mm-ink: var(--ink, #101828);
  --mm-muted: var(--muted, #5f6978);
  --mm-muted-2: var(--muted-2, #6e7785);
  --mm-line: var(--line, #e5e9f0);
  --mm-line-strong: var(--line-strong, #d7deea);
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 8%, rgba(23,92,255,.055), transparent 26%),
    radial-gradient(circle at 8% 88%, rgba(21,149,111,.045), transparent 28%),
    #fff;
}

.mm-quote-world {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mm-line-strong);
  border-radius: 30px;
  color: var(--mm-ink);
  background: #fbfcff;
  box-shadow: var(--shadow-md, 0 24px 70px rgba(23,40,72,.10));
}

.mm-quote-head {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--mm-line);
  background: rgba(255,255,255,.96);
}

.mm-quote-head > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.mm-quote-head > div:first-child > span { color: var(--mm-blue); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.mm-quote-head > div:first-child > strong { margin-top: 5px; font-size: 17px; line-height: 1.4; }
.mm-quote-head > div:first-child > small { margin-top: 5px; color: var(--mm-muted); font-size: 8.5px; line-height: 1.5; }

.mm-quote-state {
  display: grid;
  grid-template-columns: 8px auto;
  gap: 4px 9px;
  align-items: center;
  min-width: 202px;
  padding: 10px 13px;
  border: 1px solid rgba(23,92,255,.17);
  border-radius: 14px;
  background: #f2f6ff;
}

.mm-quote-state i { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--mm-blue); box-shadow: 0 0 0 5px rgba(23,92,255,.08); }
.mm-quote-state span { color: var(--mm-muted-2); font-size: 7px; font-weight: 800; letter-spacing: .06em; }
.mm-quote-state strong { color: var(--mm-blue); font-size: 11px; }

.mm-quote-scene {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(23,92,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,92,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 48% 21%, rgba(23,92,255,.075), transparent 25%),
    linear-gradient(180deg, #fbfdff, #f7faff 58%, #fbfdfc);
  background-size: 30px 30px, 30px 30px, auto, auto;
}

.mm-quote-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36) 50%, transparent);
  pointer-events: none;
}

.mm-quote-art { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.mm-quote-art-mobile { display: none; }
.mm-room-shell path, .mm-console-geometry path, .mm-console-geometry ellipse { vector-effect: non-scaling-stroke; }
.mm-flow { opacity: .18; stroke-dasharray: 3 8; vector-effect: non-scaling-stroke; transition: opacity .55s ease, stroke-width .55s ease; }
.mm-beacon { opacity: .18; transition: opacity .4s ease; }

.mm-zone-title { display: flex; flex-direction: column; }
.mm-zone-title span { color: var(--mm-blue); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.mm-zone-title strong { margin-top: 4px; font-size: 13px; line-height: 1.35; }

.mm-reference-rack,
.mm-customer-input,
.mm-cost-console,
.mm-quote-core,
.mm-inventory-tank,
.mm-quote-outputs,
.mm-client-fill,
.mm-skew-explanation,
.mm-hedge-loop,
.mm-quote-competition,
.mm-discovery-difference {
  position: absolute;
  z-index: 3;
  min-width: 0;
}

/* Reference skyline */
.mm-reference-rack { top: 18px; left: 7%; width: 79%; }
.mm-reference-rack > .mm-zone-title { align-items: center; text-align: center; }
.mm-reference-sources { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(10px, 2vw, 25px); margin-top: 15px; }
.mm-source {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr;
  grid-template-rows: auto auto;
  gap: 1px 8px;
  align-items: center;
  min-height: 58px;
  padding: 7px 9px 9px;
  background: linear-gradient(155deg, rgba(255,255,255,.90), rgba(237,243,255,.72));
  clip-path: polygon(8% 0, 92% 0, 100% 18%, 100% 82%, 92% 100%, 8% 100%, 0 82%, 0 18%);
}
.mm-source::after { content: ""; position: absolute; right: 12%; bottom: -8px; left: 12%; height: 9px; background: rgba(23,92,255,.09); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.mm-source i { grid-row: 1 / 3; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(23,92,255,.21); border-radius: 50%; color: var(--mm-blue); background: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.mm-source b { align-self: end; font-size: 9.5px; line-height: 1.25; }
.mm-source small { align-self: start; color: var(--mm-muted); font-size: 7.5px; }

/* Input console and cost dials */
.mm-customer-input { top: 267px; left: 7%; width: 17%; color: var(--mm-ink); }
.mm-customer-input > span { display: block; color: var(--mm-cyan); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.mm-customer-input > strong { display: block; margin-top: 4px; font-size: 14px; }
.mm-customer-input > small { display: block; margin-top: 2px; color: var(--mm-muted); font-size: 8px; }
.mm-customer-input > i { display: block; width: 72%; height: 4px; margin-top: 13px; border-radius: 999px; background: linear-gradient(90deg, var(--mm-cyan), rgba(16,168,207,.12)); }

.mm-cost-console { top: 350px; left: 6%; width: 22%; }
.mm-cost-dials { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 11px; }
.mm-cost-dials > div { display: grid; justify-items: center; gap: 6px; text-align: center; }
.mm-cost-dials i { position: relative; display: block; width: 43px; height: 43px; border: 5px solid rgba(23,92,255,.10); border-top-color: var(--mm-blue); border-radius: 50%; background: rgba(255,255,255,.78); }
.mm-cost-dials i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 14px; transform: translate(-50%,-90%) rotate(34deg); transform-origin: 50% 90%; border-radius: 999px; background: var(--mm-blue); }
.mm-cost-dials b { color: var(--mm-muted); font-size: 7.4px; line-height: 1.35; }

/* Central fair-value gyroscope */
.mm-quote-core { top: 182px; left: 38.4%; display: grid; place-items: center; width: 21%; min-height: 184px; text-align: center; }
.mm-quote-core::before, .mm-quote-core::after { content: ""; position: absolute; inset: 17px 7%; border: 1px solid rgba(23,92,255,.20); border-radius: 50%; transform: rotate(-17deg); }
.mm-quote-core::after { inset: 29px 13%; transform: rotate(22deg); border-color: rgba(16,168,207,.22); }
.mm-quote-core > span, .mm-quote-core > strong, .mm-quote-core > p { position: relative; z-index: 2; }
.mm-quote-core > span { color: var(--mm-blue); font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.mm-quote-core > strong { margin-top: 5px; font-size: 12px; }
.mm-quote-core > strong b { font-size: 25px; letter-spacing: -.04em; }
.mm-quote-core > p { margin: 42px 0 0; color: var(--mm-muted); font-size: 8px; line-height: 1.65; }
.mm-quote-core > p b { color: var(--mm-ink); }
.mm-reservation-orbit { position: absolute; inset: 27px 14%; border: 1px dashed rgba(23,92,255,.22); border-radius: 50%; }
.mm-reservation-orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--mm-blue); box-shadow: 0 0 0 5px rgba(23,92,255,.07); }
.mm-reservation-orbit i:nth-child(1) { top: -3px; left: 50%; }
.mm-reservation-orbit i:nth-child(2) { top: 53%; right: -3px; background: var(--mm-cyan); }
.mm-reservation-orbit i:nth-child(3) { bottom: 7%; left: 10%; background: var(--mm-amber); }

/* Inventory cylinder */
.mm-inventory-tank { top: 184px; left: 72%; display: grid; justify-items: center; width: 15%; text-align: center; }
.mm-tank-shell { position: relative; width: 68px; height: 178px; overflow: hidden; border-right: 2px solid rgba(23,92,255,.25); border-left: 2px solid rgba(23,92,255,.25); border-radius: 34px; background: rgba(255,255,255,.48); }
.mm-tank-shell::before, .mm-tank-shell::after { content: ""; position: absolute; z-index: 3; right: -2px; left: -2px; height: 28px; border: 2px solid rgba(23,92,255,.28); border-radius: 50%; background: rgba(255,255,255,.75); }
.mm-tank-shell::before { top: 0; }
.mm-tank-shell::after { bottom: 0; background: rgba(219,232,255,.78); }
.mm-tank-fill { position: absolute; right: 0; bottom: 12px; left: 0; z-index: 1; height: 150px; transform: scaleY(.62); transform-origin: 50% 100%; background: linear-gradient(180deg, rgba(16,168,207,.66), rgba(23,92,255,.72)); transition: transform 1.05s cubic-bezier(.22,.8,.24,1); }
.mm-tank-fill::before { content: ""; position: absolute; top: -10px; right: 0; left: 0; height: 20px; border-radius: 50%; background: #66cfe2; }
.mm-tank-target { position: absolute; top: 80px; right: 0; left: 0; z-index: 4; height: 1px; border-top: 2px dashed rgba(146,91,0,.62); }
.mm-tank-target::after { content: "TARGET"; position: absolute; top: -12px; left: 50%; padding: 1px 3px; transform: translateX(-50%); color: var(--mm-amber); background: rgba(255,255,255,.86); font-size: 5.5px; font-style: normal; font-weight: 900; }
.mm-tank-shell > b { position: absolute; top: 42%; left: 50%; z-index: 5; transform: translate(-50%,-50%); color: #fff; font-size: 11px; letter-spacing: .08em; text-shadow: 0 1px 6px rgba(10,45,95,.24); }
.mm-inventory-tank > span { margin-top: 8px; color: var(--mm-blue); font-size: 6.5px; font-weight: 850; letter-spacing: .11em; }
.mm-inventory-tank > strong { margin-top: 2px; font-size: 11px; }
.mm-inventory-tank > small { display: flex; gap: 7px; margin-top: 5px; color: var(--mm-muted); font-size: 6.5px; }
.mm-inventory-tank > small b:first-child { color: var(--mm-cyan); }
.mm-inventory-tank > small b:last-child { color: var(--mm-amber); }

/* Quote output desk */
.mm-quote-outputs { top: 427px; left: 33.4%; display: grid; grid-template-columns: 1fr 76px 1fr; gap: 6px; align-items: center; width: 30.5%; }
.mm-output { position: relative; display: grid; align-content: center; min-height: 116px; padding: 15px 13px; color: #fff; background: linear-gradient(145deg, #12366f, #175cff); clip-path: polygon(8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%, 0 12%); text-align: center; transition: transform .65s ease, filter .65s ease; }
.mm-output::after { content: ""; position: absolute; right: 11px; bottom: 9px; left: 11px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px); }
.mm-output-ask { background: linear-gradient(145deg, #6c4305, #a86a0d); }
.mm-output > span { color: rgba(255,255,255,.68); font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.mm-output > strong { margin: 5px 0 4px; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.045em; }
.mm-output > small { color: rgba(255,255,255,.70); font-size: 7px; line-height: 1.35; }
.mm-spread-readout { display: grid; justify-items: center; text-align: center; }
.mm-spread-readout::before { content: "↔"; color: var(--mm-blue); font-size: 18px; font-weight: 500; }
.mm-spread-readout span { color: var(--mm-muted-2); font-size: 6px; font-weight: 850; letter-spacing: .1em; }
.mm-spread-readout strong { margin-top: 3px; font-size: 12px; }
.mm-spread-readout small { color: var(--mm-muted); font-size: 6.5px; }

.mm-client-fill { top: 435px; left: 81%; width: 15%; text-align: center; }
.mm-person { position: relative; width: 58px; height: 69px; margin: 0 auto 8px; }
.mm-person i { position: absolute; top: 0; left: 50%; width: 22px; height: 22px; transform: translateX(-50%); border: 2px solid var(--mm-cyan); border-radius: 50%; background: #fff; }
.mm-person b { position: absolute; right: 3px; bottom: 0; left: 3px; height: 42px; border: 2px solid var(--mm-cyan); border-radius: 24px 24px 8px 8px; background: linear-gradient(180deg,#fff,#e8f9fc); }
.mm-client-fill > span { display: block; color: var(--mm-cyan); font-size: 6.5px; font-weight: 850; letter-spacing: .12em; }
.mm-client-fill > strong { display: block; margin-top: 3px; font-size: 12px; }
.mm-client-fill > small { display: block; margin-top: 3px; color: var(--mm-muted); font-size: 7.5px; line-height: 1.4; }
.mm-order-pulse { position: absolute; top: 34px; left: -24px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--mm-cyan); box-shadow: 0 0 0 7px rgba(16,168,207,.10); opacity: 0; }

.mm-skew-explanation { top: 367px; left: 62.5%; width: 19%; padding-left: 12px; border-left: 2px solid rgba(146,91,0,.35); }
.mm-skew-explanation span { color: var(--mm-amber); font-size: 6.5px; font-weight: 850; letter-spacing: .12em; }
.mm-skew-explanation strong { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; }
.mm-skew-explanation p { margin: 4px 0 0; color: var(--mm-muted); font-size: 7.5px; line-height: 1.45; }

/* Inventory hedge floor */
.mm-hedge-loop { top: 600px; left: 5%; width: 48%; }
.mm-hedge-nodes { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 24px; }
.mm-hedge-nodes::before { content: ""; position: absolute; top: 23px; right: 8%; left: 8%; z-index: -1; height: 2px; background: linear-gradient(90deg, rgba(21,149,111,.20), var(--mm-green), rgba(21,149,111,.20)); }
.mm-hedge-nodes > div { display: grid; justify-items: center; text-align: center; }
.mm-hedge-nodes i { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid rgba(21,149,111,.25); border-radius: 50%; color: var(--mm-green); background: rgba(255,255,255,.93); font-size: 12px; font-style: normal; font-weight: 850; box-shadow: 0 7px 18px rgba(21,149,111,.08); }
.mm-hedge-nodes b { margin-top: 7px; font-size: 8.5px; }
.mm-hedge-nodes small { margin-top: 2px; color: var(--mm-muted); font-size: 6.5px; }

/* Three competing dealing towers */
.mm-quote-competition { top: 573px; left: 57%; width: 39%; }
.mm-mm-towers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 15px; }
.mm-mm-towers > div { position: relative; display: grid; align-content: center; min-height: 67px; padding: 8px 7px 13px; color: var(--mm-ink); background: linear-gradient(160deg,rgba(255,255,255,.94),rgba(237,243,255,.84)); clip-path: polygon(7% 0, 93% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); text-align: center; }
.mm-mm-towers > div::after { content: ""; position: absolute; right: 13%; bottom: 5px; left: 13%; height: 3px; border-radius: 99px; background: var(--mm-blue); opacity: .38; }
.mm-mm-towers span { color: var(--mm-muted-2); font-size: 6.2px; font-weight: 800; }
.mm-mm-towers b { margin-top: 5px; font-size: 9px; white-space: nowrap; }
.mm-mm-towers b i { color: var(--mm-muted); font-style: normal; font-weight: 500; }
.mm-mm-towers .mm-wants-xrp::after { background: var(--mm-green); opacity: .9; }
.mm-mm-towers .mm-has-xrp::after { background: var(--mm-amber); opacity: .9; }
.mm-best-lines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.mm-best-lines p { display: flex; flex-direction: column; margin: 0; padding-left: 9px; border-left: 2px solid var(--mm-blue); }
.mm-best-lines p:last-child { border-left-color: var(--mm-green); }
.mm-best-lines span { color: var(--mm-muted-2); font-size: 6.5px; font-weight: 800; }
.mm-best-lines strong { margin-top: 2px; font-size: 7.5px; line-height: 1.35; }
.mm-best-lines strong b { color: var(--mm-blue); font-size: 10px; }
.mm-best-lines p:last-child strong b { color: var(--mm-green); }
.mm-all-in-note { display: block; margin-top: 8px; color: var(--mm-muted); font-size: 6.5px; line-height: 1.4; }

/* Best quote versus market-wide price discovery */
.mm-discovery-difference { top: 753px; left: 14%; width: 73%; }
.mm-discovery-title { text-align: center; }
.mm-discovery-title span { color: var(--mm-violet); font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.mm-discovery-title strong { display: block; margin-top: 4px; font-size: 12px; }
.mm-discovery-pair { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 60px; margin-top: 17px; }
.mm-discovery-pair::before { content: "≠"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--mm-violet); font-size: 24px; font-weight: 450; }
.mm-discovery-pair > div { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; }
.mm-discovery-pair i { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(88,102,217,.25); border-radius: 50%; color: var(--mm-violet); background: rgba(255,255,255,.90); font-size: 19px; font-style: normal; }
.mm-discovery-pair span { align-self: end; color: var(--mm-violet); font-size: 6.5px; font-weight: 850; letter-spacing: .1em; }
.mm-discovery-pair b { align-self: start; font-size: 8.5px; line-height: 1.4; }

.mm-quote-formula { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 20px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--mm-line); background: #fff; }
.mm-quote-formula p { margin: 0; color: var(--mm-muted); font-size: 9px; line-height: 1.65; }
.mm-quote-formula p:first-child { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.mm-quote-formula p:first-child > span { padding: 5px 8px; border-radius: 99px; color: #fff; background: var(--mm-blue); font-size: 6.5px; font-weight: 850; letter-spacing: .08em; }
.mm-quote-formula p:first-child > strong { color: var(--mm-ink); font-size: 10px; }
.mm-quote-formula p:first-child > b { padding: 5px 7px; border: 1px solid var(--mm-line); border-radius: 7px; color: var(--mm-blue); background: #f7f9fc; font-size: 8px; }
.mm-quote-formula i { font-family: Georgia, serif; font-style: italic; }
.mm-quote-caveat { margin: 0; padding: 17px 24px 20px; border-top: 1px solid var(--mm-line); color: var(--mm-muted); background: #f8fafc; font-size: 9px; line-height: 1.7; }
.mm-quote-caveat strong { color: var(--mm-ink); }

/* State machine. Base state remains fully understandable without JavaScript. */
.mm-quote-world.is-quote-animated .mm-flow { animation: mmQuoteDash 1.65s linear infinite; }
.mm-quote-world.is-quote-animated .mm-reservation-orbit { animation: mmQuoteOrbit 16s linear infinite; }
.mm-quote-world[data-quote-state="balanced"] .mm-flow-reference,
.mm-quote-world[data-quote-state="client-buy"] .mm-flow-order,
.mm-quote-world[data-quote-state="skew"] .mm-flow-skew,
.mm-quote-world[data-quote-state="hedge"] .mm-flow-hedge { opacity: .94; stroke-width: 4.5; }
.mm-quote-world[data-quote-state="balanced"] .mm-beacon-reference,
.mm-quote-world[data-quote-state="client-buy"] .mm-beacon-order,
.mm-quote-world[data-quote-state="skew"] .mm-beacon-skew,
.mm-quote-world[data-quote-state="hedge"] .mm-beacon-hedge { opacity: 1; animation: mmQuoteBeacon 1.8s ease-out infinite; }
.mm-quote-world[data-quote-state="client-buy"] .mm-order-pulse { opacity: 1; animation: mmClientOrder 1.35s ease-in-out infinite; }
.mm-quote-world[data-quote-state="client-buy"] .mm-tank-fill,
.mm-quote-world[data-quote-state="skew"] .mm-tank-fill { transform: scaleY(.30); }
.mm-quote-world[data-quote-state="hedge"] .mm-tank-fill { transform: scaleY(.48); }
.mm-quote-world[data-quote-state="skew"] .mm-output,
.mm-quote-world[data-quote-state="hedge"] .mm-output { transform: translateY(-5px); filter: saturate(1.08); }
.mm-quote-world[data-quote-state="skew"] .mm-skew-explanation { border-left-color: var(--mm-amber); }
.mm-quote-world[data-quote-state="hedge"] .mm-hedge-nodes i { animation: mmHedgeNode 2.3s ease-in-out infinite; }
.mm-quote-world[data-quote-state="hedge"] .mm-hedge-nodes > div:nth-child(2) i { animation-delay: -.55s; }
.mm-quote-world[data-quote-state="hedge"] .mm-hedge-nodes > div:nth-child(3) i { animation-delay: -1.1s; }
.mm-quote-world[data-quote-state="hedge"] .mm-hedge-nodes > div:nth-child(4) i { animation-delay: -1.65s; }

@keyframes mmQuoteDash { to { stroke-dashoffset: -22; } }
@keyframes mmQuoteOrbit { to { transform: rotate(360deg); } }
@keyframes mmQuoteBeacon { 0% { r: 4px; opacity: .2; } 45% { r: 9px; opacity: 1; } 100% { r: 14px; opacity: 0; } }
@keyframes mmClientOrder { 0% { transform: translateX(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-55px) scale(1); opacity: 0; } }
@keyframes mmHedgeNode { 0%,100% { box-shadow: 0 7px 18px rgba(21,149,111,.08); } 50% { box-shadow: 0 0 0 7px rgba(21,149,111,.10), 0 10px 24px rgba(21,149,111,.14); } }

@media (max-width: 1080px) and (min-width: 821px) {
  .mm-quote-core { left: 36.8%; width: 24%; }
  .mm-inventory-tank { left: 71%; width: 17%; }
  .mm-quote-outputs { left: 31%; width: 34%; }
  .mm-cost-console { width: 25%; }
  .mm-source b { font-size: 8.8px; }
  .mm-discovery-difference { left: 10%; width: 80%; }
}

/* Dedicated mobile composition */
@media (max-width: 820px) {
  .mm-quote-world { border-radius: 24px; }
  .mm-quote-head { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .mm-quote-head > div:first-child > strong { font-size: 15px; }
  .mm-quote-state { width: 100%; min-width: 0; }
  .mm-quote-scene { min-height: 1460px; }
  .mm-quote-art-desktop { display: none; }
  .mm-quote-art-mobile { display: block; }

  .mm-reference-rack { top: 23px; left: 4%; width: 92%; }
  .mm-reference-sources { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 18px; margin-top: 12px; }
  .mm-source { min-height: 54px; }
  .mm-source b { font-size: 9.5px; }
  .mm-source small { font-size: 8px; }

  .mm-customer-input { top: 246px; left: 5%; width: 24%; }
  .mm-customer-input > strong { font-size: 12px; }
  .mm-customer-input > small { font-size: 7.5px; line-height: 1.35; }

  .mm-quote-core { top: 276px; left: 25%; width: 50%; min-height: 176px; }
  .mm-quote-core > strong b { font-size: 23px; }
  .mm-quote-core > p { margin-top: 39px; font-size: 7.8px; }

  .mm-inventory-tank { top: 282px; left: auto; right: 2%; width: 23%; }
  .mm-tank-shell { width: 52px; height: 166px; }
  .mm-tank-fill { height: 140px; }
  .mm-tank-target { top: 75px; }
  .mm-inventory-tank > small { flex-direction: column; gap: 1px; }

  .mm-cost-console { top: 468px; left: 5%; width: 90%; }
  .mm-cost-console > .mm-zone-title { align-items: center; text-align: center; }
  .mm-cost-dials { gap: 13px; margin-top: 10px; }
  .mm-cost-dials i { width: 42px; height: 42px; }
  .mm-cost-dials b { max-width: 88px; font-size: 8px; }

  .mm-quote-outputs { top: 584px; left: 7%; grid-template-columns: 1fr 58px 1fr; width: 86%; }
  .mm-output { min-height: 120px; padding: 14px 8px; }
  .mm-output > strong { font-size: 20px; }
  .mm-output > small { font-size: 7.5px; }

  .mm-skew-explanation { top: 738px; left: 5%; width: 47%; }
  .mm-skew-explanation strong { font-size: 10.5px; }
  .mm-skew-explanation p { font-size: 7.8px; }

  .mm-client-fill { top: 727px; left: auto; right: 5%; width: 39%; }
  .mm-person { width: 42px; height: 53px; margin-bottom: 5px; }
  .mm-person i { width: 17px; height: 17px; }
  .mm-person b { height: 33px; }
  .mm-client-fill > strong { font-size: 11px; }
  .mm-client-fill > small { font-size: 7.5px; }

  .mm-hedge-loop { top: 834px; left: 5%; width: 90%; }
  .mm-hedge-loop > .mm-zone-title { align-items: center; text-align: center; }
  .mm-hedge-nodes { gap: 4px; margin-top: 21px; }
  .mm-hedge-nodes i { width: 43px; height: 43px; }
  .mm-hedge-nodes b { font-size: 8px; }
  .mm-hedge-nodes small { font-size: 6.8px; }

  .mm-quote-competition { top: 1037px; left: 4%; width: 92%; }
  .mm-quote-competition > .mm-zone-title { align-items: center; text-align: center; }
  .mm-mm-towers { gap: 5px; }
  .mm-mm-towers > div { min-height: 70px; padding-inline: 4px; }
  .mm-mm-towers span { font-size: 6.3px; }
  .mm-mm-towers b { font-size: 8px; }
  .mm-best-lines strong { font-size: 7.5px; }
  .mm-all-in-note { font-size: 7px; text-align: center; }

  .mm-discovery-difference { top: 1252px; left: 4%; width: 92%; }
  .mm-discovery-title strong { font-size: 11px; line-height: 1.4; }
  .mm-discovery-pair { gap: 31px; margin-top: 15px; }
  .mm-discovery-pair > div { grid-template-columns: 40px 1fr; gap: 2px 8px; }
  .mm-discovery-pair i { width: 40px; height: 40px; }
  .mm-discovery-pair span { font-size: 5.8px; letter-spacing: .04em; }
  .mm-discovery-pair b { font-size: 7.4px; }

  .mm-quote-formula { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .mm-quote-formula p:first-child { align-items: flex-start; flex-direction: column; }
  .mm-quote-formula p:first-child > strong { font-size: 10.5px; }
  .mm-quote-formula p { font-size: 9.3px; }
  .mm-quote-caveat { padding: 16px 18px 19px; font-size: 9.3px; }
}

@media (max-width: 380px) {
  .mm-quote-scene { min-height: 1500px; }
  .mm-reference-sources { column-gap: 9px; }
  .mm-source { grid-template-columns: 27px 1fr; column-gap: 6px; padding-inline: 6px; }
  .mm-source i { width: 27px; height: 27px; }
  .mm-quote-core { left: 24%; width: 52%; }
  .mm-inventory-tank { right: 0; }
  .mm-quote-outputs { left: 5%; width: 90%; }
  .mm-hedge-nodes b { font-size: 7.4px; }
  .mm-mm-towers b { font-size: 7.3px; }
  .mm-discovery-difference { top: 1270px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-quote-world *, .mm-quote-world *::before, .mm-quote-world *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .001ms !important;
  }
  .mm-flow { opacity: .54; }
  .mm-beacon { opacity: .75; }
}

@media (forced-colors: active) {
  .mm-quote-world, .mm-source, .mm-output, .mm-tank-shell, .mm-hedge-nodes i, .mm-discovery-pair i { forced-color-adjust: auto; border: 1px solid CanvasText; }
  .mm-flow { stroke: CanvasText; }
}
