/* Taksi Hisob Mini App: a driver's dashboard, readable at night at arm's length. Graphite, taxi yellow for what you
   earned, green for what is left. Laid out for 360–430 px. */
.tx-app {
  --bg: #14161b; --card: #1e2128; --line: #2c3039; --ink: #f4f1e8; --dim: #9a9fab; --sun: #f6c21a; --sun-ink: #231a00; --good: #58c98b; --weak: #f08a5d;
  display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%;
}
.tx-app * { box-sizing: border-box; }
.tx-app button { font: inherit; cursor: pointer; }
.tx-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tx-head b { flex: 1; font-size: 16px; letter-spacing: .2px; }
.tx-head b::before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 8px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--sun) 0 6px, #14161b 6px 12px); vertical-align: 1px; }
.tx-back, .tx-lang { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 9px; padding: 5px 10px; font-size: 13px; font-weight: 650; }
.tx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; overscroll-behavior: contain; }
.tx-body::-webkit-scrollbar { display: none; }
.tx-body h2 { margin: 2px 0 -6px; font-size: 19px; } .tx-body h3 { margin: 4px 0 -4px; font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
.tx-sub { margin: 0; color: var(--dim); font-size: 13px; }
.tx-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px 10px; border-top: 1px solid var(--line); background: #101216; }
.tx-tabs button { border: 0; background: transparent; color: var(--dim); padding: 9px 2px; border-radius: 10px; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-tabs button.on { background: var(--sun); color: var(--sun-ink); }

.tx-hero { border-radius: 18px; padding: 16px 18px; background: linear-gradient(150deg, #262a33, #1a1d23); border: 1px solid var(--line); display: grid; gap: 2px; }
.tx-hero small { color: var(--dim); font-size: 12.5px; }
.tx-hero strong { font-size: 34px; line-height: 1.15; color: var(--good); letter-spacing: -.5px; white-space: nowrap; }
.tx-hero > span { color: var(--dim); font-size: 13px; }
.tx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.tx-pair b { display: block; font-size: 19px; color: var(--sun); white-space: nowrap; } .tx-pair span { color: var(--dim); font-size: 12.5px; }
.tx-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.tx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tx-row span { color: var(--dim); } .tx-row b { white-space: nowrap; } .tx-row em { flex-basis: 100%; text-align: right; font-style: normal; color: var(--dim); font-size: 12px; margin-top: -6px; }
.tx-row.top b { color: var(--sun); font-size: 17px; } .tx-row.top span { color: var(--ink); font-weight: 650; }
.tx-row.net { padding-top: 8px; border-top: 1px solid var(--line); } .tx-row.net span { color: var(--ink); font-weight: 650; } .tx-row.net b { color: var(--good); font-size: 18px; }
.tx-cut { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.tx-cut span { color: var(--dim); } .tx-cut b { white-space: nowrap; font-weight: 600; } .tx-cut i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--weak); order: 3; }
.tx-cut.c2 i { background: #e2a23c; } .tx-cut.c3 i { background: #8f96a8; } .tx-cut.c4 i { background: #c56fa0; }
.tx-note { margin: 0; color: var(--dim); font-size: 12.5px; } .tx-note.good { color: var(--good); } .tx-note.weak { color: var(--weak); }
.tx-list .tx-row + .tx-row { padding-top: 8px; border-top: 1px solid var(--line); }
.tx-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 22px 16px; text-align: center; color: var(--dim); } .tx-empty b { color: var(--ink); font-size: 17px; }

.tx-heatcard { padding: 12px 10px; }
.tx-scroll { overflow-x: auto; scrollbar-width: none; } .tx-scroll::-webkit-scrollbar { display: none; }
.tx-heat { display: grid; grid-template-columns: 24px repeat(24, minmax(11px, 1fr)); gap: 2px; min-width: 318px; }
.tx-hh { font-size: 10px; color: var(--dim); text-align: left; height: 13px; } .tx-wd { font-size: 11px; color: var(--dim); align-self: center; }
.tx-cell { aspect-ratio: 1 / 1.25; border: 0; padding: 0; border-radius: 3px; min-width: 0; }
.tx-cell.off { background: #262a32; }
.tx-cell.best { box-shadow: inset 0 0 0 2px #fff; } .tx-cell.worst { box-shadow: inset 0 0 0 2px var(--weak); }
.tx-cell.on { outline: 2px solid var(--sun); outline-offset: 1px; }
.tx-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--dim); flex-wrap: wrap; }
.tx-legend i { width: 14px; height: 10px; border-radius: 2px; } .tx-legend i.off { background: #262a32; margin-left: 10px; } .tx-legend span { margin: 0 3px; }
.tx-cellinfo { margin: 0; font-size: 13px; min-height: 19px; color: var(--ink); }
.tx-tips { display: grid; gap: 8px; }
.tx-tip { border-radius: 14px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--good); display: grid; gap: 1px; }
.tx-tip.weak { border-left-color: var(--weak); } .tx-tip.air { border-left-color: var(--sun); }
.tx-tip small { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; } .tx-tip b { font-size: 17px; } .tx-tip span { color: var(--dim); font-size: 13.5px; }
.tx-tip.good span { color: var(--good); } .tx-tip.weak span { color: var(--weak); }

.tx-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 132px; align-items: end; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tx-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.tx-bar b { font-size: 11px; font-weight: 600; color: var(--dim); } .tx-bar i { width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: #6d7386; }
.tx-bar.best i { background: var(--good); } .tx-bar.best b { color: var(--ink); } .tx-bar.off i { background: var(--line); } .tx-bar span { font-size: 11.5px; color: var(--dim); }
.tx-meter { height: 10px; border-radius: 5px; background: #2a2e37; overflow: hidden; } .tx-meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--sun), var(--good)); }
.tx-form { gap: 10px; }
.tx-field { display: grid; gap: 4px; } .tx-field span { color: var(--dim); font-size: 12.5px; }
.tx-field input, .tx-field select { width: 100%; background: #14161b; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
.tx-field input:focus, .tx-field select:focus { outline: 2px solid var(--sun); outline-offset: 0; }
.tx-save { border: 0; border-radius: 12px; padding: 12px; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 15.5px; }
.tx-outside { margin: 24px 18px; color: #9a9fab; font: 15px system-ui, sans-serif; }
html.tx-page, html.tx-page body { height: 100%; margin: 0; background: #14161b; } html.tx-page #app { height: 100dvh; }
