/* Smart valuation inputs (js/mcin.js): a market cap field with two unit boxes, K (thousands, the start) and M (millions).
   The lit box is the unit the typed number counts in; clicking the other one switches it. Look 9 frosted, both themes. */
html:root[data-look][data-look] .inp.mcin { padding-right: 4px; }
html:root[data-look][data-look] .inp.mcin > .mcin-seg {
  flex: none; display: inline-flex; gap: 2px; margin-left: 6px; padding: 2px; border-radius: 8px;
  background: rgba(201, 220, 242, .04); box-shadow: inset 0 0 0 1px rgba(223, 233, 245, .08);
}
html:root[data-look][data-look] .inp.mcin > .mcin-seg > button {
  display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border: 0; border-radius: 6px; cursor: pointer;
  font: 600 11px/1 var(--fm, 'JetBrains Mono', ui-monospace, monospace); letter-spacing: .02em; color: var(--tx3); background: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
html:root[data-look][data-look] .inp.mcin > .mcin-seg > button:hover { color: var(--tx); background: rgba(201, 220, 242, .06); }
html:root[data-look][data-look] .inp.mcin > .mcin-seg > button.on { color: var(--ac-hi, #dfe9f5); background: var(--g2, rgba(201, 220, 242, .12)); box-shadow: var(--gt-sh-on, inset 0 0 0 1px rgba(223, 233, 245, .18)); }
html:root[data-look][data-look] .inp.mcin > .mcin-seg > button:focus-visible { outline: 2px solid color-mix(in srgb, var(--ac) 55%, transparent); outline-offset: 1px; }
html:root[data-look][data-look] .inp.mcin > em:not(.mcin-u):last-child { margin-left: 6px; }
html:root:root[data-look="9"][data-theme="light"] .inp.mcin > .mcin-seg { background: rgba(20, 40, 70, .04); box-shadow: inset 0 0 0 1px rgba(20, 40, 70, .1); }
html:root:root[data-look="9"][data-theme="light"] .inp.mcin > .mcin-seg > button.on { color: var(--ac); background: rgba(47, 111, 181, .12); box-shadow: inset 0 0 0 1px rgba(47, 111, 181, .25); }
@media (prefers-reduced-motion: reduce) { html:root[data-look][data-look] .inp.mcin > .mcin-seg > button { transition: none; } }

/* Smart sells rows: the market cap cell wider (room for the K | M boxes), the "Sell to %" cell narrower (max 3 digits) */
@media (min-width: 761px) {
  html:root[data-look][data-look] .lr-rungs .lr-rung { grid-template-columns: 52px minmax(190px, 1.5fr) minmax(150px, .9fr) minmax(120px, 190px) 34px !important; }
}
/* Live console automations panel: the market cap cell takes half the row so the K | M boxes fit next to the number */
html:root[data-look][data-look] .cx-ap .lr-rung { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 26px !important; }
html:root[data-look][data-look] .cx-ap .lr-rung .inp.mcin input { flex: 1 1 3ch; min-width: 2ch; }
html:root[data-look][data-look] .cx-ap .lr-rung .inp.mcin > .mcin-seg { margin-left: 4px; }
html:root[data-look][data-look] .cx-ap .lr-rung .inp.mcin > .mcin-seg > button { min-width: 20px; height: 20px; padding: 0 4px; font-size: 10.5px; }
