/* The desk: a rail of baskets on the left, the selected thing on the right. */
.desk { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-top: 18px; padding-bottom: 80px; align-items: start; }
.rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 6px; }
.status { font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--panel); margin-bottom: 8px; line-height: 1.45; }
.status b { color: var(--white); font-weight: 600; }
.railbtn, .bk { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 14px; }
.railbtn { background: var(--chip); }
.railbtn:hover, .railbtn.on { background: var(--white); color: var(--ink); }
.raillabel { margin: 18px 12px 4px; font-size: 12px; color: var(--dim); }
.bk:hover { background: var(--panel); }
.bk.on { background: var(--panel); box-shadow: inset 2px 0 0 var(--white); }
.bk .sym { font-size: 14px; }
.bk .num { font-size: 13px; color: var(--muted); }

.pane { min-width: 0; }
.pane h1 { font-size: clamp(34px, 4.4vw, 56px); }
.sub { color: var(--muted); margin: 10px 0 0; }
.figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 26px; border-radius: 20px; overflow: hidden; background: var(--line); }
.figs > div { background: var(--panel); padding: 16px 18px; min-width: 0; }
.figs label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.figs .v { font: 500 20px/1.15 var(--mono); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figs .s { font-size: 12px; color: var(--dim); margin-top: 4px; }
.grid2 > div { min-width: 0; }
.card { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.card { border-radius: 22px; background: var(--panel); padding: 22px; min-width: 0; }
.card + .card { margin-top: 20px; }
.card h3 { margin-bottom: 4px; }
.card .note { margin: 6px 0 0; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--ink); margin-bottom: 18px; }
.seg button { border: 0; background: transparent; padding: 8px 18px; border-radius: var(--r-pill); color: var(--dim); cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--white); color: var(--ink); }
.amt { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; height: 58px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line2); }
.amt:focus-within { border-color: var(--muted); }
.amt input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 500 22px var(--mono); color: var(--white); }
.amt .unit { color: var(--dim); font-size: 14px; }
.amt .max { border: 0; background: var(--chip); color: var(--text); border-radius: 10px; padding: 7px 10px; font-size: 12px; cursor: pointer; }
.rows { margin: 16px 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows .num { color: var(--text); }
.why { font-size: 13px; color: var(--white); margin: 0 0 12px; }
.card .btn { width: 100%; }
.actions { display: grid; gap: 10px; }
.act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act b { color: var(--white); font-weight: 600; font-size: 15px; }
.act p { margin: 0; grid-column: 1; font-size: 13px; color: var(--dim); }
.act .btn { grid-row: span 2; grid-column: 2; width: auto; }
.clock { font: 500 34px/1 var(--mono); color: var(--white); margin: 10px 0 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin-top: 12px; }
.kv span:nth-child(odd) { color: var(--dim); }
.kv span:nth-child(even) { color: var(--text); overflow-wrap: anywhere; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 12px; color: var(--dim); }
.field input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--ink); outline: none; color: var(--white); }
.field input:focus { border-color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fields > * { min-width: 0; }
.banner { padding: 16px 18px; border-radius: 16px; background: var(--panel); color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.banner b { color: var(--white); font-weight: 600; }
.pnl-up { color: var(--white); }
.pnl-dn { color: var(--dim); }

@media (max-width: 1020px) {
  .desk { grid-template-columns: 1fr; }
  .rail { position: static; }
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .figs { grid-template-columns: 1fr 1fr; }
  .figs > div:last-child { grid-column: span 2; }
  .fields { grid-template-columns: 1fr; }
  .table.legs-t .opt { display: none; }
}
