:root {
  --bg: #000;
  --card: #1C1C1E;
  --card2: #2C2C2E;
  --line: rgba(84, 84, 88, .45);
  --text: #F5F5F7;
  --muted: #98989F;
  --faint: #6E6E73;
  --green: #30D158;
  --red: #FF453A;
  --orange: #FF9F0A;
  --blue: #0A84FF;
  --purple: #BF5AF2;
  --teal: #64D2FF;
  --gap: 12px;
  --pad: 16px;
  --r: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; padding: 0; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

main {
  max-width: 600px; margin: 0 auto;
  padding: 8px var(--pad) calc(100px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px;
}
section { display: flex; flex-direction: column; gap: 10px; }

/* ---------- заголовки ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 8px; }
.top .over { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.top h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--card); display: grid; place-items: center; color: var(--muted); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.sec-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sec-head .link { color: var(--blue); font-size: 15px; }
.sec-head .hint { color: var(--muted); font-size: 13px; }

/* ---------- карточки ---------- */
.card { background: var(--card); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; gap: 12px; }
.card.tight { gap: 4px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.big { font-size: 34px; font-weight: 700; line-height: 1.05; }
.mid { font-size: 22px; font-weight: 700; line-height: 1.1; }
.sub { font-size: 13px; color: var(--muted); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.green { color: var(--green); } .red { color: var(--red); } .orange { color: var(--orange); } .muted { color: var(--muted); } .blue { color: var(--blue); }

.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.chip.up { color: var(--green); background: rgba(48,209,88,.15); }
.chip.down { color: var(--red); background: rgba(255,69,58,.15); }
.chip.flat { color: var(--muted); background: var(--card2); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.split > div { display: flex; flex-direction: column; gap: 2px; }
.split .v { font-size: 17px; font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 2px 0; }

/* сетка показателей 2×N */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tile { background: var(--card); border-radius: var(--r); padding: 14px var(--pad); display: flex; flex-direction: column; gap: 6px; min-height: 108px; }
.tile .head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tile .head i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.tile .v { font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: auto; }
.tile .s { font-size: 12px; color: var(--muted); min-height: 15px; }

/* списки */
.list { background: var(--card); border-radius: var(--r); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad); min-height: 52px; width: 100%; position: relative; }
.li + .li::before { content: ""; position: absolute; top: 0; left: var(--pad); right: 0; height: 1px; background: var(--line); }
.li .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li .t { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .d { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .end { font-size: 15px; font-weight: 600; white-space: nowrap; text-align: right; }
.li .end small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.li .chev { color: var(--faint); flex: none; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 5px; }
.badge { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.rank { flex: none; width: 22px; font-size: 14px; font-weight: 600; color: var(--faint); text-align: center; }
.alert-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.alert-ic svg { width: 18px; height: 18px; }
.alert-ic.bad { background: rgba(255,69,58,.18); color: var(--red); }
.alert-ic.warn { background: rgba(255,159,10,.18); color: var(--orange); }

/* полосы (топы, источники) */
.bar { height: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; border-radius: 3px; }

/* сегменты */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card); border-radius: 10px; padding: 2px; }
.seg button { text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); min-height: 32px; border-radius: 8px; }
.seg button.on { background: #3A3A3C; color: var(--text); font-weight: 600; }

/* графики */
.chart { width: 100%; display: block; overflow: visible; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; }

/* воронка */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.fstep .row { font-size: 14px; }
.fstep .row b { font-weight: 600; }
.fstep .fbar { height: 26px; border-radius: 7px; background: var(--card2); overflow: hidden; margin-top: 5px; }
.fstep .fbar > div { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #0A84FF, #64D2FF); min-width: 4px; }
.fstep .drop { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* онлайн */
.pulse { flex: none; width: 44px; height: 44px; border-radius: 22px; background: rgba(48,209,88,.15); display: grid; place-items: center; }
.pulse span { width: 12px; height: 12px; border-radius: 6px; background: var(--green); animation: beat 2s ease-in-out infinite; }
@keyframes beat { 0%,100% { box-shadow: 0 0 0 0 rgba(48,209,88,.5); } 50% { box-shadow: 0 0 0 8px rgba(48,209,88,0); } }

/* кнопки */
.btn-primary { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.mini-btn { align-self: flex-start; margin-top: 8px; min-height: 34px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.li .d { white-space: normal; }
.mini-btn.stop { background: rgba(255,69,58,.15); color: #FF6961; }
.mini-btn.go { background: rgba(48,209,88,.15); color: var(--green); }

/* назад, пустые состояния */
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 17px; min-height: 40px; margin-bottom: -16px; align-self: flex-start; }
.back svg { width: 20px; height: 20px; }
.empty { text-align: center; padding: 28px 20px; color: var(--muted); line-height: 1.45; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty code { background: var(--card2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.note { font-size: 12px; color: var(--faint); text-align: center; padding: 0 12px; }

/* таббар */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  background: rgba(18,18,20,.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; color: var(--faint); font-size: 10px; font-weight: 600; text-align: center; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--blue); }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0;
  background: #3A3A3C; padding: 10px 16px; border-radius: 12px; font-size: 14px; transition: .25s; pointer-events: none; max-width: 90vw; text-align: center; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loader { display: grid; place-items: center; min-height: 60vh; }
.loader span { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--card2); border-top-color: var(--blue); animation: spin .8s linear infinite; }

/* формы и шторка */
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: center; }
.btn.in { background: rgba(48,209,88,.16); color: var(--green); }
.btn.out { background: rgba(255,69,58,.16); color: #FF6961; }
.btn.gray { background: var(--card2); color: var(--text); }
.btn.blue { background: var(--blue); color: #fff; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month-nav button { width: 40px; height: 40px; border-radius: 20px; background: var(--card); display: grid; place-items: center; color: var(--blue); font-size: 20px; }
.month-nav button:disabled { color: var(--faint); opacity: .5; }
.month-nav b { font-size: 17px; }
.sheet-bg { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 600px; background: #1C1C1E; border-radius: 20px 20px 0 0; padding: 10px var(--pad) calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: up .25s ease-out; max-height: 92vh; overflow-y: auto; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #48484A; align-self: center; }
.sheet h3 { font-size: 20px; font-weight: 700; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid transparent; background: var(--card2); color: var(--text); font: inherit; font-size: 17px; padding: 0 14px; outline: none; }
.input:focus { border-color: var(--blue); }
.input.big { font-size: 28px; font-weight: 700; min-height: 60px; }
select.input { appearance: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip2 { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip2.on { background: var(--text); color: #000; }
.chip2.add { color: var(--blue); }
.chip2 i { width: 7px; height: 7px; border-radius: 4px; }
.x-btn { flex: none; width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; color: var(--faint); font-size: 18px; }
.x-btn.armed { background: rgba(255,69,58,.18); color: var(--red); width: auto; padding: 0 10px; font-size: 13px; font-weight: 600; }
.link-btn { color: var(--blue); font-size: 15px; align-self: center; min-height: 40px; }
.link-btn.red { color: var(--red); }

/* подписи графиков */
.cb { position: relative; padding-top: 34px; touch-action: pan-y; user-select: none; }
.cb-plot { position: relative; margin-left: 0; }
.cb-grid { position: absolute; left: 0; right: 0; margin-top: 34px; border-top: 1px dashed rgba(142,142,147,.28); pointer-events: none; }
.cb-grid span { position: absolute; left: 0; top: -15px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cb-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(245,245,247,.35); pointer-events: none; }
.cb-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 5px; background: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.6); pointer-events: none; }
.cb-tip { position: absolute; top: 0; width: 160px; text-align: center; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.cb-tip b { color: var(--text); font-size: 15px; }

.tab { font-size: 9.5px; letter-spacing: -.01em; }
.check { flex: none; width: 26px; height: 26px; border-radius: 13px; border: 2px solid #48484A; display: grid; place-items: center; color: transparent; font-size: 14px; font-weight: 700; }
.check.on { background: var(--green); border-color: var(--green); color: #000; }
.li.done .t { color: var(--faint); text-decoration: line-through; }
.due { font-size: 12px; font-weight: 600; }
.note-card { background: var(--card); border-radius: var(--r); padding: 14px var(--pad); display: flex; flex-direction: column; gap: 8px; white-space: pre-wrap; word-break: break-word; }
.note-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--faint); }
textarea.input { min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.top .btns { display: flex; gap: 8px; }
.copy-box { background: var(--card2); border-radius: 12px; padding: 12px 14px; font-size: 14px; word-break: break-all; color: var(--text); }

/* ===== Главный экран TireWay ===== */
.tw-card { background: var(--card); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tw-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tw-title { font-weight: 700; font-size: 17px; }
.tw-time { color: var(--faint); font-size: 12px; }
.tw-live { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.tw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: twPulse 1.6s infinite; }
@keyframes twPulse { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.6); } 70% { box-shadow: 0 0 0 10px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }
.tw-big { font-size: 56px; font-weight: 800; line-height: 1; }
.tw-sub { color: var(--muted); font-size: 14px; }
.tw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tw-row-main { min-width: 0; flex: 1; }
.tw-row-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tw-row-s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tw-row-r { color: var(--text); font-weight: 600; white-space: nowrap; }
.tw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tw-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tw-stat-v { font-size: 22px; font-weight: 700; }
.tw-pair .tw-stat-v { font-size: 28px; }
.tw-grid3 .tw-stat-v { font-size: 17px; }
.tw-stat-l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tw-stat-s { color: var(--faint); font-size: 12px; margin-top: 2px; }
.tw-status { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tw-st { background: var(--card2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.tw-st-n { font-size: 22px; font-weight: 800; }
.tw-st-l { color: var(--muted); font-size: 11px; margin-top: 2px; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-chip { background: var(--card2); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.tw-chip-red { background: rgba(255,69,58,.18); color: var(--red); }
.tw-all { background: var(--card); border-radius: var(--r); padding: 16px; text-align: center; font-weight: 600; color: var(--blue); }
@media (max-width: 380px) { .tw-big { font-size: 46px; } }
.tw-st { min-width: 0; padding: 10px 2px; }
.tw-st-l { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }

/* ===== Главный экран TireWay — светлая тема ===== */
body.twl-on { background: #F4F5F7 !important; color: #16181D; }
.twl { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); font-family: Inter, -apple-system, system-ui, sans-serif; color: #16181D; overflow-anchor: none; }
.twl * { box-sizing: border-box; }
.twl-hero { background: #E53935; color: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.twl-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.twl-brand { font-weight: 800; font-size: 20px; }
.twl-pill { display: flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(255,255,255,.2); padding: 6px 10px; border-radius: 20px; font-variant-numeric: tabular-nums; }
.twl-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: twlPulse 1.6s infinite; }
@keyframes twlPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.twl-hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.twl-hero-l { font-size: 13px; opacity: .9; }
.twl-hero-n { font-size: 60px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.twl-hero-sub { text-align: right; font-size: 13px; opacity: .92; white-space: pre-line; line-height: 1.5; }
.twl-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(20,24,32,.06); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.twl-list { padding: 4px 16px; gap: 0; }
.twl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.twl-head-pad { padding: 12px 0 4px; }
.twl-title { font-size: 16px; font-weight: 700; }
.twl-head-r { font-size: 13px; color: #4B5563; text-align: right; font-variant-numeric: tabular-nums; }
.twl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #EEF0F3; min-height: 58px; }
.twl-row:last-child { border-bottom: 0; }
.twl-row-main { min-width: 0; flex: 1; }
.twl-row-t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twl-row-s { font-size: 12px; color: #6B7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twl-row-r { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.twl-row-s.st-new { color: #C62828; } .twl-row-s.st-accepted { color: #1D4ED8; } .twl-row-s.st-shipped { color: #B45309; } .twl-row-s.st-done { color: #1B7A3E; }
.twl-badge { font-size: 11px; font-weight: 700; color: #92400E; background: #FEF3C7; padding: 4px 8px; border-radius: 8px; flex-shrink: 0; }
.twl-empty { color: #6B7280; font-size: 14px; padding: 14px 0; }
.twl-todo { display: flex; gap: 8px; flex-wrap: wrap; }
.twl-chip { font-size: 13px; font-weight: 600; background: #fff; border: 1px solid #DDE1E6; border-radius: 20px; padding: 8px 12px; }
.twl-chip.red { background: #FDECEC; border-color: #F8C9C9; color: #B71C1C; }
.twl-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.twl-tab { height: 42px; border-radius: 21px; border: 1px solid #DDE1E6; background: #fff; color: #16181D; font: 500 14px Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
.twl-tab.on { background: #16181D; border-color: #16181D; color: #fff; font-weight: 600; }
.twl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.twl-tile { border-radius: 12px; padding: 12px; }
.twl-tile.red { background: #FDECEC; color: #7F1D1D; } .twl-tile.red .twl-tile-n { color: #C62828; }
.twl-tile.green { background: #E8F5EC; color: #14532D; } .twl-tile.green .twl-tile-n { color: #1B7A3E; }
.twl-tile-n { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.twl-tile-l { font-size: 13px; margin-top: 2px; }
.twl-strip { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; color: #4B5563; }
.twl-strip b { color: #16181D; }
.twl-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #EEF0F3; padding-top: 12px; }
.twl-mini-v { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.twl-mini-l { font-size: 11px; color: #6B7280; margin-top: 2px; }
.twl-ads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; min-height: 44px; }
.twl-ads .twl-empty { grid-column: 1 / -1; text-align: left; padding: 0; }
.twl-ad-v { font-size: 17px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.twl-ad.good .twl-ad-v { color: #1B7A3E; }
.twl-ad-l { font-size: 11px; color: #6B7280; margin-top: 2px; }
.twl-all { background: none; border: 0; color: #E53935; font: 600 15px Inter, system-ui, sans-serif; padding: 14px; min-height: 44px; }

/* ===== Светлая тема всего Пульта (в стиле TireWay) ===== */
:root {
  --bg: #F4F5F7; --card: #FFFFFF; --card2: #F0F1F4; --line: #E6E8EC;
  --text: #16181D; --muted: #5F6670; --faint: #8A919B;
  --green: #1B9E4B; --red: #E53935; --orange: #E08600; --blue: #1E6FE8;
  --purple: #8E44D9; --teal: #0F9BC4;
  --r: 16px;
  color-scheme: light;
}
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow-anchor: none; }
.card, .tile, .list, .note-card, .chip2, .month-nav button, .icon-btn { box-shadow: 0 2px 12px rgba(20,24,32,.06); }
.seg { box-shadow: 0 1px 4px rgba(20,24,32,.06); }
.seg button.on { background: #16181D; color: #fff; }
.tabbar { background: rgba(255,255,255,.94); border-top: 1px solid var(--line); }
.toast { background: #16181D; color: #fff; }
.sheet { background: #fff; }
.sheet .grab { background: #C4C9D0; }
.sheet-bg { background: rgba(16,18,24,.45); }
.chip2.on { background: #16181D; color: #fff; }
.check { border-color: #C4C9D0; }
.check.on { color: #fff; }
.chip.up { background: rgba(27,158,75,.12); }
.chip.down { background: rgba(229,57,53,.12); }
.alert-ic.bad { background: rgba(229,57,53,.12); }
.alert-ic.warn { background: rgba(224,134,0,.14); }
.mini-btn.stop, .btn.out { background: rgba(229,57,53,.1); color: #C62828; }
.mini-btn.go, .btn.in { background: rgba(27,158,75,.12); }
.btn-primary, .btn.blue { background: #E53935; color: #fff; }
.cb-grid { border-top-color: rgba(22,24,29,.12); }
.cb-line { background: rgba(22,24,29,.25); }
.cb-dot { box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
input, select, textarea { color: var(--text); background: var(--card2); }

/* выравнивание главного экрана */
.twl { padding: 0 0 8px; gap: 12px; }
.twl button { text-align: center; }
.twl-tab { display: flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 14px; }
.twl-all { display: block; width: 100%; }
.twl-chip { display: inline-flex; align-items: center; min-height: 36px; }
.twl-strip { flex-wrap: nowrap; }
.twl-strip span { white-space: nowrap; }
.twl-hero-sub { white-space: pre-line; }
