/* liquidation price calculator */
.lq-top { display: flex; flex-wrap: wrap; gap: 10px; }
.lq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.lq-row .btn { height: 46px; }
.lq-row .btn:disabled { opacity: .45; cursor: default; }
[data-tool-page="liquidation"] .field > .lb { align-items: center; }
[data-tool-page="liquidation"] .field > .lb .seg { padding: 2px; }
[data-tool-page="liquidation"] .field > .lb .seg button { height: 26px; padding: 0 10px; font-size: 12.5px; }
[data-tool-page="liquidation"] input[data-in="sym"] { text-transform: uppercase; }
.lq-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 4px; }

/* price ladder: entry and mark above, liquidation and bankruptcy below */
.lq-lad { display: grid; gap: 7px; padding: 6px 2px 4px; }
.lq-lr { position: relative; height: 20px; }
.lq-tag { position: absolute; top: 0; left: 0; white-space: nowrap; font-size: 12.5px; line-height: 20px; font-weight: 620; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lq-tag.liq { color: var(--accent-ink); }
.lq-tag[data-m="mark"] { color: var(--text-3); }
.lq-track { position: relative; height: 10px; border-radius: 5px; background: var(--bg-sunk); }
.lq-zone { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 5px; background: color-mix(in oklab, var(--amber) 32%, transparent); }
.lq-tick { position: absolute; top: -4px; left: 0; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--text); }
.lq-tick.liq { background: var(--amber-deep); }
.lq-tick[data-t="mark"] { background: var(--text-3); }
.lq-tick[data-t="bk"] { background: var(--text-2); }
html[data-motion="on"] .lq-tick, html[data-motion="on"] .lq-zone { transition: left .3s var(--ease), width .3s var(--ease); }

.tool-out .res.warn { border-color: var(--amber-deep); }
.tool-out .res.warn .rs { color: var(--accent-ink); font-weight: 600; }
.lq-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunk); color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.lq-msg:empty { display: none; }

/* tables */
.lq-tables .tbl td, .lq-tables .tbl th { padding: 9px 12px; }
.lq-tables .tbl tr.on td { background: color-mix(in oklab, var(--amber) 15%, transparent); font-weight: 650; }
.lq-tables .pill.warn { background: color-mix(in oklab, var(--amber) 24%, transparent); color: var(--accent-ink); }
.lq-tables .panel-h { min-height: 62px; }
.lq-tables .panel-h .seg button { height: 26px; padding: 0 10px; font-size: 12.5px; }
.lq-lt td .pill { margin-left: 8px; }
@media (max-width: 1100px) { .lq-tables.g2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .lq-lt th:nth-child(3), .lq-lt td:nth-child(3), .lq-lt th:nth-child(6), .lq-lt td:nth-child(6),
  .lq-wt th:nth-child(2), .lq-wt td:nth-child(2) { display: none; }
  .lq-tables .tbl td, .lq-tables .tbl th { padding: 8px 9px; }
  .lq-tt td:nth-child(2) { white-space: normal; min-width: 7.5em; }
}

/* keep wide tables from widening the panels on narrow screens */
[data-tool-page="liquidation"] .tool-in, [data-tool-page="liquidation"] .tool-out { grid-template-columns: minmax(0, 1fr); }
