/* Прототип туриста (PWA). Поверх tokens.css. */
html, body { height: 100%; background: var(--bg); overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

/* На телефоне весь экран, на компьютере рамка телефона по центру */
#app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); color: var(--text); }
.fake { display: none; }
@media (min-width: 560px) {
  html, body { background: #0b0a16; }
  #app { inset: auto; left: 50%; top: 50%; width: 390px; height: 844px; transform: translate(-50%, -50%); border-radius: 44px;
    box-shadow: 0 0 0 10px #000, 0 0 0 11px #2a2840, 0 30px 80px rgba(0,0,0,.6); }
  .fake { display: flex; }
  #app.desk .screen { top: 47px; }
}
.statusbar.fake { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.homebar.fake { display: none; }
@media (min-width: 560px) { .homebar.fake { display: block; z-index: 60; } }

/* Экраны и переходы */
.screen { position: absolute; inset: 0; top: env(safe-area-inset-top, 0); display: flex; flex-direction: column; background: var(--bg);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s; will-change: transform; }
.screen.enter { transform: translateX(100%); }
.screen.enter-back { transform: translateX(-28%); opacity: .6; }
.screen.leave { transform: translateX(-28%); opacity: .6; }
.screen.leave-back { transform: translateX(100%); }
.body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; gap: 10px; }
@media (min-width: 560px) { .foot { padding-bottom: 30px; } }
.foot > * { flex: 1; }

.appbar .back { cursor: pointer; color: var(--text); }
.appbar .tt { flex: 1; min-width: 0; }
.appbar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad { padding: 0 18px; }
.gap { height: 12px; }
.h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.lbl { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin: 20px 18px 10px; }
.muted { color: var(--text-3); font-size: 12.5px; font-weight: 600; line-height: 1.4; }

/* Кнопки */
.cta { height: 56px; border-radius: 18px; background: var(--grad); color: #fff; font-size: 16.5px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; gap: 8px; box-shadow: 0 10px 24px rgba(110,112,235,.32); width: 100%; }
.cta:disabled, .cta.dis { opacity: .45; box-shadow: none; }
.cta.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.cta.danger { background: var(--bad); box-shadow: 0 10px 24px rgba(224,70,79,.3); }
.cta .i { width: 22px; height: 22px; }
.link { color: var(--accent); font-weight: 800; font-size: 13.5px; }
.btn-ghost { width: 100%; }
.btn-ghost .i { width: 20px; height: 20px; }
:active.press, .press:active { transform: scale(.97); }
.cta, .btn-ghost, .t, .d, .m, .ib, .offer .rate, .card, .opt, .act { transition: transform .12s; }

/* Карточки и поля */
.card { margin: 0 18px 10px; border-radius: 22px; background: var(--card); padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; }
.field { margin: 0 18px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.field .i { color: var(--accent); }
.field .f-in { flex: 1; min-width: 0; }
.field small { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.field input { width: 100%; background: transparent; border: 0; outline: 0; font-size: 16px; font-weight: 800; padding: 2px 0 0; -webkit-user-select: text; user-select: text; }
.field input::placeholder { color: var(--text-3); font-weight: 600; }
.field b { font-size: 16px; font-weight: 800; display: block; margin-top: 1px; }
.field .ok { color: var(--ok); }
.field.err { border-color: var(--bad); }
.chipbtn { height: 34px; padding: 0 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13.5px; white-space: nowrap; }

/* Ленты значков */
.rib { display: flex; gap: 10px; padding: 2px 18px 4px; overflow-x: auto; scrollbar-width: none; }
.rib::-webkit-scrollbar { display: none; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 58px; flex: none; font-size: 10.5px; font-weight: 700; color: var(--text-3);
  text-align: center; line-height: 1.15; cursor: pointer; }
.opt .ib { width: 50px; height: 50px; } .opt .ib .i { width: 27px; height: 27px; }
.opt.sel { color: var(--text); }
.opt .ib .cnt { border-color: var(--bg); }
.setup { margin: 10px 18px 0; border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; }
.setup .row + .row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.setup .nm { flex: 1; font-size: 14.5px; font-weight: 800; }
.setup .nm small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.step { display: flex; align-items: center; gap: 6px; }
.step button { width: 38px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.step button:disabled { background: var(--chip); color: var(--text-3); }
.step button .i { width: 18px; height: 18px; }
.step b { min-width: 34px; height: 34px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.setup input { flex: 1; min-width: 0; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); padding: 0 12px; font-size: 15px; font-weight: 700; outline: 0; -webkit-user-select: text; user-select: text; }

/* Показатели и блоки водителя */
.ph { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.nm2 { flex: 1; min-width: 0; } .nm2 > b { font-size: 16px; font-weight: 800; }
.mets { display: flex; gap: 14px; margin-top: 5px; }
.met { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; }
.met .i { width: 18px; height: 18px; color: var(--accent); }
.met .bar { width: 34px; height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden; } .met .bar i { display: block; height: 100%; background: var(--accent); }
.rate-r { text-align: right; font-size: 17px; font-weight: 800; white-space: nowrap; } .rate-r small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.carimg { width: 92px; height: 62px; border-radius: 14px; object-fit: cover; flex: none; }
.plate { display: inline-flex; align-items: stretch; height: 34px; border: 2px solid var(--text); border-radius: 8px; overflow: hidden; font-weight: 800; }
.plate span { padding: 0 9px; display: flex; align-items: center; font-size: 19px; letter-spacing: .05em; }
.plate em { font-style: normal; padding: 0 6px; border-left: 2px solid var(--text); display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 12px; line-height: 1; }
.plate em small { font-size: 7px; letter-spacing: .05em; margin-top: 2px; }
.carname { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
.blk { margin: 0 18px 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.acts { display: grid; grid-template-columns: repeat(4,1fr); margin: 4px 18px 10px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.act .ib { width: 50px; height: 50px; } .act .ib.sos { background: var(--bad); box-shadow: 0 6px 14px rgba(224,70,79,.3); }
.act.off { opacity: .4; }

/* Опции в предложении */
.opts { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.opts .ib { width: 40px; height: 40px; } .opts .ib .i { width: 22px; height: 22px; }
.opts .ib .cnt { border-color: var(--card); }
.opts .plus { position: absolute; bottom: -3px; right: -3px; width: 17px; height: 17px; border-radius: 9px; background: var(--ok); color: #fff;
  font-size: 13px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--card); line-height: 1; font-style: normal; }
.base { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-3); }
.base .ib { width: 30px; height: 30px; background: var(--chip); color: var(--text-2); box-shadow: none; } .base .ib .i { width: 17px; height: 17px; }

/* Инфо-блок */
.info { margin: 0 18px 10px; border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; background: var(--accent-soft); }
.info .i { color: var(--accent); width: 28px; height: 28px; flex: none; }
.info b { display: block; font-size: 15px; font-weight: 800; }
.info p { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.35; margin-top: 1px; }
.info.hint { background: var(--hint); color: var(--on-hint); } .info.hint .i { color: var(--on-hint); } .info.hint p { color: #3d4a2a; }
.info.bad { background: rgba(255,111,125,.14); } .info.bad .i { color: var(--bad); }

/* Пары «название - значение» */
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); padding: 7px 0; }
.kv b { color: var(--text); font-weight: 800; white-space: nowrap; }
.kv.big { font-size: 15px; color: var(--text); font-weight: 800; } .kv.big b { font-size: 22px; }
.sep { height: 1px; background: var(--line); margin: 6px 0; }

/* Нижняя шторка */
.sheet-bg { position: absolute; inset: 0; background: rgba(5,4,18,.55); z-index: 80; opacity: 0; transition: opacity .25s; }
.sheet-bg.on { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 81; background: var(--bg-2); border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-height: 88%; overflow-y: auto; }
@media (min-width: 560px) { .sheet { padding-bottom: 34px; } }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.sheet p { font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.45; }
.sheet .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* Тост */
.toast { position: absolute; left: 18px; right: 18px; top: calc(56px + env(safe-area-inset-top, 0)); z-index: 90; background: var(--text); color: var(--bg);
  border-radius: 16px; padding: 12px 14px; font-size: 13.5px; font-weight: 700; display: flex; gap: 10px; align-items: center;
  transform: translateY(-140%); opacity: 0; transition: transform .3s, opacity .3s; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; }
.toast.on { pointer-events: auto; }
.toast.on { transform: none; opacity: 1; }
.toast .i { flex: none; }
.toast img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }

/* Демо-панель */
.demo-fab { position: absolute; right: 10px; bottom: calc(104px + env(safe-area-inset-bottom, 0)); z-index: 70; width: 40px; height: 40px; border-radius: 20px;
  background: rgba(20,18,40,.55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); font-size: 0; opacity: .8; }
.demo-fab .i { width: 20px; height: 20px; }
.demo h3 small { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.demo .ev { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.demo .ev button { min-height: 46px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; padding: 8px 14px; font-weight: 800; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px; }
.demo .ev button small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.demo .ev .i { color: var(--accent); }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 3px; gap: 3px; margin-top: 8px; }
.seg button { flex: 1; height: 36px; border-radius: 11px; font-size: 13.5px; font-weight: 800; color: var(--text-2); }
.seg button.on { background: var(--grad); color: #fff; }
.demo .lbl { margin: 18px 0 0; }

/* Анимации */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,146,244,.55); } 100% { box-shadow: 0 0 0 16px rgba(143,146,244,0); } }
@keyframes appear { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indet { 0% { left: -40%; } 100% { left: 100%; } }
.appear { animation: appear .4s cubic-bezier(.2,.8,.2,1) both; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }

/* ===== Э1 ===== */
.top { display: flex; align-items: center; justify-content: center; height: 56px; position: relative; }
.top img { height: 24px; }
.qr { position: absolute; right: 18px; width: 44px; height: 44px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.months { display: flex; gap: 8px; padding: 6px 18px 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.months::-webkit-scrollbar { display: none; }
.m { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; font-size: 14px; flex: none; }
.m.on { background: var(--grad); color: #fff; border-color: transparent; }
.m.past { opacity: .45; }
.week { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 0; gap: 2px; }
.wk { width: 18px; height: 62px; display: grid; place-items: center; color: var(--text-3); flex: none; }
.wk .i { width: 18px; height: 18px; }
.d { width: 44px; height: 62px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--card); border: 1px solid var(--line); position: relative; color: var(--text); flex: none; }
.d b { font-size: 18px; font-weight: 800; }
.d span { font-size: 11px; font-weight: 700; color: var(--text-3); }
.d.we span { color: var(--accent); }
.d.past { opacity: .35; }
.d.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(110,112,235,.35); }
.d.on span { color: #fff; opacity: .85; }
.d .n { font-style: normal; position: absolute; top: -6px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--text); color: var(--bg);
  font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); padding: 0 4px; }
.plan { padding: 22px 18px 0; }
.plan h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.plan h2 em { font-style: normal; color: var(--accent); }
.types { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 12px 18px 0; }
.tp { height: 112px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 14px 12px 12px; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start; text-align: left; color: var(--text); }
.tp .ib { width: 48px; height: 48px; } .tp .ib .i { width: 28px; height: 28px; }
.tp b { font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.sec { padding: 22px 18px 10px; display: flex; justify-content: space-between; align-items: center; }
.ch { display: flex; gap: 12px; align-items: center; }
.ch .ib { width: 44px; height: 44px; }
.ch .tt { flex: 1; min-width: 0; }
.ch h3 { font-size: 16px; font-weight: 800; white-space: nowrap; }
.ch p { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-align: right; line-height: 1.1; }
.time small { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 0; }
.optrow { margin-top: 12px; }
.optrow .ib { width: 34px; height: 34px; } .optrow .ib .i { width: 19px; height: 19px; }
.optrow .ib .cnt { min-width: 17px; height: 17px; font-size: 10px; top: -5px; right: -6px; }
.card .offers { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.stack { display: flex; }
.stack img, .stack b { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); margin-left: -10px; }
.stack :first-child { margin-left: 0; }
.stack b { background: var(--chip); color: var(--text); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.offers .tx, .drv .tx { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.offers .tx b, .drv .tx b { color: var(--text); font-weight: 800; display: block; font-size: 14px; }
.offers .go { height: 38px; padding: 0 12px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 2px; }
.offers .go .i { width: 18px; height: 18px; }
.spin-s { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.drv { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drv img.a { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.drv img.c { width: 56px; height: 38px; border-radius: 10px; object-fit: cover; }
.drv .r { font-size: 14px; font-weight: 800; }
.card.empty .row { color: var(--text-3); } .card.empty .i { flex: none; }
.screen .tabbar { position: relative; height: auto; padding: 9px 0 calc(8px + env(safe-area-inset-bottom, 0)); flex: none; }
@media (min-width: 560px) { .screen .tabbar { padding-bottom: 26px; } }
.tab { background: none; }
.tab .i { width: 24px; height: 24px; }

/* ===== Э2 ===== */
.datebar { margin: 4px 18px 10px; height: 44px; width: calc(100% - 36px); border-radius: 14px; background: var(--accent-soft); color: var(--text); display: flex; align-items: center;
  gap: 10px; padding: 0 14px; font-weight: 800; font-size: 14.5px; }
.datebar .i { color: var(--accent); width: 20px; height: 20px; } .datebar span { flex: 1; text-align: left; } .datebar em { font-style: normal; color: var(--accent); font-size: 13px; }
.datepick button { justify-content: space-between; } .datepick button.on { border-color: var(--accent); }

/* ===== Э10 ===== */
.search .row2 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); }
.search .row2 span:last-child { color: var(--text-3); font-weight: 600; }
.prog { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden; position: relative; }
.prog i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 2px; background: var(--grad); }
.prog.indet i { animation: indet 1.6s ease-in-out infinite; }
.sort { margin: 12px 18px; height: 40px; padding: 0 12px 0 10px; border-radius: 13px; background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--text); }
.sort .i { width: 20px; height: 20px; color: var(--accent); } .sort .i:last-child { color: var(--text-3); }
.offer { margin: 0 18px 12px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); padding: 14px; box-shadow: var(--shadow); }
.offer .head { display: flex; gap: 12px; align-items: center; }
.gal { display: flex; gap: 8px; margin: 12px -14px 0 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.gal::-webkit-scrollbar { display: none; }
.gal .c { position: relative; flex: none; width: 236px; height: 142px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal .c span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(10,8,30,.72)); }
.dur { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--text-3); display: flex; justify-content: space-between; }
.dur b { color: var(--text-2); font-weight: 700; }
.offer .rate { margin-top: 10px; height: 54px; width: 100%; border-radius: 18px; position: relative; overflow: hidden; background: var(--chip);
  display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; }
[data-theme="light"] .offer .rate { background: #C9CAF3; }
.offer .rate .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); transition: width .25s linear; }
.offer .rate span { position: relative; text-shadow: 0 1px 6px rgba(20,18,60,.25); }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 60px 40px; }
.waiting b { font-size: 16px; font-weight: 800; }

/* ===== Э11, Э12 ===== */
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--chip); position: relative; transition: background .2s; flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left .2s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sw.on { background: var(--accent); } .sw.on i { left: 21px; }
.kv.press { cursor: pointer; align-items: center; }
.cardrow { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.cardrow .i { color: var(--accent); } .cardrow span { flex: 1; } .cardrow b { display: block; color: var(--text); font-size: 14px; font-weight: 800; }
.cardrow em { font-style: normal; color: var(--accent); font-weight: 800; font-size: 13px; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cb { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--text-3); display: grid; place-items: center; flex: none; color: #fff; }
.cb.on { background: var(--accent); border-color: var(--accent); } .cb .i { width: 18px; height: 18px; }
.kv .link { margin-left: 6px; }
.kv > span:last-child { text-align: right; }

/* ===== Э15 ===== */
.map { margin: 0 18px 10px; height: 210px; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.map svg { width: 100%; height: 100%; display: block; }
.m-bg { fill: #1f1c38; } .m-blk { fill: #27244a; } .m-road { stroke: #3b3866; stroke-width: 9; fill: none; } .m-route { stroke: var(--accent); stroke-width: 4; fill: none; stroke-dasharray: 2 8; stroke-linecap: round; }
[data-theme="light"] .m-bg { fill: #e9e8f4; } [data-theme="light"] .m-blk { fill: #dcdaee; } [data-theme="light"] .m-road { stroke: #fff; }
.mcar { position: absolute; left: 0; top: 0; offset-path: path("M30 160H135V85H245V58"); offset-rotate: 0deg; animation: drive 14s ease-in-out forwards; }
.map.arr .mcar { animation: none; offset-distance: 100%; }
@keyframes drive { from { offset-distance: 0%; } to { offset-distance: 92%; } }
.mcar .ib { transform: translate(-50%, -50%); animation: pulse 1.6s infinite; }
.mpin { position: absolute; left: 245px; top: 58px; transform: translate(-50%, -100%); color: var(--bad); }
.mpin .i { width: 34px; height: 34px; }

/* ===== Э17 ===== */
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 10px; }
.total span { font-size: 12.5px; font-weight: 600; color: var(--text-3); line-height: 1.35; }
.total span b { font-size: 15px; color: var(--text); display: block; }
.total > b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.cnt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct { border-radius: 20px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); transition: background .3s; }
.ct .l { font-size: 13px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.ct .l .i { width: 18px; height: 18px; }
.ct .t { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ct .s { display: flex; flex-direction: column; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.ct .s b { color: var(--text); font-weight: 800; font-size: 16px; white-space: nowrap; }
.ct.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(110,112,235,.35); }
.ct.on .l, .ct.on .s, .ct.on .s b { color: #fff; }
.ct.on .l::after { content: ''; width: 7px; height: 7px; border-radius: 4px; background: #fff; margin-left: auto; animation: pulse 1.6s infinite; }
.wifi { margin: 10px 18px 0; border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.wifi .i { color: var(--accent); } .wifi b { color: var(--text); font-weight: 800; } .wifi .cp { margin-left: auto; color: var(--text-3); width: 20px; height: 20px; }

/* ===== Э20 ===== */
.rate-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.rate-row + .rate-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.rate-row .row { font-size: 15px; font-weight: 800; gap: 10px; } .rate-row .row .i { color: var(--accent); }
.ld { display: flex; gap: 10px; }
.ld button { width: 58px; height: 50px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-3); }
.ld button .i { width: 26px; height: 26px; }
.ld button.up { background: var(--ok); border-color: transparent; color: #fff; }
.ld button.down { background: var(--bad); border-color: transparent; color: #fff; }

/* iOS: высота приложения на весь экран (в режиме «На экран Домой» fixed+inset бывает короче экрана) */
@media (max-width: 559px) {
  #app { inset: auto; top: 0; left: 0; width: 100%; height: 100vh; }
  @supports (height: 100lvh) { #app { height: 100lvh; } }
}
/* iOS: поле времени без системного центрирования */
.field input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-height: 24px; text-align: left; line-height: 1.2; }
.field input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="time"]::-webkit-datetime-edit { padding: 0; }
/* Шторка: перетаскивание вниз */
.sheet.drag { transition: none; }
.sheet .grab { padding: 0; position: relative; }
.sheet .grab::before { content: ''; position: absolute; left: -40px; right: -40px; top: -12px; bottom: -12px; }
