.search { padding: 14px; }
.searchrow { display: flex; gap: 8px; align-items: stretch; }
.searchrow input { flex: 1; min-width: 0; font-size: 24px; font-weight: 650; padding: 8px 14px; border-radius: 10px;
                   font-variant-numeric: tabular-nums; text-align: center; }
.searchrow input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
button { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
button:hover { border-color: var(--muted); }
button:disabled { opacity: .4; cursor: default; }
.step { width: 48px; font-size: 24px; line-height: 1; }
.chip { padding: 4px 12px; font-size: 13px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.atm { border-color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.controls.small { margin: 10px 0 0; }
#msg { margin: 0 2px 10px; }
#msg.warn { color: var(--bad); }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin: 4px 2px 12px; }
.head .k { font-size: 12px; color: var(--muted); }
.head .big { font-size: 38px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.where { font-size: 15px; font-weight: 600; padding-bottom: 5px; }
.head .muted { padding-bottom: 6px; margin-left: auto; text-align: right; }

.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 14px; }
.side { border-top: 3px solid var(--line); padding: 14px 16px; }
.side.call { border-top-color: var(--call); } .side.put { border-top-color: var(--put); }
.side .title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; letter-spacing: .04em; }
.side.call .title b { color: var(--call); } .side.put .title b { color: var(--put); }
.side .title span { font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.prem { margin-top: 8px; }
.prem .k { font-size: 12px; color: var(--muted); }
.prem .v { font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.prem .v small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.prem .c { font-size: 15px; font-variant-numeric: tabular-nums; }
.prem .c b { font-weight: 650; }
.spark { margin: 10px 0 4px; }
.spark svg { width: 100%; height: 56px; display: block; }
.spark .ln { fill: none; stroke-width: 1.8; }
.side.call .spark .ln { stroke: var(--call); } .side.put .spark .ln { stroke: var(--put); }
.spark .cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts .k { font-size: 12px; color: var(--muted); }
.facts .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts .s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side.call .up { color: var(--call); } .side.put .up { color: var(--put); }

#events td, #events th { text-align: right; }
#events td:first-child, #events th:first-child, #events td:nth-child(2), #events th:nth-child(2) { text-align: left; }
#events .c { color: var(--call); font-weight: 600; } #events .p { color: var(--put); font-weight: 600; }
#events .reset { color: var(--muted); }
@media (max-width: 520px) {
  .searchrow { flex-wrap: wrap; }
  .searchrow input { font-size: 20px; }
  #atm { width: 100%; }
  .head .muted { margin-left: 0; text-align: left; width: 100%; }
  .prem .v { font-size: 32px; }
}
