/* Admin → Markets → Charts (charts.js). Operate mode: precise, calm, numbers in mono. */
.cx { --cx-gold: #E9B44C; --cx-up: #2EC4A0; --cx-dn: #F2665E; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.cx .mono, .cx-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cx .up { color: var(--cx-up); } .cx .dn { color: var(--cx-dn); }
.cx button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; font: inherit; }
.cx .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* head: market, timeframes, actions */
.cx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cx-sym { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 160ms ease; }
.cx-sym-n { font: 600 19px/1.1 var(--serif); letter-spacing: -.01em; }
.cx-sym-c { color: var(--cx-gold); font-size: 12px; }
.cx-sym:active, .cx-b:active, .cx-t:active, .cx-r:active, .btn.cx-go:active { transform: scale(.97); }
.cx-tfs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.cx-tfs::-webkit-scrollbar { display: none; }
.cx-tf { flex: none; min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 13px/1 var(--mono); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.cx-tf[aria-selected="true"] { background: var(--cx-gold); color: #0B1220; }
.cx-acts { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.cx-b { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 160ms ease, color 160ms ease; }
.cx-b svg { color: var(--cx-gold); flex: none; }
.cx-b.on { border-color: var(--cx-gold); color: var(--cx-gold); }
.cx-b.cx-ico { padding: 0 10px; }
.cx-save.dirty { border-color: var(--cx-gold); }
.cx-save.dirty::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cx-gold); margin-left: 2px; }
.cx-saved { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--muted); }
.cx-saved b { color: var(--text); font-weight: 600; }
.cx-link { background: none; border: 0; padding: 4px 2px; color: var(--cx-gold); font-weight: 600; cursor: pointer; font-size: 13.5px; }

/* stage: tools + chart */
.cx-stage { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.cx-tools { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; max-height: clamp(420px, 66vh, 780px); }
.cx-tools::-webkit-scrollbar { display: none; }
.cx-t { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.cx-t.on { background: rgba(233,180,76,.16); color: var(--cx-gold); }
.cx-t.warn { color: var(--cx-dn); }
.cx-sep { flex: none; width: 24px; height: 1px; background: var(--line); margin: 4px 0; }
.cx-cols { display: grid; grid-template-columns: repeat(2, 14px); gap: 5px; padding: 4px 0; }
.cx-col { width: 14px; height: 14px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.4); padding: 0; }
.cx-col.on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--c); }
.cx-rr { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.cx-rr button, .cx-spd button { min-height: 28px; min-width: 36px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted); font: 600 11.5px/1 var(--mono); cursor: pointer; }
.cx-rr button.on, .cx-spd button.on { border-color: var(--cx-gold); color: var(--cx-gold); background: rgba(233,180,76,.1); }
.cx-chartwrap { position: relative; min-width: 0; border-radius: 14px; background: #0B1220; border: 1px solid var(--line); overflow: hidden; }
.cx-chart { height: clamp(420px, 66vh, 780px); width: 100%; touch-action: none; }
.cx-status { margin: 0; padding: 7px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-status b { color: var(--text); font-weight: 600; }
.cx-empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* replay bar */
.cx-replay { border-radius: 14px; border: 1px solid rgba(233,180,76,.45); background: linear-gradient(180deg, rgba(233,180,76,.08), rgba(233,180,76,.02)) , var(--panel); padding: 10px 12px; display: grid; gap: 10px; }
.cx-rbar, .cx-rtrade { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cx-rtag { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: #0B1220; background: var(--cx-gold); padding: 5px 7px; border-radius: 6px; }
.cx-rt { font-size: 14px; color: var(--text); min-width: 110px; }
.cx-rctl { display: flex; gap: 4px; }
.cx-r { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink); color: var(--text); cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.cx-rp { background: var(--cx-gold); color: #0B1220; border-color: var(--cx-gold); }
.cx-spd { display: flex; gap: 4px; }
.cx-buy, .cx-sell { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0; font: 700 14px/1 var(--sans); cursor: pointer; color: #06140F; background: var(--cx-up); transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.cx-sell { background: var(--cx-dn); color: #1A0706; }
.cx-buy:active, .cx-sell:active { transform: scale(.97); }
.cx-rs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cx-rs input { width: 78px; font: 600 16px/1 var(--mono); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cx-pos { font: 600 13.5px/1.3 var(--mono); }
.cx-rstat { font-size: 12.5px; color: var(--muted); flex-basis: 100%; }
.cx-rstat b { font-weight: 700; }

/* cards: Claude + Grok */
.cx-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 980px) { .cx-cards { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.cx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cx-ch h3 { margin: 2px 0 0; font: 600 21px/1.15 var(--serif); letter-spacing: -.01em; }
.cx-k { margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-gold); }
.cx-pill { flex: none; font: 600 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.cx-grok .cx-k { color: #9FB4FF; }
.cx-q { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.cx-q input { font: inherit; font-size: 16px; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-width: 0; }
.cx-q input:focus { outline: none; border-color: var(--cx-gold); }
.btn.cx-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; transition: transform 140ms cubic-bezier(.23,1,.32,1), opacity 160ms ease; }
.btn.cx-go[disabled] { opacity: .65; }
.cx-gbtn { background: #DCE4FF !important; color: #0B1220 !important; border-color: #DCE4FF !important; }
.cx-hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cx-err { margin: 0; font-size: 14px; color: var(--cx-dn); }
.cx-meta { margin: 0; font-size: 11.5px; color: var(--muted); }
.cx-md { font-size: 15.5px; line-height: 1.6; color: var(--text); border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.cx-md p { margin: 0 0 10px; }
.cx-md h4 { margin: 14px 0 6px; font: 600 16px/1.3 var(--serif); color: var(--cx-gold); }
.cx-md ul { margin: 0 0 10px; padding-left: 20px; }
.cx-md li { margin: 3px 0; }
.cx-md b { color: #FFF4DC; }
.cx-md code { font-family: var(--mono); font-size: .9em; background: var(--raise); padding: 1px 5px; border-radius: 4px; }
.cx-md a { color: #9FB4FF; }
.cx-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 11px; background: var(--ink); border: 1px solid var(--line); }
.cx-seg button { min-height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.cx-seg button[aria-selected="true"] { background: var(--raise); color: var(--text); }
.cx-gauge { display: grid; gap: 6px; }
.cx-gbar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--cx-dn), #6B7488 50%, var(--cx-up)); }
.cx-gbar i { position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 2px var(--panel); transition: left 400ms cubic-bezier(.23,1,.32,1); }
.cx-gl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.cx-gl b { font-size: 15px; color: var(--text); }
.cx-src summary { cursor: pointer; font-size: 13px; color: #9FB4FF; font-weight: 600; }
.cx-src a { display: block; font-size: 12.5px; color: var(--muted); padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-think { display: flex; gap: 6px; padding: 4px 0; }
.cx-think i { width: 7px; height: 7px; border-radius: 50%; background: var(--cx-gold); opacity: .3; animation: cxPulse 1s infinite cubic-bezier(.77,0,.175,1); }
.cx-think i:nth-child(2) { animation-delay: .15s; } .cx-think i:nth-child(3) { animation-delay: .3s; }
@keyframes cxPulse { 50% { opacity: 1; transform: translateY(-3px); } }
.cx-setup ol { margin: 8px 0 6px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.cx-setup-s { font-size: 14px; line-height: 1.55; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); color: var(--text); }

/* go to a date */
.cx-dg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cx-q input[type=time] { color-scheme: dark; }
.cx-qd { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-qd button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 13.5px; cursor: pointer; transition: border-color 150ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.cx-qd button:active { transform: scale(.97); }
.cx-hist { color: var(--cx-gold); }

/* sheets */
.cx-sheet[hidden], .cx-replay[hidden] { display: none !important; }
.cx-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(3,6,12,0); display: flex; align-items: flex-end; justify-content: center; transition: background-color 220ms ease; }
.cx-sheet.open { background: rgba(3,6,12,.6); }
.cx-sh { width: min(560px, 100%); max-height: 82dvh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(24px); opacity: 0; transition: transform 240ms cubic-bezier(.23,1,.32,1), opacity 200ms ease; }
.cx-sheet.open .cx-sh { transform: none; opacity: 1; }
@media (min-width: 760px) { .cx-sheet { align-items: center; } .cx-sh { border-radius: 18px; transform: scale(.96); } }
.cx-sh header { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 8px 18px; border-bottom: 1px solid var(--line); }
.cx-sh header b { font: 600 19px/1.2 var(--serif); }
.cx-shb { overflow-y: auto; padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cx-sg { margin: 6px 0 0; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-gold); }
.cx-sl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cx-si, .cx-ii { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 15px; text-align: left; cursor: pointer; transition: border-color 150ms ease; }
.cx-si.on { border-color: var(--cx-gold); color: var(--cx-gold); }
.cx-il { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.cx-ii i { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.cx-ii.on { border-color: rgba(233,180,76,.55); }
.cx-ii.on i { background: var(--cx-gold); border-color: var(--cx-gold); }
.cx-ii.on i::after { content: ""; width: 8px; height: 4px; border: 2px solid #0B1220; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.cx-q input[type=date] { color-scheme: dark; }
.cx-svl { display: flex; flex-direction: column; gap: 6px; }
.cx-sv { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); padding-right: 4px; }
.cx-sv.on { border-color: var(--cx-gold); }
.cx-svo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.cx-svo b { font-size: 15px; font-weight: 600; }
.cx-svo span { font-size: 12px; color: var(--muted); }
.cx-svo em { font-style: normal; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* full screen */
body.cx-lock { overflow: hidden; }
body.cx-lock #adminNav, body.cx-lock #wbTick { display: none !important; }
.cx-full { position: fixed; inset: 0; z-index: 70; margin: 0; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: var(--ink); overflow-y: auto; }
.cx-full .cx-chart { height: calc(100dvh - 150px); }
.cx-full .cx-tools { max-height: calc(100dvh - 120px); }
.cx-full .cx-cards, .cx-full #cxSetup { display: none; }
.cx-full.cx-rpon .cx-chart { height: calc(100dvh - 260px); }

@media (hover: hover) and (pointer: fine) {
  .cx-b:hover, .cx-sym:hover { border-color: rgba(233,180,76,.6); }
  .cx-t:hover { color: var(--text); background: var(--raise); }
  .cx-tf:hover { color: var(--text); }
  .cx-si:hover, .cx-ii:hover, .cx-sv:hover { border-color: rgba(233,180,76,.5); }
}

/* phones: tools become a scrolling strip above the chart */
@media (max-width: 760px) {
  .cx-head { gap: 8px; }
  .cx-sym { flex: 1 1 auto; justify-content: space-between; }
  .cx-tfs { order: 3; flex-basis: 100%; }
  .cx-acts { order: 4; margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cx-b { justify-content: center; padding: 0 4px; font-size: 13px; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
  .cx-full.cx-rpon .cx-chart { height: calc(100dvh - 470px); min-height: 260px; }
  .cx-stage { grid-template-columns: minmax(0, 1fr); }
  .cx-tools { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 4px; touch-action: pan-x; }
  .cx-sep { width: 1px; height: 24px; margin: 0 4px; }
  .cx-cols { grid-template-columns: repeat(6, 16px); grid-auto-flow: column; align-items: center; padding: 0 6px; }
  .cx-col { width: 16px; height: 16px; }
  .cx-rr { flex-direction: row; padding: 0 0 0 4px; align-items: center; }
  .cx-chart { height: max(340px, 56svh); }
  .cx-full .cx-chart { height: calc(100dvh - 230px); }
  .cx-full .cx-acts span { display: none; }
  .cx-card { padding: 14px; }
  .cx-md { font-size: 15.5px; }
  .cx-rt { min-width: 0; }
}
@media (max-width: 400px) { .cx-b span { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .cx-think i { animation: none; opacity: .7; } .cx-sh { transform: none; } }

/* replay: options ticket and book */
.cx-rtabs { grid-template-columns: 1fr 1fr; max-width: 420px; }
.cx-ot { display: grid; gap: 10px; }
.cx-otr { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-two { grid-template-columns: 1fr 1fr; min-width: 150px; flex: 1 1 150px; max-width: 220px; }
.cx-bs button.b[aria-selected="true"] { background: var(--cx-up); color: #06140F; }
.cx-bs button.s[aria-selected="true"] { background: var(--cx-dn); color: #1A0706; }
.cx-otg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.cx-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.cx-f > span { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; white-space: nowrap; }
.cx-f em { font-style: normal; font: 600 11px/1 var(--mono); color: var(--cx-gold); overflow: hidden; text-overflow: ellipsis; }
.cx-f input { box-sizing: border-box; width: 100%; min-width: 0; font: 600 16px/1.2 var(--mono); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font-variant-numeric: tabular-nums; }
.cx-f input:focus { outline: none; border-color: var(--cx-gold); }
.cx-f input[type=date] { color-scheme: dark; font-size: 15px; }
.cx-stp { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 4px; }
.cx-stp button { border-radius: 9px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 18px; cursor: pointer; }
.cx-stp input { text-align: center; padding: 9px 4px; }
.cx-mini { padding: 0; font-size: 11.5px; }
.cx-grk { font-size: 13px; color: var(--text); padding: 8px 10px; border-radius: 9px; background: var(--ink); border: 1px solid var(--line); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cx-place { min-height: 46px; border-radius: 11px; border: 0; font: 700 15px/1.2 var(--sans); cursor: pointer; padding: 0 14px; transition: transform 140ms cubic-bezier(.23,1,.32,1); font-variant-numeric: tabular-nums; }
.cx-place.s { background: var(--cx-dn); color: #1A0706; } .cx-place.b { background: var(--cx-up); color: #06140F; }
.cx-place:active { transform: scale(.97); }
.cx-warn { margin: 0; font-size: 13px; color: var(--cx-gold); }
.cx-opos { display: grid; gap: 4px; }
.cx-opos:empty { display: none; }
.cx-op { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto 32px; gap: 10px; align-items: center; padding: 7px 8px 7px 10px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); font-size: 13.5px; }
.cx-opn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-opn em { font-style: normal; color: var(--muted); font-size: 12px; }
.cx-opn b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 11px; margin-right: 4px; }
.cx-opn b.s { background: rgba(242,102,94,.18); color: var(--cx-dn); } .cx-opn b.b { background: rgba(46,196,160,.18); color: var(--cx-up); }
.cx-op .cx-t { width: 30px; height: 30px; }
.cx-opt { grid-template-columns: minmax(0, 1fr) auto auto; background: none; border-style: dashed; color: var(--muted); }
.cx-opt b { font-size: 15px; }
@media (max-width: 760px) {
  .cx-otg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-two { max-width: none; }
  .cx-op { grid-template-columns: minmax(0, 1fr) auto 30px; row-gap: 2px; }
  .cx-op > span:nth-of-type(3) { display: none; }
  .cx-op > span:nth-of-type(2) { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); }
  .cx-op > b.mono { grid-column: 2; grid-row: 1 / span 2; }
  .cx-op > .cx-t { grid-column: 3; grid-row: 1 / span 2; }
  .cx-opt { grid-template-columns: minmax(0, 1fr) auto; }
}

/* practice journal */
.cx-jcard { gap: 12px; }
.cx-jcard .cx-ch .cx-b span { font-size: 13px; }
.cx-vbtn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cx-vault { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; }
.cx-vic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--cx-gold); background: color-mix(in srgb, var(--cx-gold) 12%, transparent); }
.cx-vtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cx-vtx b { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--text); }
.cx-vtx span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.cx-vin { grid-column: 1 / -1; display: flex; gap: 8px; }
.cx-vin input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; }
.cx-vin input:focus-visible { outline: 2px solid var(--cx-gold); outline-offset: 1px; }
.cx-vin .btn { min-height: 44px; }
.cx-verr { grid-column: 1 / -1; margin: 0; color: var(--cx-dn); font-size: 14px; }
.cx-jf { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; }
.cx-jf button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.cx-jsr { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.cx-jl { align-self: center; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-gold); min-width: 64px; }
.cx-js { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); min-width: 84px; }
.cx-js em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cx-js b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cx-jl2 { display: flex; flex-direction: column; gap: 4px; }
.cx-jhd, .cx-jrh { display: grid; grid-template-columns: 112px minmax(0, 1.6fr) minmax(0, 1fr) 70px 110px; gap: 10px; align-items: center; }
.cx-jhd { padding: 0 12px 4px; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.cx-jhd span:last-child, .cx-jv { text-align: right; }
.cx-jr { border: 1px solid var(--line); border-radius: 12px; background: var(--ink); overflow: hidden; }
.cx-jr.open { border-color: rgba(233,180,76,.45); }
.cx-jrh { width: 100%; padding: 10px 12px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font-size: 14px; }
.cx-jd { font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; } .cx-jd em { font-style: normal; color: var(--muted); font-size: 11px; }
.cx-ji { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cx-ji b { font-weight: 600; } .cx-ji b.s { color: var(--cx-dn); } .cx-ji b.b { color: var(--cx-up); }
.cx-ji em { font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-jp { font-size: 13px; color: var(--text); }
.cx-jw { font-size: 12.5px; color: var(--muted); }
.cx-jv { font-size: 15px; }
.cx-jx { padding: 2px 12px 12px; border-top: 1px solid var(--line); }
.cx-jg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin: 12px 0; }
.cx-jg dt { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; } .cx-jg dd { margin: 0; font-size: 14px; color: var(--text); }
.cx-jxa { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (hover: hover) and (pointer: fine) { .cx-jrh:hover { background: var(--panel); } }
@media (max-width: 760px) {
  .cx-jhd { display: none; }
  .cx-jrh { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "i v" "d p" ; row-gap: 4px; }
  .cx-ji { grid-area: i; } .cx-jv { grid-area: v; } .cx-jd { grid-area: d; flex-direction: row; gap: 6px; color: var(--muted); } .cx-jp { grid-area: p; text-align: right; font-size: 12.5px; color: var(--muted); }
  .cx-jw { display: none; }
  .cx-js { min-width: 0; flex: 1 1 30%; }
  .cx-jl { flex-basis: 100%; }
}

/* dd/mm/yyyy date fields */
.cx-dt { position: relative; display: flex; align-items: stretch; gap: 0; }
.cx-dt .cx-dtt { flex: 1; min-width: 0; font: 600 16px/1.2 var(--mono); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 9px 0 0 9px; padding: 9px 10px; letter-spacing: .02em; }
.cx-dt .cx-dtt:focus { outline: none; border-color: var(--cx-gold); }
.cx-dt .cx-dtt.bad { border-color: var(--cx-dn); }
.cx-dtb { flex: none; width: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-left: 0; border-radius: 0 9px 9px 0; background: var(--raise); color: var(--cx-gold); cursor: pointer; }
.cx-dt .cx-dtn { position: absolute; padding: 0; min-width: 0; border-radius: 0; right: 0; bottom: 0; width: 42px; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.cx-q .cx-dt .cx-dtt { padding: 11px 12px; border-radius: 10px 0 0 10px; }
.cx-f .cx-dt .cx-dtt { border-radius: 9px 0 0 9px; }
.cx-q .cx-dtb { border-radius: 0 10px 10px 0; width: 46px; }

/* overnight / new-session banner */
.cx-news { font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(159,180,255,.08); border: 1px solid rgba(159,180,255,.3); color: var(--text); }
.cx-news[hidden] { display: none; }
.cx-nev { display: block; margin-top: 6px; font-size: 13.5px; }
.cx-nev i { font-style: normal; font: 700 10.5px/1 var(--mono); letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: var(--c); color: #0B1220; margin-right: 6px; }
.cx-chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.cx-chk input { width: 18px; height: 18px; accent-color: var(--cx-gold); }

/* positions on the chart */
.cx-onpos { position: absolute; top: 116px; right: 70px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: calc(100% - 90px); pointer-events: none; }
.cx-onpos[hidden] { display: none; }
.cx-pp { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 10px; background: rgba(11,18,32,.88); border: 1px solid var(--line); font-size: 12.5px; color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.35); max-width: 100%; }
.cx-pp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cx-pp span b { font: 700 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 4px; margin-right: 4px; }
.cx-pp span b.s { background: rgba(242,102,94,.2); color: var(--cx-dn); } .cx-pp span b.b { background: rgba(46,196,160,.2); color: var(--cx-up); }
.cx-pp small { color: var(--muted); font-size: 11px; }
.cx-pp em { font-style: normal; font-weight: 600; white-space: nowrap; }
.cx-pp button { min-height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: var(--cx-dn); color: #1A0706; font: 700 12px/1 var(--sans); cursor: pointer; }
.cx-pp button.ed { background: var(--raise); color: var(--text); border: 1px solid var(--line); }
.cx-pp button:active { transform: scale(.97); }

/* payoff & risk */
.cx-pay { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.cx-payh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .cx-payh b { font: 600 17px/1.2 var(--serif); } .cx-payh span { font-size: 11.5px; color: var(--muted); }
.cx-paysvg { width: 100%; height: 170px; display: block; }
.cx-payl { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.cx-payl i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; } .cx-payl i.g { background: #E9B44C; } .cx-payl i.b { background: #9FB4FF; } .cx-payl i.w { background: #EEE9DC; }
.cx-payc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.cx-rng { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cx-rng span { display: flex; justify-content: space-between; } .cx-rng b { color: var(--text); font-weight: 600; }
.cx-rng input { width: 100%; accent-color: var(--cx-gold); height: 28px; touch-action: pan-y; }
.cx-payk { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.cx-jwide { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .cx-onpos { top: 96px; right: 62px; max-width: calc(100% - 70px); }
  .cx-pp { font-size: 12px; gap: 6px; }
  .cx-pp button.ed { display: none; }
  .cx-payc { grid-template-columns: 1fr; }
  .cx-f .cx-dt .cx-dtt { font-size: 15px; padding: 9px 6px; letter-spacing: 0; }
  .cx-f .cx-dtb { width: 34px; }
  .cx-paysvg { height: 150px; }
}

/* v174: Charts in the student app */
.wrap.cxw { max-width: 1240px; }
.cx-tips ol { margin: 4px 0 2px; padding-left: 20px; display: grid; gap: 6px; color: var(--text); font-size: 15px; line-height: 1.5; }
.cx-tips { border-color: rgba(233,180,76,.45); background: linear-gradient(135deg, rgba(233,180,76,.10), rgba(233,180,76,.02)); }
.cx-rgo2 { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-rgo2 .cx-go { flex: 1 1 160px; }
.cx-mbadge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(233,180,76,.6); color: var(--cx-gold); font: 500 10.5px/1.6 var(--sans, inherit); font-style: normal; letter-spacing: .03em; vertical-align: 1px; }
.cx-mnote { border-left: 3px solid var(--cx-gold); padding-left: 10px; }
.cx-mnote dd { color: var(--text); }

/* ===== v180: zoom bar, grouped tools, quote strip, indicator settings, Advanced read ===== */
.cx-stage { position: relative; }
.cx-zoom { position: absolute; right: 74px; top: 8px; z-index: 5; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); opacity: .55; transition: opacity 160ms ease; }
.cx-chartwrap:hover .cx-zoom, .cx-zoom:focus-within { opacity: 1; }
@media (hover: none) { .cx-zoom { opacity: .85; } }
.cx-z { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; transition: background-color 140ms ease, transform 120ms cubic-bezier(.23,1,.32,1); }
.cx-z:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .cx-z:hover { background: var(--raise); } }
.cx-tg { position: relative; flex: none; display: block; }
.cx-tgm { position: absolute; right: -3px; bottom: -1px; width: 12px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
.cx-tgm::after { content: ""; position: absolute; right: 3px; bottom: 3px; border-style: solid; border-width: 0 0 5px 5px; border-color: transparent transparent var(--muted) transparent; }
.cx-cdot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--line); }
.cx-fly { position: absolute; z-index: 30; width: 252px; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 50px -16px rgba(0,0,0,.6); animation: cxFly 160ms cubic-bezier(.23,1,.32,1); }
@keyframes cxFly { from { opacity: 0; transform: scale(.97); } }
.cx-flh { margin: 2px 6px 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-gold); }
.cx-fli { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.cx-fli svg { color: var(--muted); flex: none; }
.cx-fli.on { background: rgba(233,180,76,.14); color: var(--cx-gold); } .cx-fli.on svg { color: var(--cx-gold); }
@media (hover: hover) and (pointer: fine) { .cx-fli:hover { background: var(--raise); } }
.cx-fly .cx-cols { grid-template-columns: repeat(6, 22px); gap: 8px; padding: 4px 6px 6px; }
.cx-fly .cx-col { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .cx-fly { animation: none; } }

.cx-qt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-height: 26px; padding: 0 2px; font-size: 13px; color: var(--muted); }
.cx-qt:empty { display: none; }
.cx-qp { font: 600 22px/1 var(--mono); color: var(--text); letter-spacing: -.01em; }
.cx-qt > span:nth-child(2) { font-size: 14.5px; font-weight: 600; }
.cx-qk i { font-style: normal; color: var(--text); margin-right: 6px; }
.cx-qr { position: relative; width: 90px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(242,102,94,.5), rgba(142,152,176,.3), rgba(46,196,160,.5)); align-self: center; }
.cx-qr span { position: absolute; top: -3px; left: var(--p); width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--text); }
.cx-cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--raise); color: var(--cx-gold); font: 600 11px/1 var(--mono); font-style: normal; }
.cx-advbtn { border-color: color-mix(in srgb, var(--cx-gold) 45%, var(--line)); }
.cx-advbtn.on { background: var(--cx-gold); color: #0B1220; } .cx-advbtn.on svg { color: #0B1220; }

.cx-irow { display: flex; gap: 6px; align-items: stretch; }
.cx-irow .cx-ii { flex: 1; min-width: 0; }
.cx-ig { width: 44px !important; height: auto !important; border: 1px solid var(--line) !important; border-radius: 10px !important; background: var(--ink) !important; }
.cx-isr { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px !important; border: 1px solid var(--line); background: var(--ink); color: var(--text); font: 400 16px/1 var(--sans); }
.cx-isr:focus { outline: none; border-color: var(--cx-gold); }
.cx-ieh { margin: 4px 0 2px; font: 600 20px/1.2 var(--serif); }
.cx-iel { display: flex; flex-direction: column; gap: 10px; }
.cx-ier { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.cx-iecols { display: flex; gap: 7px; padding: 0 0 12px; flex-wrap: wrap; }
.cx-iecols .cx-col { width: 20px; height: 20px; }
.cx-iew { grid-template-columns: repeat(3, 1fr); }
.cx-ty svg { color: var(--cx-gold); flex: none; }

.cx-adv { display: flex; flex-direction: column; gap: 12px; }
.cx-advh { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cx-advh h3 { margin: 4px 0 0; font: 600 20px/1.2 var(--serif); }
.cx-advb { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-advg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cx-adc { padding: 12px 14px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.cx-adk { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cx-adc b { display: block; margin: 7px 0 4px; font: 600 17px/1.2 var(--mono); color: var(--text); }
.cx-adc b.gold { color: var(--cx-gold); }
.cx-adc p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cx-pt { flex: none; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cx-ptr { display: grid; grid-template-columns: minmax(0, 1.6fr) .6fr 1fr .9fr; gap: 8px; align-items: center; padding: 10px 12px; font-size: 14px; }
.cx-ptr + .cx-ptr { border-top: 1px solid var(--line); }
.cx-pth { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--ink); }
.cx-ptr i { font-style: normal; } .cx-ptr i.up { color: var(--cx-up); } .cx-ptr i.dn { color: var(--cx-dn); }
.cx-ptr small { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .cx-zoom { right: 60px; top: auto; bottom: 64px; flex-direction: column; }
  .cx-z { width: 36px; height: 34px; }
  .cx-z[data-z=pic] { display: none; }
  .cx-tg { display: inline-block; }
  .cx-qp { font-size: 19px; }
  .cx-qr { display: none; }
  .cx-ptr { grid-template-columns: minmax(0, 1.4fr) .5fr 1fr .8fr; font-size: 13px; padding: 9px 10px; }
}

/* ===== v181: option-seller layer ===== */
.cx-strat .cx-advg { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cx-legs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.cx-stl { grid-template-columns: 90px minmax(0, 1fr); align-items: center; }
.cx-lsm { display: block; margin-left: auto; font-size: 11.5px; color: var(--muted); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-mtf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cx-mt { padding: 10px 12px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.cx-mt b { display: block; margin: 6px 0 2px; font: 600 15px/1.2 var(--mono); }
.cx-mt small { font-size: 12px; color: var(--muted); }
.cx-mtn { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--text); }
.cx-bell { color: var(--cx-gold) !important; }
.cx-tl .cx-ch { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cx-tlr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.cx-tlr > span { flex: 1; min-width: 0; }
.cx-tlr b { display: block; font-size: 14.5px; }
.cx-tlr small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cx-tlr.done { opacity: .85; }
.cx-grid { display: flex; flex-direction: column; gap: 10px; }
.cx-gridon .cx-stage, .cx-gridon .cx-qt { display: none; }
.cx-gh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-gh b { font: 600 19px/1.2 var(--serif); margin-right: auto; }
.cx-gh .cx-seg { min-width: 220px; }
.cx-gg { display: grid; gap: 8px; }
.cx-g2 { grid-template-columns: 1fr 1fr; } .cx-g4 { grid-template-columns: 1fr 1fr; }
.cx-gc { border: 1px solid var(--line); border-radius: 14px; background: #0B1220; overflow: hidden; }
.cx-gct { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cx-gct select { height: 32px; border-radius: 8px !important; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 13px/1 var(--sans); padding: 0 6px; }
.cx-gct span { margin-left: auto; }
.cx-gch { height: calc(100dvh - 300px); min-height: 380px; }
.cx-g4 .cx-gch { height: calc((100dvh - 330px) / 2); min-height: 260px; }
@media (max-width: 760px) { .cx-mtf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cx-shb > .cx-seg.cx-two { width: 100%; flex: none; }
.cx-adv[hidden], .cx-strat[hidden], .cx-tl[hidden], .cx-grid[hidden], .cx-qt[hidden] { display: none !important; }
@media (max-width: 760px) {
  .cx-strat .cx-ch, .cx-adv .cx-advh { flex-direction: column; align-items: stretch; }
  .cx-strat .cx-advb { flex-direction: row; }
  .cx-strat .cx-advg { grid-template-columns: 1fr 1fr; }
  .cx-strat .cx-adc b { font-size: 15px; }
}

.cx-rfrom { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cx-vin2 { flex-wrap: wrap; }
.cx-vin2 input { flex: 1 1 180px; }
.cx input, .cx select, .cx textarea, .cx button { box-sizing: border-box; }

/* "+" at a price: quick actions */
.cx-plus { position: absolute; z-index: 40; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); animation: cxFly 150ms cubic-bezier(.23,1,.32,1); }
.cx-plus p { margin: 2px 8px 6px; color: var(--cx-gold, #E9B44C); font-size: 13px; font-weight: 700; }
.cx-plus button { display: block; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 14px/1.2 var(--sans); text-align: left; cursor: pointer; touch-action: manipulation; user-select: none; }
@media (hover: hover) and (pointer: fine) { .cx-plus button:hover { background: color-mix(in srgb, var(--cx-gold, #E9B44C) 12%, transparent); } }
.cx-plus button:active { transform: scale(0.98); }
.cx-qlen button[aria-pressed="true"] { border-color: var(--cx-gold, #E9B44C); color: var(--cx-gold, #E9B44C); }
@media (prefers-reduced-motion: reduce) { .cx-plus { animation: none; } }

/* chart colours + editable text (Dec 2026) */
.cx-segf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; }
.cx-segf button.on { background: var(--raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--cx-gold); }
.cx-segf .cx-ccus { border-radius: 8px; justify-content: center; }
.cx-nt { font: inherit; font-size: 16px; line-height: 1.45; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; resize: vertical; min-height: 84px; }
.cx-nt:focus { outline: none; border-color: var(--cx-gold); }
.cx-ncols { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cx-ncols .cx-col { width: 30px; height: 30px; }
.cx-ccus { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.cx-ccus.on { color: var(--text); border-color: var(--cx-gold); }
.cx-ccus input[type=color] { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cx-ccus input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cx-ccus input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.35); border-radius: 50%; }
.cx-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cx-pair { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.cx-pair i { width: 10px; height: 18px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.cx-pair i + i { margin-right: 4px; }
.cx-pair.on { border-color: var(--cx-gold); box-shadow: inset 0 0 0 1px var(--cx-gold); }
.cx-ccrow { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-edt { width: auto !important; padding: 0 10px !important; gap: 6px; color: var(--cx-gold); }
.cx-edt span { font-size: 12.5px; font-weight: 600; }
.cx-pair:active, .cx-ccus:active, .cx-segf button:active { transform: scale(.97); }
