/* God's Eye of Forex
   Black lacquer and gilt. The page is black; every panel is a lacquered surface lit
   from the top left, edged with a gold hairline. Gold is engraving, numerals and one
   foil wordmark, never a filled area (the one primary button aside). Buy is emerald,
   sell is ruby, and nothing else uses them. Numerals and titles are Bodoni Moda;
   everything you read at length is Jost. */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodoni-moda.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodoni-moda-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --jet: #000000;        /* the page */
  --lacquer: #0b0b0c;    /* panels */
  --well: #050505;       /* sunk tracks and wells */
  --raised: #161617;     /* raised controls */
  --gilt: #d6b25e;       /* gold */
  --gilt-hi: #f6e7b4;    /* gold where the light catches it */
  --gilt-lo: #8a6a26;    /* gold in shadow */
  --ivory: #f4efe4;      /* text */
  --ash: #a39d90;        /* quiet text */
  --buy: #34c38f;        /* emerald */
  --sell: #ec5b5b;       /* ruby */
  --wait: #f0c35a;       /* gold as a state: not yet */
  --line: rgba(214, 178, 94, 0.17);     /* a gold hairline */
  --line-strong: rgba(214, 178, 94, 0.42);
  --tone: var(--ash);    /* follows the current call */
  --foil: linear-gradient(180deg, #fdf3cf 0%, #ecd48d 30%, #caa34b 54%, #a8822f 72%, #e4c676 100%);
  --foil-across: linear-gradient(90deg, #8a6a26, #d6b25e 55%, #f6e7b4);
  --display: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --text: 'Jost', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;
  --radius: 16px;
  --gap: 16px;
  --pad: 20px;           /* panel padding */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: dark; background: var(--jet); scrollbar-color: #4a3c1c #050505; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(980px 430px at 14% -8%, rgba(214, 178, 94, 0.15), transparent 62%),
    radial-gradient(760px 380px at 96% 2%, rgba(214, 178, 94, 0.07), transparent 60%),
    var(--jet);
  background-attachment: fixed;
  color: var(--ivory);
  font: 400 15.5px/1.55 var(--text);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(214, 178, 94, 0.35); color: #fff; }

h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button, select, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.note { color: var(--ash); font-size: 13.5px; }

/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateX(0) skewX(-18deg); opacity: 0; } 12% { opacity: 1; } to { transform: translateX(420%) skewX(-18deg); opacity: 0; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes roll-up { from { transform: translateY(0.42em); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes roll-down { from { transform: translateY(-0.42em); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

/* ---- Lacquer: every raised surface ---- */
.card, .lock-card {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(130% 70% at 12% -14%, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02) 42%, transparent 62%) padding-box,
    linear-gradient(180deg, #101011, #070708) padding-box,
    linear-gradient(145deg, rgba(246, 231, 180, 0.62), rgba(214, 178, 94, 0.2) 26%, rgba(214, 178, 94, 0.07) 60%, rgba(246, 231, 180, 0.34)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, 0.09), 0 30px 60px -34px #000, 0 1px 0 rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
/* the light that crosses a surface once when the desk opens */
.card::after, .lock-card::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.07) 40%, rgba(255, 250, 232, 0.2) 50%, rgba(255, 240, 200, 0.07) 60%, transparent);
  pointer-events: none; opacity: 0; z-index: 2;
}

/* ---- Lock screen ---- */
.lock { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.lock-card { width: min(430px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 38px 34px 34px; animation: rise 0.7s var(--ease) both; }
.lock-card::after { animation: sweep 1.5s 0.35s ease-out both; }
.lock-card::before {
  content: ''; position: absolute; left: 50%; top: 22px; width: 264px; height: 264px; margin-left: -132px;
  background: url('/rosette.svg') center / contain no-repeat; opacity: 0.62; animation: turn 260s linear infinite; pointer-events: none;
}
.lock-card > * { position: relative; z-index: 1; }
.lock-eye { width: 132px; color: var(--gilt-hi); margin: 83px 0 104px; filter: drop-shadow(0 0 14px rgba(214, 178, 94, 0.35)); }
.lock-card h1 {
  font: 600 34px/1.08 var(--display); font-variation-settings: 'opsz' 22; letter-spacing: 0.005em;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lock-sub { color: var(--ash); max-width: 32ch; }
.field { display: grid; gap: 6px; margin-top: 10px; width: 100%; text-align: left; }
.field span { font-size: 13.5px; color: var(--ash); }
.field input {
  width: 100%; background: var(--well); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 14px; font-size: 17px; letter-spacing: 0.1em; box-shadow: inset 0 2px 6px #000;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--gilt); outline: none; box-shadow: inset 0 2px 6px #000, 0 0 0 3px rgba(214, 178, 94, 0.16); }
.btn-primary {
  position: relative; overflow: hidden; width: 100%;
  background: linear-gradient(180deg, #fbefc4 0%, #e5c877 46%, #c59c40 54%, #b38a31 78%, #dbbb68 100%);
  color: #171003; border: 0; border-radius: 11px; padding: 13px 16px; font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(90, 62, 10, 0.5), 0 10px 26px -12px rgba(214, 178, 94, 0.7);
  transition: transform 0.15s var(--ease), box-shadow 0.25s;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); transform: skewX(-18deg); opacity: 0;
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(90, 62, 10, 0.5), 0 14px 32px -12px rgba(214, 178, 94, 0.9); }
.btn-primary:hover::after { animation: sweep 0.9s ease-out; }
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.lock-error { color: var(--sell); font-size: 14px; }
.lock-join { width: 100%; display: grid; gap: 12px; justify-items: center; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.lock-join h2 { font: 600 23px/1.15 var(--display); font-variation-settings: 'opsz' 18; color: var(--gilt-hi); }
.lock-join p { max-width: 34ch; color: var(--ivory); }
.lock-join p b { color: var(--gilt-hi); font-weight: 600; white-space: nowrap; }
.lock-join p.note { color: var(--ash); }
.lock-ref { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 14px; width: 100%; padding: 12px 14px 12px 16px; text-align: left; background: var(--well); border: 1px solid var(--line); border-radius: 11px; box-shadow: inset 0 2px 6px #000; }
.lock-ref span { grid-column: 1; font-size: 13.5px; color: var(--ash); }
.lock-ref b { grid-column: 1; font: 500 31px/1 var(--display); font-variation-settings: 'opsz' 24; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.05em; color: var(--gilt-hi); user-select: all; }
.lock-ref button { grid-column: 2; grid-row: 1 / span 2; }
.lock-join .lock-join-btn { display: block; width: 100%; padding: 13px 16px; text-align: center; text-decoration: none; font-size: 16px; font-weight: 600; color: var(--gilt-hi); border-color: var(--gilt); }
.lock-join .lock-join-btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 18px -6px rgba(214, 178, 94, 0.55); }

/* ---- Top bar ---- */
.practice { background: var(--foil-across); color: #171003; text-align: center; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.top {
  position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 15px clamp(14px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 70%), rgba(0, 0, 0, 0.55);
}
.top::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 178, 94, 0.45) 14%, rgba(246, 231, 180, 0.9) 50%, rgba(214, 178, 94, 0.45) 86%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; color: var(--gilt); filter: drop-shadow(0 0 8px rgba(214, 178, 94, 0.45)); }
.brand-iris { fill: var(--gilt); }
.brand-pupil { fill: #000; }
#brand-name {
  font: 600 24px/1.15 var(--display); font-variation-settings: 'opsz' 16; letter-spacing: 0.012em; white-space: nowrap;
  /* foil, with a band of light that crosses it when the desk opens and when you point at it */
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) 180% 0 / 250% 100% no-repeat, var(--foil);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand:hover #brand-name { animation: shimmer 1.6s var(--ease); }
.picker select {
  appearance: none; -webkit-appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d6b25e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 11px no-repeat,
    linear-gradient(180deg, #1a1a1b, #0c0c0d);
  border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 9px 38px 9px 14px; font-weight: 500; min-width: 172px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.picker select:hover { border-color: var(--gilt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 3px rgba(214, 178, 94, 0.1); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.links { display: flex; gap: 16px; }
.links:empty { display: none; }
.links a { color: var(--ash); text-decoration: none; font-size: 14.5px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.links a:hover { color: var(--gilt-hi); border-bottom-color: var(--line-strong); }
.online { color: var(--ash); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); color: var(--buy); animation: pulse 2.6s ease-out infinite; }
.online b { color: var(--ivory); font-weight: 600; }
.btn-quiet {
  background: linear-gradient(180deg, #1a1a1b, #0c0c0d); border: 1px solid var(--line); border-radius: 11px; padding: 8px 14px; color: var(--ash); font-size: 14.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); transition: color 0.2s, border-color 0.2s;
}
.btn-quiet:hover { color: var(--gilt-hi); border-color: var(--line-strong); }

.feed-alert { margin: 12px clamp(14px, 3vw, 32px) 0; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--sell); color: var(--ivory); background: rgba(236, 91, 91, 0.1); font-size: 14.5px; }

/* ---- Grid ---- */
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: calc(var(--gap) + 4px) clamp(14px, 3vw, 32px) 8px;
  max-width: 1480px; margin: 0 auto;
}
.card { grid-column: span 4; padding: var(--pad); min-width: 0; transition: box-shadow 0.35s; }
.card > * { position: relative; z-index: 1; }
.card.chart-card { grid-column: span 8; padding-bottom: 15px; display: flex; flex-direction: column; }
.card.eye-card {
  grid-column: span 4;
  background:
    radial-gradient(130% 70% at 12% -14%, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02) 42%, transparent 62%) padding-box,
    radial-gradient(90% 46% at 50% 0%, color-mix(in srgb, var(--tone) 13%, transparent), transparent 70%) padding-box,
    linear-gradient(180deg, #101011, #070708) padding-box,
    linear-gradient(145deg, color-mix(in srgb, var(--tone) 70%, #f6e7b4), color-mix(in srgb, var(--tone) 28%, transparent) 30%, rgba(214, 178, 94, 0.08) 62%, color-mix(in srgb, var(--tone) 42%, transparent)) border-box;
}
.card.half { grid-column: span 6; }
.card.wide { grid-column: 1 / -1; }
.card.span8 { grid-column: span 8; }
@media (hover: hover) {
  .card:hover { box-shadow: inset 0 1px 0 rgba(255, 246, 220, 0.12), 0 30px 60px -34px #000, 0 0 0 1px rgba(214, 178, 94, 0.14), 0 0 44px -18px rgba(214, 178, 94, 0.3); }
}
/* opening: panels rise in turn and the light crosses each once */
#desk.opening .card { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
#desk.opening .card::after { animation: sweep 1.25s ease-out both; animation-delay: calc(var(--i, 0) * 60ms + 320ms); }
#desk.opening .top { animation: rise 0.5s var(--ease) both; }
#desk.opening #brand-name { animation: shimmer 2.1s 0.3s var(--ease) both; }
.grid > .card:nth-child(1) { --i: 0; } .grid > .card:nth-child(2) { --i: 1; } .grid > .card:nth-child(3) { --i: 2; }
.grid > .card:nth-child(4) { --i: 3; } .grid > .card:nth-child(5) { --i: 4; } .grid > .card:nth-child(6) { --i: 5; }
.grid > .card:nth-child(7) { --i: 6; } .grid > .card:nth-child(8) { --i: 7; } .grid > .card:nth-child(9) { --i: 8; }
.grid > .card:nth-child(10) { --i: 9; } .grid > .card:nth-child(11) { --i: 10; } .grid > .card:nth-child(12) { --i: 11; }
.grid > .card:nth-child(13) { --i: 12; } .grid > .card:nth-child(14) { --i: 13; }

.card > h3, .card > .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fold { background: none; border: 0; color: var(--ash); font: 400 13.5px var(--text); padding: 2px 0; transition: color 0.2s; }
.fold:hover { color: var(--gilt-hi); }
.card.is-min > :not(h3):not(.card-head) { display: none; }
.card.is-min > h3, .card.is-min > .card-head { margin-bottom: 0; }
.card h3 { font: italic 500 20px/1.2 var(--display); font-variation-settings: 'opsz' 15; letter-spacing: 0.008em; color: var(--ivory); margin-bottom: 14px; }
.card h4 { font-size: 13.5px; font-weight: 500; color: var(--gilt); margin-bottom: 2px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.sub-h { margin-top: 20px; }
.empty { color: var(--ash); padding: 18px 0; }

/* ---- Segmented buttons ---- */
.seg { display: inline-flex; background: var(--well); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; box-shadow: inset 0 2px 5px #000; }
.seg button { background: none; border: 0; border-radius: 9px; padding: 6px 12px; color: var(--ash); font-size: 14.5px; font-weight: 500; transition: color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.seg button:hover { color: var(--ivory); }
.seg button[aria-pressed='true'] {
  background: linear-gradient(180deg, rgba(246, 231, 180, 0.2), rgba(214, 178, 94, 0.07));
  color: var(--gilt-hi);
  box-shadow: inset 0 0 0 1px rgba(214, 178, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 18px -6px rgba(214, 178, 94, 0.55);
}
.seg-wide { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.seg-wide button { padding: 8px 6px; display: grid; gap: 0; line-height: 1.25; }
.seg-wide small { font-size: 12.5px; font-weight: 400; color: var(--ash); }

/* ---- Price + chart ---- */
.price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mkt-name { font: 600 30px/1.05 var(--display); font-variation-settings: 'opsz' 22; letter-spacing: 0.005em; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid currentColor; color: var(--buy); margin-right: 4px; background: color-mix(in srgb, currentColor 9%, transparent); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge[data-state='live']::before { animation: pulse 2.2s ease-out infinite; }
.badge[data-state='delayed'], .badge[data-state='stale'], .badge[data-state='practice'] { color: var(--wait); }
.badge[data-state='down'] { color: var(--sell); }
.badge[data-state='closed'] { color: var(--ash); }
.price-block { text-align: right; display: flex; align-items: flex-end; justify-content: flex-end; gap: 18px; }
.spark { width: 132px; height: 40px; flex: none; margin-bottom: 30px; overflow: visible; }
.spark[hidden] { display: none; }
.spark polyline { fill: none; stroke: var(--gilt); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark polygon { fill: var(--gilt); opacity: 0.09; }
.spark circle { fill: var(--gilt-hi); }
.spark[data-dir='up'] circle { fill: var(--buy); }
.spark[data-dir='down'] circle { fill: var(--sell); }
.price { font: 500 clamp(40px, 4.9vw, 62px)/1 var(--display); font-variation-settings: 'opsz' 36; letter-spacing: -0.005em; white-space: nowrap; transition: filter 0.9s ease; filter: drop-shadow(0 0 0 transparent); }
.price .d, .price .p { display: inline-block; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .d { width: 0.585em; text-align: center; }
.price .roll-up { animation: roll-up 0.42s var(--ease) both; }
.price .roll-down { animation: roll-down 0.42s var(--ease) both; }
.price.tick-up { filter: drop-shadow(0 0 16px rgba(52, 195, 143, 0.7)); }
.price.tick-down { filter: drop-shadow(0 0 16px rgba(236, 91, 91, 0.7)); }
.price.tick-up .d, .price.tick-up .p { background-image: linear-gradient(180deg, #d9fff0, #34c38f 55%, #1f8f66); }
.price.tick-down .d, .price.tick-down .p { background-image: linear-gradient(180deg, #ffe1df, #ec5b5b 55%, #b23434); }
.change { margin-top: 8px; font-size: 15.5px; color: var(--ash); }
.change.up { color: var(--buy); }
.change.down { color: var(--sell); }
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 10px; flex-wrap: wrap; }
.readout { min-height: 20px; }
.chart-wrap { position: relative; overflow: hidden; flex: 1 1 auto; min-height: clamp(300px, 46vh, 470px); border-radius: 12px; background: linear-gradient(180deg, #060606, #020202); box-shadow: inset 0 0 0 1px rgba(214, 178, 94, 0.1), inset 0 2px 14px #000; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.chart-wrap .empty { position: absolute; inset: 0; display: grid; place-items: center; }
.levels { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13.5px; color: var(--ash); }
.levels b { color: var(--ivory); font-weight: 500; margin-left: 6px; }

/* ---- The Eye ---- */
.eye-card[data-state='go'][data-side='buy'] { --tone: var(--buy); }
.eye-card[data-state='go'][data-side='sell'] { --tone: var(--sell); }
.eye-card[data-state='wait'] { --tone: var(--wait); }
.card > .eye-top {
  /* no layer of its own: the film has to blend with the card behind it */
  position: relative; z-index: auto; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
/* a pool of black under the eye, so its pupil stays black on the lit card */
.eye-top::before {
  content: ''; position: absolute; top: 0; left: 50%; height: 100%; max-height: 320px; aspect-ratio: 16 / 9; transform: translateX(-50%);
  background: radial-gradient(ellipse 46% 44% at 50% 47%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%); pointer-events: none;
}
/* The eye is film: a still, a short breathing loop over it, and the full film over both
   when the call changes colour. Black in the film lets the card show through. */
.eye-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 320px; cursor: pointer;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent); mask-image: linear-gradient(180deg, #000 74%, transparent);
  transition: filter 0.8s ease;
}
.eye-stage[data-live='false'] { filter: saturate(0.3) brightness(0.62); }
.eye-layer {
  position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 16 / 9; transform: translateX(-50%);
  object-fit: cover; pointer-events: none; background: #000;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
video.eye-layer { opacity: 0; transition: opacity 1.3s ease; }
video.eye-layer.on { opacity: 1; transition-duration: 0.55s; }
.score { position: absolute; top: calc(var(--pad) - 4px); right: var(--pad); z-index: 1; text-align: right; line-height: 1; pointer-events: none; }
/* a soft shadow behind the figure, so the film can pass under it and it still reads */
.score::before { content: ''; position: absolute; inset: -18px -22px -16px -26px; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45) 60%, transparent); }
.score-num { display: block; font: 500 52px/0.95 var(--display); font-variation-settings: 'opsz' 40; color: var(--tone); text-shadow: 0 1px 2px #000, 0 0 14px #000, 0 0 26px color-mix(in srgb, var(--tone) 34%, transparent); }
.score-of { color: var(--ash); font: italic 400 14px var(--display); text-shadow: 0 1px 2px #000, 0 0 10px #000; }
.headline { margin-top: -6px; position: relative; font: 600 clamp(30px, 2.7vw, 40px)/1.08 var(--display); font-variation-settings: 'opsz' 18; letter-spacing: 0.004em; color: var(--tone); text-wrap: balance; text-shadow: 0 0 34px color-mix(in srgb, var(--tone) 20%, transparent); }
.eye-card[data-state='no'] .headline, .eye-card[data-state='aside'] .headline, .eye-card[data-state='closed'] .headline, .eye-card[data-state='nodata'] .headline, .eye-card[data-state='late'] .headline { color: var(--ivory); text-shadow: none; }
.tuck { margin-right: -0.075em; }
.verdict-line { margin: 10px 0 18px; color: var(--ivory); max-width: 46ch; }
.notice { margin: -6px 0 18px; padding: 9px 13px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(214, 178, 94, 0.07); color: var(--wait); font-size: 14.5px; max-width: 46ch; }

.asks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.ask {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1b1b1c, #0c0c0d); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; text-align: left; font-weight: 500; font-size: 15.5px; line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #000;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.15s var(--ease), color 0.2s;
}
.ask::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.16), transparent); transform: skewX(-18deg); opacity: 0;
}
.ask:hover { border-color: var(--line-strong); color: var(--gilt-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px -14px rgba(214, 178, 94, 0.55); }
.ask:hover::after { animation: sweep 0.8s ease-out; }
.ask:active { transform: translateY(1px) scale(0.99); }
.ask[aria-pressed='true'] { border-color: var(--gilt); color: var(--gilt-hi); box-shadow: inset 0 0 0 1px rgba(214, 178, 94, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 22px -8px rgba(214, 178, 94, 0.6); }
.ask-wide { grid-column: 1 / -1; }
.answer { margin-top: 10px; padding: 12px 15px; border-radius: 12px; background: var(--well); border-left: 2px solid var(--ash); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); animation: rise 0.35s var(--ease); }
.answer[data-ok='true'] { border-left-color: var(--buy); }
.answer[data-ok='false'] { border-left-color: var(--wait); }
.toggle { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--ash); font-size: 14.5px; cursor: pointer; }
.toggle input { accent-color: var(--gilt); width: 16px; height: 16px; }

/* ---- Plan ---- */
.plan dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.plan dt { color: var(--ash); }
.plan dd { margin: 0; text-align: right; font-weight: 500; }
.plan .why { grid-column: 1 / -1; text-align: left; color: var(--ash); font-size: 13.5px; font-weight: 400; margin-top: -5px; }
.ladder { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.ladder li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.ladder .bar, .path .track, .callclock .track, .factors .meter, .gap .fill, .tape-meter, .split { background: var(--well); box-shadow: inset 0 1px 2px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.045); }
.ladder .bar { height: 5px; border-radius: 3px; overflow: hidden; }
.ladder .bar i { display: block; height: 100%; background: var(--foil-across); border-radius: 3px; }
.ladder .tp { color: var(--ash); }
.ladder .px { font-weight: 500; }
.ladder em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 9px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.ladder .next .tp, .ladder .next em { color: var(--buy); }
.ladder .next .px { font-weight: 600; }
.ladder .reached { color: var(--ash); }
.ladder .reached .bar i { opacity: 0.4; }
.ladder .reached em { color: var(--ash); }
.side-buy { color: var(--buy); }
.side-sell { color: var(--sell); }

/* ---- Sessions and liquidity ---- */
.sessions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.liq-head { font: 600 clamp(24px, 2.2vw, 32px)/1.12 var(--display); font-variation-settings: 'opsz' 18; text-wrap: balance; }
.liq-line { margin-top: 8px; max-width: 64ch; }
.range { position: relative; margin: 36px 4px 32px; height: 6px; border-radius: 3px; background: var(--well); box-shadow: inset 0 1px 2px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.045); }
.range i { font-style: normal; }
.range .span { position: absolute; top: 0; bottom: 0; background: var(--foil-across); border-radius: 3px; box-shadow: 0 0 14px -2px rgba(214, 178, 94, 0.6); }
.range .end { position: absolute; top: -6px; width: 2px; height: 18px; background: var(--ivory); }
.range .end.taken { background: var(--ash); opacity: 0.6; }
.range .end > span { position: absolute; top: 22px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--ash); }
.range .end b { color: var(--ivory); font-weight: 600; }
.range .now { position: absolute; top: -9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbe9, #d6b25e 60%, #8a6a26); box-shadow: 0 0 0 3px #0a0a0b, 0 0 14px rgba(214, 178, 94, 0.8); }
.range .now span { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; }
.sess-list { display: grid; gap: 10px; }
.sess-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: baseline; }
.sess-list .dot { width: 8px; height: 8px; border-radius: 50%; background: #2a2620; align-self: center; }
.sess-list li[data-open='true'] .dot { background: var(--buy); color: var(--buy); animation: pulse 2.6s ease-out infinite; }
.sess-list li[data-open='true'] .nm { font-weight: 600; }
.sess-list .kz .nm { color: var(--ash); }
.sess-list .when { color: var(--ash); font-size: 14.5px; text-align: right; }
.sess-now { color: var(--ash); font-size: 13.5px; margin-bottom: 12px; }

/* ---- Path + reload zones (plan card) ---- */
.path { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.path p { max-width: 52ch; }
.path .track { height: 5px; border-radius: 3px; overflow: hidden; margin-top: 9px; }
.path .track i { display: block; height: 100%; background: var(--foil-across); border-radius: 3px; }
.reloads { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.reloads ul { display: grid; gap: 8px; }
.reloads li { display: flex; justify-content: space-between; gap: 12px; }
.reloads .st { color: var(--ash); }
.reloads li[data-state='in'] .st { color: var(--wait); font-weight: 600; }
.reloads li[data-state='passed'] { opacity: 0.55; }
.mini-h { font-size: 13.5px; font-weight: 500; color: var(--gilt); margin-bottom: 7px; }

/* Levels on request: entry, stop and three targets for the side asked for */
.want { display: grid; grid-template-columns: auto 1fr 1fr; gap: 9px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.want-h { color: var(--ash); font-size: 14.5px; }
.want-btn {
  background: linear-gradient(180deg, #1b1b1c, #0c0c0d); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--ivory); font-size: 15.5px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.15s var(--ease);
}
.want-btn:active { transform: translateY(1px) scale(0.99); }
.want-btn[data-want='buy']:hover, .want-btn[data-want='buy'][aria-pressed='true'] { border-color: var(--buy); color: var(--buy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px -10px var(--buy); }
.want-btn[data-want='sell']:hover, .want-btn[data-want='sell'][aria-pressed='true'] { border-color: var(--sell); color: var(--sell); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px -10px var(--sell); }
.want-btn[data-want='buy'][aria-pressed='true'] { background: linear-gradient(180deg, rgba(52, 195, 143, 0.2), rgba(52, 195, 143, 0.05)); }
.want-btn[data-want='sell'][aria-pressed='true'] { background: linear-gradient(180deg, rgba(236, 91, 91, 0.2), rgba(236, 91, 91, 0.05)); }
.ticket { margin-top: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--well); box-shadow: inset 0 2px 10px #000; animation: rise 0.35s var(--ease); }
.ticket[data-side='buy'] { border-color: color-mix(in srgb, var(--buy) 50%, transparent); }
.ticket[data-side='sell'] { border-color: color-mix(in srgb, var(--sell) 50%, transparent); }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.ticket-head b { font: 600 20px/1.1 var(--display); font-variation-settings: 'opsz' 14; }
.ticket[data-side='buy'] .ticket-head b { color: var(--buy); }
.ticket[data-side='sell'] .ticket-head b { color: var(--sell); }
.ticket .rel { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ash); white-space: nowrap; }
.ticket[data-rel='with'] .rel { color: var(--buy); border-color: color-mix(in srgb, var(--buy) 50%, transparent); }
.ticket[data-rel='against'] .rel { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 55%, transparent); }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 15.5px; }
.ticket dt { color: var(--ash); }
.ticket dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket dd small { color: var(--ash); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.ticket .stop { color: var(--sell); }
.ticket .tp { color: var(--buy); }
.ticket p { color: var(--ash); font-size: 13.5px; line-height: 1.45; margin-top: 10px; }
.ticket p.onchart { margin-top: 6px; font-size: 12.5px; }

/* Imbalances */
.imb { display: grid; gap: 0; margin: 8px 0 12px; }
.imb li { display: grid; grid-template-columns: 38px 76px 1fr auto; gap: 2px 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.imb li:last-child { border-bottom: 0; }
.imb .tf { color: var(--gilt); font-weight: 600; }
.imb .sd { font-weight: 600; }
.imb li[data-side='buy'] .sd { color: var(--buy); }
.imb li[data-side='sell'] .sd { color: var(--sell); }
.imb b { font-weight: 500; font-variant-numeric: tabular-nums; }
.imb .st { color: var(--ash); font-size: 13.5px; text-align: right; }
.imb .aw { grid-column: 3 / -1; color: var(--ash); font-size: 13.5px; }
.legend { line-height: 1.5; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
.key.buy { background: color-mix(in srgb, var(--buy) 55%, transparent); }
.key.sell { background: color-mix(in srgb, var(--sell) 55%, transparent); margin-left: 4px; }

/* Callouts */
.call-master { margin-top: 0; color: var(--ivory); font-weight: 500; }
.call-opts { display: grid; gap: 10px; margin: 12px 0; }
.opt { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; }
.opt-h { color: var(--ash); font-size: 13.5px; }
.call-log { display: grid; margin: 4px 0 10px; max-height: 268px; overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
.call-log li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.call-log li.quiet { color: var(--ash); }
.call-log .mk { background: none; border: 0; padding: 0; color: var(--gilt-hi); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.call-log .mk:hover, .call-log .mk:focus-visible { text-decoration: underline; }
.call-log li[data-side='buy'] .tx::before, .call-log li[data-side='sell'] .tx::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; }
.call-log li[data-side='buy'] .tx::before { background: var(--buy); }
.call-log li[data-side='sell'] .tx::before { background: var(--sell); }
.call-log .tm { color: var(--ash); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.call-log .none { display: block; color: var(--ash); padding: 14px 0; }
.text-btn { background: none; border: 0; padding: 0; color: var(--gilt); font: inherit; font-size: 14.5px; cursor: pointer; transition: color 0.2s; }
.text-btn:hover, .text-btn:focus-visible { color: var(--gilt-hi); text-decoration: underline; }
@media (max-width: 560px) {
  .range { margin-bottom: 52px; }
  .range .end > span { text-align: center; line-height: 1.3; }
  .range .end .v { display: block; }
  .opt { grid-template-columns: 1fr; gap: 4px; }
  .imb li { grid-template-columns: 34px 70px 1fr; }
  .imb .st { grid-column: 3; text-align: left; }
}

/* ---- Checks + factors ---- */
.checks { display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks .dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; border: 1.5px solid var(--ash); }
.checks li[data-ok='true'] .dot { background: radial-gradient(circle at 35% 30%, #c9ffe9, var(--buy) 55%, #1f8f66); border-color: var(--buy); box-shadow: 0 0 12px -2px var(--buy); }
.checks li[data-ok='false'] .dot { border-color: var(--wait); }
.checks b { font-weight: 600; }
.checks p { color: var(--ash); font-size: 14.5px; }
.factors { display: grid; gap: 12px; }
.factors .row { display: flex; justify-content: space-between; gap: 10px; }
.factors .meter { height: 5px; border-radius: 3px; margin: 6px 0 5px; overflow: hidden; }
.factors .meter i { display: block; height: 100%; background: var(--foil-across); border-radius: 3px; }
.factors p { color: var(--ash); font-size: 13.5px; }

/* ---- Reads ---- */
.read + .read { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.read p { max-width: 62ch; }

/* ---- Tape ---- */
.tape-pace { font: 600 32px/1.1 var(--display); font-variation-settings: 'opsz' 18; }
.tape-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 15px; }
.tape-row:first-child { margin-top: 0; }
.tape-row .lbl { font-size: 14.5px; font-weight: 600; }
.tape-row .val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tape-row .val.soft { color: var(--ash); font-weight: 500; }
.tape-meter { height: 8px; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.tape-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 55%), var(--foil-across); }
.tape-meter.vol i { background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 55%), linear-gradient(90deg, #6b6558, #cfc8b8); }
.tape-meter.buy i { background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 55%), linear-gradient(90deg, #1f8f66, var(--buy)); }
.tape-meter.sell i { background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 55%), linear-gradient(90deg, #b23434, var(--sell)); }
.tape-row.buy .lbl, .tape-row.buy .val { color: var(--buy); }
.tape-row.sell .lbl, .tape-row.sell .val { color: var(--sell); }
.tape-meter.lead { box-shadow: inset 0 1px 2px #000, 0 0 0 1px rgba(246, 231, 180, 0.5), 0 0 16px -4px rgba(214, 178, 94, 0.6); }
.tape-say { margin-top: 13px; font-size: 15px; }
.tape-foot { margin-top: 12px; }
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 14px 0 8px; }
.split .u { background: var(--buy); }
.split .d { background: var(--sell); }
.split-labels { display: flex; justify-content: space-between; font-size: 14.5px; }

/* ---- Calendar ---- */
.cal { display: grid; gap: 11px; }
.cal li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.cal li:last-child { border-bottom: 0; padding-bottom: 0; }
.cal .title { font-weight: 600; }
.cal .count { font-weight: 600; text-align: right; }
.cal .when, .cal .nums { color: var(--ash); font-size: 13.5px; }
.cal .nums { text-align: right; }
.cal li.past { opacity: 0.5; }
.cal li.soon .count { color: var(--wait); }
#cal-note { margin-top: 10px; }

/* ---- Cross-market ---- */
.cross-verdict { font: 600 26px/1.12 var(--display); font-variation-settings: 'opsz' 16; margin-bottom: 7px; }
.cross-list { display: grid; gap: 9px; margin-top: 13px; }
.cross-list li { display: flex; justify-content: space-between; gap: 12px; }
.cross-list small { display: block; color: var(--ash); font-size: 13.5px; }

/* Trend reversal, lead-lag, shadow data */
.checks-note { margin: -4px 0 12px; }

/* ---- Desk / Advanced ---- */
.tabs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 2px auto; background: var(--well); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 2px 5px #000; }
.tabs button { background: none; border: 0; border-radius: 10px; padding: 9px 34px; color: var(--ash); font: 600 19px/1 var(--display); font-variation-settings: 'opsz' 16; letter-spacing: 0.01em; transition: color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.tabs button:hover { color: var(--ivory); }
.tabs button[aria-selected='true'] { color: var(--gilt-hi); background: linear-gradient(180deg, rgba(214, 178, 94, 0.2), rgba(214, 178, 94, 0.07)); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 18px -6px rgba(214, 178, 94, 0.55); }
#desk[data-tab='desk'] .card[data-tab]:not([data-tab='desk']), #desk[data-tab='advanced'] .card[data-tab]:not([data-tab='advanced']), #desk[data-tab='members'] .card[data-tab]:not([data-tab='members']), #desk[data-tab='knowledge'] .card[data-tab]:not([data-tab='knowledge']) { display: none; }
#desk:not([data-tab='knowledge']) .kn-cards { display: none; }
#desk[data-tab='pro'] .card[data-tab]:not([data-tab='pro']) { display: none; }
/* God's Eye Pro: locked until the owner switches it on for this code */
#desk[data-pro='on'] [data-pro-lock], #desk:not([data-pro='on']) .card[data-tab='pro']:not([data-pro-lock]) { display: none; }
.tabs .lock-ic { display: none; width: 11px; height: 13px; margin-left: 9px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tabs .lock-ic rect { fill: currentColor; stroke: none; }
.tabs button[data-locked='true'] .lock-ic { display: inline-block; }
.tabs button[hidden] { display: none; }
.adv-state { font: 600 clamp(34px, 3.4vw, 50px)/1.02 var(--display); font-variation-settings: 'opsz' 28; color: var(--gilt-hi); margin-bottom: 14px; }
.adv-view { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px 44px; align-items: start; }
.adv-rows { display: grid; gap: 11px; }
.adv-rows div b { display: block; font-size: 13.5px; font-weight: 500; color: var(--gilt); margin-bottom: 2px; }
.adv-simple { font-size: 17px; line-height: 1.55; color: var(--ivory); }
.adv-list { display: grid; gap: 12px; }
.adv-list li .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.adv-list li .row span { color: var(--ash); }
.adv-list li .row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adv-list li.reached { color: var(--ash); }
.adv-list li.loss .row b { color: var(--sell); }
.adv-list li.gain .row b { color: var(--buy); }
.adv-path { margin: 4px 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; font: 600 18px/1.45 var(--display); font-variation-settings: 'opsz' 16; font-variant-numeric: tabular-nums; }
.adv-path i { font-style: normal; color: var(--gilt); margin: 0 7px; }
.adv-big { font: 500 58px/1 var(--display); font-variation-settings: 'opsz' 40; color: var(--gilt-hi); }
.adv-big small { font: italic 400 16px var(--display); color: var(--ash); margin-left: 8px; }
.adv-gap { margin-top: 16px; }
#pv-note { margin-top: 14px; }
.pv { display: block; color: var(--ash); font-size: 14.5px; margin-bottom: 7px; }
.pv-input { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--well); color: var(--ivory); font: 500 17px var(--text); box-shadow: inset 0 2px 5px #000; margin-bottom: 16px; }
.pv-input:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 16px; }
.skills li { padding: 2px 28px; border-left: 1px solid var(--line); }
.skills li:first-child { padding-left: 0; border-left: 0; }
.skills li:last-child { padding-right: 0; }
.skills .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.skills .row b { font: 600 21px/1.15 var(--display); font-variation-settings: 'opsz' 16; }
.skills small { display: block; color: var(--ash); font-size: 13.5px; margin: 2px 0 6px; }
.skills .lean { font-size: 12.5px; font-weight: 600; padding: 1px 11px; border-radius: 999px; border: 1px solid currentColor; color: var(--wait); }
.skills li[data-lean='buy'] .lean { color: var(--buy); }
.skills li[data-lean='sell'] .lean { color: var(--sell); }
.up { color: var(--buy); }
.down { color: var(--sell); }

/* ---- Gaps ---- */
.gaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.gap h4 { font-size: 15.5px; color: var(--gilt); font-weight: 500; }
.gap .big { font: 600 26px/1.15 var(--display); font-variation-settings: 'opsz' 16; margin: 3px 0 5px; }
.gap .fill { height: 6px; border-radius: 3px; overflow: hidden; margin: 11px 0 7px; }
.gap .fill i { display: block; height: 100%; background: var(--foil-across); }
.gap p { color: var(--ash); font-size: 13.5px; }
.gap p + p { margin-top: 6px; }

/* ---- Watchlist ---- */
.watch { display: grid; }
.watch button {
  display: grid; grid-template-columns: 1fr auto 76px 88px; gap: 12px; align-items: center;
  background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 8px; text-align: left; border-radius: 0;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.watch button:first-child { border-top: 0; }
.watch button:hover { background: rgba(214, 178, 94, 0.07); }
.watch button[aria-current='true'] { background: linear-gradient(90deg, rgba(214, 178, 94, 0.16), rgba(214, 178, 94, 0.02)); box-shadow: inset 2px 0 0 var(--gilt); }
.watch .nm { font-weight: 600; }
.watch button[aria-current='true'] .nm { color: var(--gilt-hi); }
.watch .px, .watch .pc { text-align: right; }
.watch .lean { text-align: right; font-size: 13.5px; color: var(--ash); white-space: nowrap; }

/* ---- Footer ---- */
.foot { position: relative; max-width: 1480px; margin: 18px auto 0; padding: 20px clamp(14px, 3vw, 32px) 44px; color: var(--ash); font-size: 13.5px; display: grid; gap: 6px; }
.foot::before { content: ''; position: absolute; top: 0; left: clamp(14px, 3vw, 32px); right: clamp(14px, 3vw, 32px); height: 1px; background: linear-gradient(90deg, rgba(214, 178, 94, 0.5), rgba(214, 178, 94, 0.08) 60%, transparent); }
.foot p { max-width: 96ch; }

/* ---- Smaller screens ---- */
/* ---- members (the owner's tab) ---- */
#mem-form .pv-input { margin-bottom: 14px; }
.mem-seg { margin-bottom: 18px; }
.mem-seg button { min-width: 46px; }
#mem-form .btn-primary { width: 100%; }
.mem-rule { margin-top: 14px; }
.btn-quiet.sm { padding: 6px 11px; font-size: 13.5px; border-radius: 9px; }
.btn-quiet[data-armed] { color: var(--sell); border-color: var(--sell); }
.mem-new { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 18px 14px; margin-bottom: 18px; background: linear-gradient(180deg, rgba(214, 178, 94, 0.12), rgba(214, 178, 94, 0.03)); }
.mem-new p { color: var(--ash); }
.mem-new p b { color: var(--ivory); font-weight: 600; }
.mem-code { display: block; font: 600 29px/1.2 var(--text); letter-spacing: 0.1em; font-variant-numeric: lining-nums tabular-nums; color: var(--gilt-hi); margin: 4px 0 12px; user-select: all; overflow-wrap: anywhere; }
.mem-new-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.mem-list { list-style: none; display: grid; }
.mem { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.mem:first-child { border-top: 0; }
.mem b { display: block; font-weight: 600; color: var(--ivory); overflow-wrap: anywhere; }
.mem .mem-note { display: block; color: var(--ash); font-size: 13.5px; overflow-wrap: anywhere; }
.mem-meta { color: var(--ash); font-size: 14px; }
.mem-meta .live { color: var(--buy); }
.mem-meta small { display: block; font-size: 13px; }
.mem[data-status='off'] b { color: var(--ash); }
.mem[data-status='off'] .mem-meta { color: var(--sell); }
.mem-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mem-empty { color: var(--ash); padding: 10px 0 4px; }

/* ---- Knowledge: courses, lessons, tools and tests ----
   Lessons are for reading, so the measure is held to about 68 characters and the type
   is a step larger than the desk's. Every worked example sits in a sunk well; the one
   piece of theatre is the balance, which tips as a book leans long or short. */
.kn-cards { display: contents; }
.kn-setup { display: grid; gap: 18px; max-width: 760px; }
.kn-ask { display: grid; gap: 7px; justify-items: start; }
.kn-ask .pv { margin: 0; color: var(--ivory); font-size: 15.5px; }
.btn-primary.kn-go { width: auto; padding: 10px 22px; font-size: 15px; }
.kn-courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kn-course { display: grid; gap: 5px; align-content: start; text-align: left; padding: 15px 16px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.kn-course:hover { border-color: var(--line-strong); }
.kn-course[aria-pressed='true'] { border-color: rgba(214, 178, 94, 0.6); background: linear-gradient(180deg, rgba(214, 178, 94, 0.16), rgba(214, 178, 94, 0.04)); box-shadow: 0 0 26px -10px rgba(214, 178, 94, 0.6); }
.kn-course b { font: 600 21px/1.15 var(--display); font-variation-settings: 'opsz' 16; color: var(--ivory); }
.kn-course[aria-pressed='true'] b { color: var(--gilt-hi); }
.kn-course > span:not(.kn-meter) { color: var(--ash); font-size: 14px; line-height: 1.4; }
.kn-course small { color: var(--ash); font-size: 13px; margin-top: 4px; }
.kn-meter { display: block; height: 4px; border-radius: 2px; background: var(--well); box-shadow: inset 0 1px 2px #000; overflow: hidden; }
.kn-meter i { display: block; height: 100%; background: var(--foil-across); transition: width 0.5s var(--ease); }
.kn-rule { margin: 20px 0 0; padding-left: 16px; border-left: 2px solid var(--gilt); font: italic 500 20px/1.4 var(--display); font-variation-settings: 'opsz' 15; color: var(--ivory); max-width: 62ch; }
#kn-top .notice { margin: 16px 0 0; max-width: 68ch; }
#kn-top > .note { margin-top: 12px; }
.kn-nav { margin-top: 20px; }
#kn-who { text-align: right; }

.card.kn-toc-card { grid-column: span 4; align-self: start; }
.kn-toc summary { color: var(--ash); font-size: 13.5px; cursor: pointer; margin-bottom: 4px; }
.kn-toc h4 { margin: 16px 0 6px; }
.kn-lesson-btn { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 7px 8px; margin-left: -8px; color: var(--ash); font-size: 15px; line-height: 1.35; transition: color 0.2s, background-color 0.2s; }
.kn-lesson-btn:hover { color: var(--ivory); background: rgba(214, 178, 94, 0.06); }
.kn-lesson-btn i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-strong); transform: translateY(1px); }
.kn-lesson-btn[data-done] i { border-color: var(--gilt); background: var(--gilt); box-shadow: 0 0 8px -1px rgba(214, 178, 94, 0.7); }
.kn-lesson-btn[aria-current='true'] { color: var(--gilt-hi); background: linear-gradient(90deg, rgba(214, 178, 94, 0.15), rgba(214, 178, 94, 0.02)); }

.kn-lesson { padding: 26px clamp(18px, 3vw, 38px) 26px; }
.kn-where { color: var(--ash); font-size: 13.5px; margin-bottom: 8px; }
.card h3.kn-title { font: 600 clamp(27px, 2.5vw, 35px)/1.12 var(--display); font-variation-settings: 'opsz' 24; color: var(--gilt-hi); margin-bottom: 10px; max-width: 24ch; }
.kn-gist { font-size: 19px; line-height: 1.45; color: var(--ivory); max-width: 52ch; margin-bottom: 20px; }
.kn-prose { display: grid; gap: 13px; max-width: 68ch; font-size: 16.5px; line-height: 1.62; color: #ddd7ca; }
.kn-prose .notice { margin: 4px 0 0; max-width: none; }
.kn-list, .kn-steps { display: grid; gap: 10px; }
.kn-list li { position: relative; padding-left: 20px; }
.kn-list li::before { content: ''; position: absolute; left: 3px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gilt); }
.kn-steps { counter-reset: step; }
.kn-steps li { position: relative; padding-left: 34px; counter-increment: step; }
.kn-steps li::before { content: counter(step); position: absolute; left: 0; top: -0.08em; width: 24px; text-align: right; font: 600 19px/1.6 var(--display); color: var(--gilt); }
.kn-deeper { margin-top: 20px; max-width: 68ch; border-top: 1px solid var(--line); padding-top: 12px; }
.kn-deeper summary { color: var(--gilt); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.kn-deeper[open] summary { margin-bottom: 10px; }
.kn-deeper .kn-prose { font-size: 15.5px; color: var(--ash); }

.kn-widget { margin: 26px 0 4px; padding: 18px 18px 16px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); box-shadow: inset 0 2px 8px #000; display: grid; }
.kn-widget > div, .kn-widget > div > div:not([class]), .kn-stack, .kn-stack > div, .kn-stack > div > div:not([class]) { display: grid; gap: 14px; min-width: 0; }
.kn-say { font-size: 15.5px; line-height: 1.5; color: var(--ivory); max-width: 70ch; }
.kn-step { font-size: 15.5px; color: #ddd7ca; }
.kn-step b { color: var(--gilt-hi); font-weight: 600; }
.kn-slider { display: grid; gap: 4px; }
.kn-slider-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ash); font-size: 14.5px; }
.kn-out { color: var(--gilt-hi); font-weight: 600; font-size: 15.5px; text-align: right; }
.kn-slider input { width: 100%; accent-color: var(--gilt); height: 28px; margin: 0; }
.kn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.kn-pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kn-field { display: grid; gap: 0; min-width: 0; }
.kn-field .pv { margin-bottom: 5px; font-size: 13.5px; }
.kn-field .pv-input { margin: 0; padding: 9px 11px; font-size: 16px; min-width: 0; }
.kn-field small { margin-top: 4px; font-size: 12.5px; }
.kn-rows li small { display: block; margin-top: 2px; }
.kn-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kn-acts.between { justify-content: space-between; }
.kn-lesson > .kn-acts { margin-top: 24px; }
.kn-warn { color: var(--wait); }
.kn-hi { color: var(--gilt-hi); }
.kn-big { font: 500 46px/1.05 var(--display); font-variation-settings: 'opsz' 36; color: var(--gilt-hi); }
.kn-sub { margin: 20px 0 10px; }

/* the balance */
.kn-beam { position: relative; height: 84px; margin: 2px 0 6px; }
.kn-beam-bar { position: absolute; left: 11%; right: 11%; top: 22px; height: 3px; border-radius: 2px; background: var(--foil-across); transform-origin: 50% 50%; transition: transform 0.6s var(--ease); box-shadow: 0 0 14px -2px rgba(214, 178, 94, 0.6); }
.kn-pan { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; background: #0b0b0c; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.kn-pan.buy { left: 0; transform: translateX(-30%); color: var(--buy); }
.kn-pan.sell { right: 0; transform: translateX(30%); color: var(--sell); }
.kn-beam-post { position: absolute; left: 50%; top: 23px; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom: 34px solid rgba(214, 178, 94, 0.3); }
.kn-beam[data-side='flat'] .kn-beam-bar { box-shadow: 0 0 20px 0 rgba(246, 231, 180, 0.7); }

/* questions */
.kn-check { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 68ch; }
.kn-check h4 { margin-bottom: 8px; }
.kn-q { font-size: 17.5px; line-height: 1.45; font-weight: 500; color: var(--ivory); margin-bottom: 14px; max-width: 60ch; }
.kn-options { display: grid; gap: 8px; }
.kn-option { text-align: left; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; font-size: 15.5px; line-height: 1.4; color: var(--ivory); transition: border-color 0.2s, background-color 0.2s; }
.kn-option:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(214, 178, 94, 0.07); }
.kn-option:disabled { cursor: default; color: var(--ash); }
.kn-option.right { border-color: var(--buy); background: rgba(52, 195, 143, 0.1); color: var(--ivory); }
.kn-option.wrong { border-color: var(--sell); background: rgba(236, 91, 91, 0.09); color: var(--ivory); }
.kn-result { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: #ddd7ca; min-height: 1.5em; }
.kn-result.right b { color: var(--buy); }
.kn-result.wrong b { color: var(--sell); }
.kn-test .kn-q { font-size: 20px; }
.kn-test .kn-options, .kn-test .kn-result { max-width: 68ch; }
.kn-test .kn-acts { margin-top: 16px; }
.kn-why { display: grid; gap: 10px; max-width: 76ch; font-size: 15px; line-height: 1.5; color: #ddd7ca; }
.kn-why li { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.kn-why li.ok { border-left-color: var(--buy); }
.kn-why li.miss { border-left-color: var(--sell); }
.kn-why b { color: var(--ivory); font-weight: 600; }

/* drawings */
.kn-board { display: block; width: 100%; height: 250px; }
.kn-board.kn-profile { height: 300px; }
.kn-board.kn-profile.tall { height: 430px; }
.kn-board.kn-stress { height: 230px; margin: 6px 0 14px; }
.kn-vrows { display: grid; gap: 3px; }
.kn-vrow { display: grid; grid-template-columns: 84px 1fr 26px; gap: 10px; align-items: center; background: none; border: 0; border-radius: 6px; padding: 3px 4px; text-align: left; color: var(--ash); font-size: 14px; }
.kn-vrow:hover { background: rgba(214, 178, 94, 0.07); color: var(--ivory); }
.kn-vbar { display: block; height: 15px; border-radius: 3px; background: rgba(255, 255, 255, 0.03); }
.kn-vbar i { display: block; height: 100%; border-radius: 3px; background: rgba(163, 157, 144, 0.4); transition: width 0.25s var(--ease); }
.kn-vrow.va .kn-vbar i { background: rgba(214, 178, 94, 0.62); }
.kn-vrow.poc .kn-vbar i { background: var(--gilt-hi); }
.kn-vrow.poc { color: var(--gilt-hi); }
.kn-vrow b { font-weight: 600; text-align: right; }

/* the labs */
.kn-legs { display: grid; margin: 16px 0 4px; }
.kn-legs li { display: grid; grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.2fr) auto auto; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.kn-legs li:first-child { border-top: 0; }
.kn-legs .toggle { margin: 0 0 9px; font-size: 13.5px; }
.kn-legs .btn-quiet { margin-bottom: 4px; }
.kn-legs li[data-side='buy'] .seg button[aria-pressed='true'] { color: var(--buy); box-shadow: inset 0 0 0 1px var(--buy); background: rgba(52, 195, 143, 0.1); }
.kn-legs li[data-side='sell'] .seg button[aria-pressed='true'] { color: var(--sell); box-shadow: inset 0 0 0 1px var(--sell); background: rgba(236, 91, 91, 0.09); }
#kn-cards .card > .kn-acts { margin: 14px 0 12px; }
#kn-cards .card > .kn-pair { margin-bottom: 12px; }
#kn-cards .card > .seg { margin-bottom: 16px; }
#kn-cards .card > .kn-slider { margin-bottom: 8px; }
#kn-cards .card > .note { margin-top: 14px; max-width: 70ch; }
#kn-cards .card > .kn-say { margin-bottom: 14px; }
#kn-cards .card > .notice { margin: 0 0 14px; max-width: none; }
.kn-table { display: grid; margin-top: 16px; font-size: 14.5px; }
.kn-table li { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 7px 8px; border-top: 1px solid var(--line); }
.kn-table li > :nth-child(2), .kn-table li > :nth-child(3) { text-align: right; }
.kn-table li.head { border-top: 0; color: var(--ash); font-size: 13.5px; }
.kn-table li.now { background: rgba(214, 178, 94, 0.08); }
.kn-table b { font-weight: 600; }
.kn-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 34px; align-items: start; }
.kn-words { display: grid; margin: 0; }
.kn-words > div { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 4px 22px; padding: 11px 0; border-top: 1px solid var(--line); }
.kn-words > div:first-child { border-top: 0; }
.kn-words dt { color: var(--gilt-hi); font-weight: 500; }
.kn-words dd { margin: 0; color: #ddd7ca; max-width: 72ch; }
.kn-words.cmds > div { grid-template-columns: 124px 1fr; }
.kn-words.cmds dt { font-size: 14px; letter-spacing: 0.04em; }
.kn-words.cmds dd { font-size: 14.5px; }
.kn-prompt { width: 100%; resize: vertical; background: var(--well); color: #ddd7ca; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; font: 400 14px/1.55 var(--text); box-shadow: inset 0 2px 6px #000; }
.kn-split .kn-acts { margin-top: 12px; }

/* the mentor: a conversation. Its answers sit in a sunk well like every worked example;
   what the member typed is set in gold on the right. */
.kn-chat { position: relative; display: grid; gap: 12px; align-content: start; height: min(62vh, 620px); overflow-y: auto; padding: 4px 8px 6px 2px; margin-bottom: 14px; scroll-behavior: smooth; scrollbar-width: thin; }
.kn-msg { max-width: min(80ch, 90%); padding: 13px 16px; border-radius: 14px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.55; min-width: 0; }
.kn-msg.mentor { justify-self: start; border-top-left-radius: 4px; background: var(--well); border: 1px solid var(--line); box-shadow: inset 0 2px 6px #000; color: #ddd7ca; }
.kn-msg.you { justify-self: end; border-top-right-radius: 4px; background: linear-gradient(180deg, rgba(214, 178, 94, 0.22), rgba(214, 178, 94, 0.08)); border: 1px solid var(--line-strong); color: var(--ivory); }
.kn-work { display: grid; gap: 5px; padding: 10px 13px; border-left: 2px solid var(--gilt); border-radius: 0 9px 9px 0; background: rgba(214, 178, 94, 0.06); color: var(--ivory); font-size: 15px; overflow-wrap: anywhere; }
.kn-msg .kn-list { gap: 6px; }
.kn-scroll { overflow-x: auto; }
.kn-mtable { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.kn-mtable th { text-align: left; font-weight: 500; font-size: 13.5px; color: var(--ash); padding: 0 14px 6px 0; }
.kn-mtable td { padding: 7px 14px 7px 0; border-top: 1px solid var(--line); color: var(--ivory); vertical-align: top; }
.kn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.kn-say-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.kn-say-row .pv-input { margin: 0; }

@media (max-width: 1080px) {
  .kn-courses { grid-template-columns: repeat(2, 1fr); }
  .card.kn-toc-card { grid-column: 1 / -1; }
  .kn-toc h4:first-of-type { margin-top: 8px; }
  .kn-split { grid-template-columns: 1fr; }
  #kn-who { text-align: left; }
}
@media (max-width: 680px) {
  .tabs { flex-wrap: wrap; }
  .tabs button { padding: 9px 13px; font-size: 16px; }
  .kn-course { padding: 12px 12px 11px; }
  .kn-course b { font-size: 18px; }
  .kn-course > span:not(.kn-meter) { display: none; }
  .kn-rule { font-size: 18px; }
  .kn-gist { font-size: 17.5px; }
  .kn-prose { font-size: 16px; }
  .kn-pair.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-legs li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-legs li .seg { grid-column: 1 / -1; justify-self: start; }
  .kn-words > div, .kn-words.cmds > div { grid-template-columns: 1fr; }
  .kn-board { height: 220px; }
  .kn-board.kn-profile.tall { height: 340px; }
  .kn-pan.buy { transform: translateX(-12%); }
  .kn-pan.sell { transform: translateX(12%); }
  .kn-big { font-size: 38px; }
  .kn-msg { max-width: 96%; padding: 11px 13px; }
  .kn-chat { height: 64vh; }
}

/* ---- God's Eye Pro ---- */
.pro-state { font: 600 clamp(32px, 3.2vw, 48px)/1.04 var(--display); font-variation-settings: 'opsz' 28; color: var(--gilt-hi); margin-bottom: 12px; }
.pro-state[data-side='buy'] { color: var(--buy); }
.pro-state[data-side='sell'] { color: var(--sell); }
.pro-desk { font-size: 17px; line-height: 1.55; color: var(--ivory); max-width: 62ch; }
.pro-desk[data-state='against'] { padding-left: 14px; border-left: 2px solid var(--wait); }
.pro-warn { margin-top: 10px; color: var(--wait); font-size: 14.5px; max-width: 62ch; }
.pro-src[data-state='stale'], .pro-src[data-state='down'] { color: var(--wait); }
.pro-lock .note { margin-top: 12px; max-width: 62ch; }
.pro-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px 48px; align-items: center; }
.pro-gauges { display: grid; gap: 16px; }
.pro-gauge .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: var(--ash); }
.pro-gauge .row b { font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }
.pro-gauge .row b.buy, .pro-facts b.buy { color: var(--buy); }
.pro-gauge .row b.sell, .pro-facts b.sell { color: var(--sell); }
.pro-track { position: relative; height: 12px; margin-top: 9px; border-radius: 999px; background: var(--well); box-shadow: inset 0 1px 2px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.045); }
.pro-track .zone { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: repeating-linear-gradient(115deg, rgba(240, 195, 90, 0.3) 0 5px, rgba(240, 195, 90, 0.08) 5px 10px); }
.pro-track .tick { position: absolute; top: 2px; bottom: 2px; width: 1px; background: rgba(214, 178, 94, 0.5); }
.pro-track .tick.mid { top: -4px; bottom: -4px; background: var(--gilt-hi); }
.pro-track .needle { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gilt) 55%, var(--gilt-lo)); box-shadow: 0 0 0 2px var(--lacquer), 0 0 14px -2px var(--gilt); transition: left 0.6s var(--ease); }
.pro-track .needle[data-side='buy'] { background: radial-gradient(circle at 35% 30%, #c9ffe9, var(--buy) 55%, #1f8f66); box-shadow: 0 0 0 2px var(--lacquer), 0 0 14px -2px var(--buy); }
.pro-track .needle[data-side='sell'] { background: radial-gradient(circle at 35% 30%, #ffd6d6, var(--sell) 55%, #b23434); box-shadow: 0 0 0 2px var(--lacquer), 0 0 14px -2px var(--sell); }
.pro-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ash); margin-top: -6px; }
.pro-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 22px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.pro-facts li { display: grid; gap: 3px; align-content: start; min-width: 0; }
.pro-facts span { font-size: 13.5px; color: var(--ash); }
.pro-facts b { font: 500 27px/1.1 var(--display); font-variation-settings: 'opsz' 20; font-variant-numeric: tabular-nums lining-nums; color: var(--gilt-hi); white-space: nowrap; }
.pro-facts small { font-size: 13px; color: var(--ash); }
.card[data-card='pro-flow'] { display: flex; flex-direction: column; }
.pro-chart-wrap { position: relative; flex: 1 1 auto; min-height: 470px; }
.pro-chart { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
#pro-top > .note { margin-top: 10px; }
.pro-hover { min-height: 1.5em; margin: -4px 0 8px; font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.pro-foot-wrap { overflow: hidden; }
.pro-foot { display: block; width: 100%; height: 120px; }
#pro-foot-note { margin-top: 10px; max-width: 78ch; }
.pro-ladder { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pro-ladder li { display: grid; grid-template-columns: minmax(64px, auto) 1fr minmax(44px, auto); gap: 10px; align-items: center; height: 21px; color: var(--ash); }
.pro-ladder li b { font-weight: 500; color: var(--ivory); text-align: right; }
.pro-ladder .bar { height: 9px; border-radius: 2px; background: var(--well); overflow: hidden; }
.pro-ladder .bar i { display: block; height: 100%; border-radius: 2px; transition: width 0.4s var(--ease); }
.pro-ladder li[data-side='ask'] .bar i { background: linear-gradient(90deg, #b23434, var(--sell)); }
.pro-ladder li[data-side='bid'] .bar i { background: linear-gradient(90deg, #1f8f66, var(--buy)); }
.pro-ladder li.mid { display: flex; justify-content: space-between; align-items: baseline; height: auto; margin: 7px 0; padding: 8px 0; border-block: 1px solid var(--line); }
.pro-ladder li.mid b { font: 500 23px/1 var(--display); font-variation-settings: 'opsz' 20; font-variant-numeric: tabular-nums lining-nums; color: var(--gilt-hi); }
#pro-book .note, #pro-tape .note { margin-top: 12px; }
.pro-tape { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pro-tape li { display: grid; grid-template-columns: auto 52px 1fr auto; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ash); }
.pro-tape li:first-child { border-top: 0; padding-top: 0; }
.pro-tape li b { font-weight: 600; color: var(--ivory); }
.pro-tape li[data-side='buy'] b:first-of-type { color: var(--buy); }
.pro-tape li[data-side='sell'] b:first-of-type { color: var(--sell); }
.pro-about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 40px; }
.pro-about p { color: var(--ivory); line-height: 1.55; }
.mem-pro { display: inline-block; margin-left: 9px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--gilt-hi); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.mem-check { display: flex; gap: 10px; align-items: center; margin: 2px 0 16px; color: var(--ivory); font-size: 15px; cursor: pointer; }
.mem-check input { width: 18px; height: 18px; accent-color: var(--gilt); }

@media (max-width: 1080px) {
  .card.chart-card, .card.eye-card { grid-column: 1 / -1; }
  .pro-top { grid-template-columns: 1fr; }
  .pro-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
  .pro-about { grid-template-columns: 1fr; }
  .card { grid-column: span 6; }
  .card.half, .card.span8 { grid-column: 1 / -1; }
  .eye-card { order: -1; }
  .sessions { grid-template-columns: 1fr; gap: 24px; }
  .adv-view { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; gap: 15px; }
  .skills li, .skills li:first-child, .skills li:last-child { padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .skills li:last-child { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 680px) {
  :root { --gap: 12px; --radius: 14px; }
  body { font-size: 15px; }
  .card, .card.half { grid-column: 1 / -1; }
  .tabs button { padding: 9px 18px; font-size: 17px; }
  .pro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-facts b { font-size: 23px; }
  .pro-chart-wrap { min-height: 400px; }
  .pro-desk { font-size: 16px; }
  .mem { grid-template-columns: 1fr; }
  .mem-acts { justify-content: flex-start; }
  .mem-code { font-size: 25px; }
  :root { --pad: 16px; }
  .top { gap: 12px; }
  #brand-name { font-size: 20px; }
  .brand-mark { width: 34px; }
  .top-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .picker { flex: 1; }
  .picker select { width: 100%; min-width: 0; }
  .chart-wrap { min-height: 300px; }
  .mkt-name { font-size: 26px; }
  .score-num { font-size: 42px; }
  .ask { font-size: 14.5px; padding: 13px 10px; }
  .watch button { grid-template-columns: 1fr auto 66px; }
  .watch .lean { display: none; }
  .lock-card { padding: 30px 22px 26px; }
}
/* ---- Call clock and the entry being followed ---- */
.callclock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px 0; align-items: start; }
.cc-col { min-width: 0; padding: 0 34px; }
.cc-col:first-child { padding-left: 0; }
.cc-col:last-child { padding-right: 0; }
.cc-col + .cc-col { border-left: 1px solid var(--line); }
.cc-big { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 12px; font: 500 clamp(40px, 4vw, 56px)/1 var(--display); font-variation-settings: 'opsz' 36; font-variant-numeric: tabular-nums lining-nums; color: var(--gilt-hi); }
.cc-big small { font: italic 400 16px var(--display); color: var(--ash); }
.cc-big[data-side='buy'] { color: var(--buy); }
.cc-big[data-side='sell'] { color: var(--sell); }
.cc-big.off { font-size: clamp(27px, 2.5vw, 34px); font-weight: 600; line-height: 1.15; color: var(--ivory); }
.cc-big[data-end='stopped'] { color: var(--sell); }
.cc-big[data-end='done'] { color: var(--buy); }
.callclock .track { height: 5px; border-radius: 3px; overflow: hidden; margin: 0 0 12px; }
.callclock .track i { display: block; height: 100%; background: var(--foil-across); border-radius: 3px; transition: width 1s linear; }
.cc-col p { max-width: 54ch; }
.cc-col p + p { margin-top: 8px; }
.cc-col .note { margin-top: 10px; }
.cc-levels { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 12px; font-size: 15.5px; }
.cc-levels dt { color: var(--ash); }
.cc-levels dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-levels dd small { color: var(--ash); font-weight: 400; font-size: 12.5px; margin-left: 8px; }
.cc-levels .stop { color: var(--sell); }
.cc-levels .tp { color: var(--buy); }
.cc-tps { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; margin: 4px 0 12px; }
.cc-tps li { display: grid; gap: 1px; align-content: start; min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--well); font-size: 13px; }
.cc-tps li span { color: var(--ash); }
.cc-tps li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-tps li small { min-height: 1.3em; color: var(--ash); font-size: 12px; }
.cc-tps li.hit { border-color: color-mix(in srgb, var(--buy) 55%, transparent); }
.cc-tps li.hit small { color: var(--buy); }
.cc-tps li.next { border-color: var(--line-strong); }
.cc-tps li.next small { color: var(--gilt-hi); }
.eta { color: var(--gilt-hi); }
.note.eta { margin-top: 9px; }
.adv-list small.eta { margin-left: 10px; font-size: 13px; white-space: nowrap; }
.cc-styles { display: grid; gap: 8px; }
.cc-styles button {
  width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; text-align: left; padding: 10px 13px;
  background: linear-gradient(180deg, #1b1b1c, #0c0c0d); border: 1px solid var(--line); border-radius: 12px; color: var(--ivory); font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: border-color 0.2s, box-shadow 0.25s;
}
.cc-styles button:hover { border-color: var(--line-strong); }
.cc-styles button[aria-current='true'] { border-color: var(--gilt); box-shadow: inset 0 0 0 1px rgba(214, 178, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.cc-styles .nm { font-weight: 600; color: var(--gilt-hi); }
.cc-styles .st { font-weight: 500; color: var(--ash); }
.cc-styles .st[data-state='go'][data-side='buy'] { color: var(--buy); }
.cc-styles .st[data-state='go'][data-side='sell'] { color: var(--sell); }
.cc-styles .st[data-state='wait'] { color: var(--wait); }
.cc-styles .tl { color: var(--ash); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-styles .fl { grid-column: 2 / -1; font-size: 12.5px; color: var(--ash); }
.cc-styles .fl::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--gilt); }
.cc-styles .fl[data-side='buy']::before { background: var(--buy); }
.cc-styles .fl[data-side='sell']::before { background: var(--sell); }
.call-log li[data-kind='trade'] .tx { font-weight: 600; }

/* ---- Order-flow lights (tape card, and the head of God's Eye Pro) ---- */
.flow-h { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.lights { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.lights li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--well); color: var(--ash); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color 0.3s, border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.lights li[data-on='true'][data-side='buy'] { color: #04140d; background: var(--buy); border-color: var(--buy); box-shadow: 0 0 18px -4px var(--buy); }
.lights li[data-on='true'][data-side='sell'] { color: #1c0505; background: var(--sell); border-color: var(--sell); box-shadow: 0 0 18px -4px var(--sell); }
.tape-say[data-quiet='true'] { color: var(--ash); }
.pro-lights { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.pro-lights p { margin-top: 8px; max-width: 86ch; }

/* ---- Liquidity map ---- */
.pro-map-wrap { position: relative; height: 450px; }
.pro-map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.pro-map-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 13px; color: var(--ash); }
.pro-map-key li { display: inline-flex; align-items: center; gap: 8px; }
.pro-map-key .k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.pro-map-key .k.heat { width: 22px; border-radius: 2px; background: linear-gradient(90deg, rgba(214, 178, 94, 0.14), #f6e7b4); }
.pro-map-key .k.buy { background: var(--buy); }
.pro-map-key .k.sell { background: var(--sell); }
.pro-map-key .k.big { background: none; box-shadow: inset 0 0 0 2px var(--gilt-hi); }
.pro-map-key .k.line { width: 22px; height: 2px; border-radius: 1px; background: var(--ivory); }
#pro-map-note { margin-top: 8px; max-width: 92ch; }

@media (max-width: 1080px) {
  .callclock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 0; }
  .cc-col:nth-child(2) { padding-right: 0; }
  .cc-col:nth-child(3) { grid-column: 1 / -1; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .callclock { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cc-col, .cc-col:nth-child(3) { grid-column: auto; padding: 20px 0 0; margin-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .cc-col:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
  .cc-col + .cc-col { border-left: 0; }
  .cc-styles button { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .pro-map-wrap { height: 370px; }
}

/* ---- Twenty targets: the first five, then a list that stays as the reader left it ---- */
.more { margin-top: 12px; border-top: 1px solid var(--line); }
.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0 2px; color: var(--ash); font-size: 13.5px; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid var(--gilt); border-bottom: 1.5px solid var(--gilt); transform: rotate(45deg) translateY(-2px); transition: transform 0.18s var(--ease); }
.more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.more > summary:hover, .more[open] > summary { color: var(--ivory); }
.more > summary:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 4px; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; margin: 11px 0 9px; }
.more-list li { display: grid; gap: 1px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--well); font-size: 13px; }
.more-list li span, .more-list li small { color: var(--ash); }
.more-list li small { font-size: 12px; }
.more-list li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.more-list li.next { border-color: var(--line-strong); }
.more-list li.next small { color: var(--buy); }
.more-list li.reached b { color: var(--ash); }
.more .adv-list { margin: 13px 0 4px; }
.adv-list .fold-li .more { margin-top: 0; }
.cc-count { margin: -4px 0 12px; }
#plan dd.why { font-size: 13.5px; }

/* ---- Futures basis, under the chart ---- */
.basis { display: flex; flex-wrap: wrap; gap: 3px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ash); }
.basis .k { color: var(--gilt); }
.basis b { color: var(--ivory); font-weight: 500; font-variant-numeric: tabular-nums; }
.basis [data-side='buy'] b { color: var(--buy); }
.basis [data-side='sell'] b { color: var(--sell); }

/* ---- Vote board ---- */
.votes-tally { display: flex; gap: 16px; margin: 0 auto 0 10px; font-size: 13.5px; color: var(--ash); }
.votes-tally b { font: 600 21px/1 var(--display); font-variation-settings: 'opsz' 16; margin-right: 2px; }
.votes-tally [data-vote='buy'] b { color: var(--buy); }
.votes-tally [data-vote='sell'] b { color: var(--sell); }
.votes-tally [data-vote='wait'] b { color: var(--wait); }
.votes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 0; margin: 4px 0 16px; }
.votes li { padding: 2px 28px; border-left: 1px solid var(--line); min-width: 0; }
.votes li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.votes li:nth-child(3n) { padding-right: 0; }
.votes .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.votes .row b { font: 600 19px/1.2 var(--display); font-variation-settings: 'opsz' 16; }
.votes small { display: block; color: var(--ash); font-size: 13px; margin: 2px 0 6px; }
.votes p { font-size: 14.5px; }
.votes .lean { flex: none; font-size: 12.5px; font-weight: 600; padding: 1px 11px; border-radius: 999px; border: 1px solid currentColor; color: var(--wait); }
.votes li[data-vote='buy'] .lean { color: var(--buy); }
.votes li[data-vote='sell'] .lean { color: var(--sell); }
.votes-foot { max-width: 104ch; }

/* ---- Next week's gap, and the weekly background reports ---- */
.gap-next { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.gap-next h5 { margin: 0 0 9px; font: 500 14.5px/1.3 var(--text); color: var(--gilt-hi); }
.gap-split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 9px; background: var(--well); }
.gap-split i { display: block; height: 100%; }
.gap-split .up { background: var(--buy); }
.gap-split .flat { background: rgba(163, 157, 144, 0.34); }
.gap-split .down { background: var(--sell); }
.gap-next dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 8px 0; font-size: 13.5px; }
.gap-next dt { color: var(--ash); }
.gap-next dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.gap-crypto { grid-column: 1 / -1; }
.bg-block { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.bg-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.bg-block h4 { margin: 0; font-size: 15.5px; color: var(--gilt); font-weight: 500; }
.bg-big { font: 600 21px/1.2 var(--display); font-variation-settings: 'opsz' 16; margin: 4px 0 6px; }
.bg-big.up { color: var(--buy); }
.bg-big.down { color: var(--sell); }
.bg-block p { color: var(--ash); font-size: 13.5px; }
.bg-block p + p { margin-top: 5px; }
.bg-block p.warn { color: var(--wait); }
.bg-block p.empty { padding: 8px 0 0; }
.bg-foot { margin-top: 12px; }

@media (max-width: 1080px) {
  .votes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .votes li:nth-child(n) { padding: 2px 0 2px 24px; border-left: 1px solid var(--line); }
  .votes li:nth-child(2n + 1) { padding: 2px 24px 2px 0; border-left: 0; }
}
@media (max-width: 680px) {
  .votes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .votes li:nth-child(n) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .votes li:first-child { padding-top: 0; border-top: 0; }
  .votes-tally { gap: 12px; }
}

/* ---- Order ticket ---- */
.order-status { margin: 0 auto 0 10px; font-size: 12.5px; font-weight: 600; padding: 2px 12px; border-radius: 999px; border: 1px solid currentColor; color: var(--ash); }
.order-status[data-status='market'][data-side='buy'], .order-status[data-status='limit'][data-side='buy'] { color: var(--buy); }
.order-status[data-status='market'][data-side='sell'], .order-status[data-status='limit'][data-side='sell'] { color: var(--sell); }
.order-status[data-status='market'] { background: color-mix(in srgb, currentColor 13%, transparent); }
.order-status[data-status='hold'] { color: var(--wait); }
.order-why { color: var(--ash); font-size: 14.5px; margin: 0 0 12px; max-width: 62ch; }
.order-out { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; }
.order-out dt { color: var(--ash); }
.order-out dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.order-out dd[data-k='Stop loss'] { color: var(--sell); }
.order-out dd[data-k='Take profit'] { color: var(--buy); }
.order-out dd[data-k='Lots'] { font: 600 22px/1.1 var(--display); font-variation-settings: 'opsz' 16; color: var(--gilt-hi); }
.order-out[data-status='hold'] dd { color: var(--ash); font-weight: 400; }
.order-tp { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ash); font-size: 14.5px; }
.order-tp .seg button { padding: 5px 10px; font-size: 13.5px; }
.order-mine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.order-mine legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin-bottom: 9px; color: var(--gilt); font-size: 14.5px; }
.order-mine label { display: grid; gap: 5px; color: var(--ash); font-size: 13px; min-width: 0; }
.order-mine input { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--well); color: var(--ivory); font: 500 15.5px var(--text); box-shadow: inset 0 2px 5px #000; }
.order-mine input:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.order-size { margin-top: 10px; }
.order-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }
.order-acts button:disabled { opacity: 0.45; cursor: not-allowed; }

.offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* ---- Optimal entry, on the ticket card ---- */
.order-opt { margin: 0 0 14px; padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.opt-head h4 { margin: 0; font-size: 15.5px; color: var(--gilt); font-weight: 500; }
.opt-lit { font-size: 12.5px; font-weight: 600; padding: 1px 11px; border-radius: 999px; border: 1px solid currentColor; color: var(--wait); }
.order-opt[data-lit='true'][data-side='buy'] .opt-lit { color: var(--buy); background: color-mix(in srgb, var(--buy) 13%, transparent); }
.order-opt[data-lit='true'][data-side='sell'] .opt-lit { color: var(--sell); background: color-mix(in srgb, var(--sell) 13%, transparent); }
.opt-best { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 2px; }
.opt-best b { font: 600 30px/1.1 var(--display); font-variation-settings: 'opsz' 16; font-variant-numeric: tabular-nums; }
.opt-best span, .opt-until { color: var(--ash); font-size: 14px; }
.opt-until { margin: 0; }
.opt-until b { color: var(--ivory); font-weight: 600; font-variant-numeric: tabular-nums; }
.opt-rows { display: grid; gap: 5px; margin: 10px 0 9px; font-size: 14px; }
.opt-rows li { display: grid; grid-template-columns: 16px 46px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.opt-rows li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ash); align-self: center; }
.opt-rows li[data-ok='true']::before { border-color: var(--buy); background: var(--buy); }
.opt-rows b { font-weight: 600; }
.opt-rows span { color: var(--ash); }
.opt-rows li[data-ok='true'] span { color: var(--ivory); }
.opt-line { margin: 0; font-size: 14px; color: var(--ash); }
.order-opt[data-lit='true'] .opt-line { color: var(--ivory); }

/* ---- Official releases under the calendar, and the credit under the tanker counts ---- */
.cal-official { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-official h4 { margin: 0 0 7px; font-size: 15.5px; color: var(--gilt); font-weight: 500; }
.cal-official ul { display: grid; gap: 9px; margin-bottom: 9px; }
.cal-official li { display: grid; gap: 1px; font-size: 14.5px; }
.cal-official small { color: var(--ash); font-size: 12.5px; }
.cal-official a, .bg-credit a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.cal-official a:hover, .bg-credit a:hover { color: var(--gilt-hi); text-decoration-color: var(--gilt); }
.cal-official a:focus-visible, .bg-credit a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; border-radius: 3px; }
.bg-block p.bg-credit { font-size: 12.5px; margin-top: 7px; }
.cal li.jobs .title { color: var(--gilt-hi); }

/* ---- The desk's record ---- */
.record-since { margin: 0 auto 0 10px; }
.record h4 { margin: 0; font-size: 15.5px; color: var(--gilt); font-weight: 500; }
.record h4.rec-h { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.rec-big { font: 600 21px/1.25 var(--display); font-variation-settings: 'opsz' 16; margin: 4px 0 9px; }
.rec-big b { font-size: 30px; color: var(--gilt-hi); margin-right: 2px; }
.rec-split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--well); margin-bottom: 9px; }
.rec-split i { display: block; height: 100%; }
.rec-split .hit { background: var(--buy); }
.rec-split .stop { background: var(--sell); }
.record p { color: var(--ash); font-size: 14px; }
.record p + p { margin-top: 6px; }
.record p.warn { color: var(--wait); }
.rec-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rec-table th, .rec-table td { padding: 6px 0 6px 12px; text-align: right; border-top: 1px solid var(--line); font-weight: 400; }
.rec-table thead th { border-top: 0; color: var(--ash); font-size: 12.5px; padding-top: 0; }
.rec-table th:first-child { text-align: left; padding-left: 0; }
.rec-table th small { color: var(--ash); margin-left: 7px; font-size: 12.5px; }
.rec-table tr.mine th, .rec-table tr.mine td { color: var(--gilt-hi); }
.rec-table tr.sum th, .rec-table tr.sum td { font-weight: 600; border-top-color: var(--line-strong); }
.rec-list { display: grid; gap: 6px; margin: 9px 0 14px; font-size: 14px; }
.rec-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rec-list small { color: var(--ash); margin-left: 8px; font-size: 12.5px; }
.rec-list b { font-weight: 500; text-align: right; }
.rec-list li[data-grade='hit'] b { color: var(--buy); }
.rec-list li[data-grade='stopped'] b { color: var(--sell); }
.rec-list li[data-grade='timeout'] b { color: var(--ash); }
.record > .note { margin-top: 12px; }

@media (max-width: 680px) {
  .order-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-list li { display: grid; gap: 0; }
  .rec-list b { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
