/* Travelman - продовые экраны. Палитра Б2 (индиго), обе темы на одних переменных. */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=block');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,500,0..1,0&display=block');

:root, [data-theme="dark"] {
  /* Б3 (22.11): индиго Б2 + сине-фиолетовый фон и лавандовый градиент из референса заказчика TM eco */
  --bg: #16142A;
  --bg-2: #1C1A34;
  --card: #24213F;
  --card-2: #2C2949;
  --chip: #3A3763;
  --ph: #46436D;
  --accent: #8F92F4;
  --accent-2: #B0B1FA;
  --grad: linear-gradient(135deg, #B3B2FB 0%, #8E8FF3 55%, #7479EA 100%);
  --accent-soft: rgba(143,146,244,.17);
  --on-accent: #15132B;
  --text: #F4F3FA;
  --text-2: #B9B7D4;
  --text-3: #8784A3;
  --line: #34315A;
  --hint: #D3E8B0;
  --on-hint: #16142A;
  --ok: #6FD3A0;
  --bad: #FF6F7D;
  --shadow: 0 10px 30px rgba(5,3,20,.45);
  --glass: rgba(22,20,42,.8);
}
[data-theme="light"] {
  --bg: #F3F2FA;
  --bg-2: #EAE9F6;
  --card: #FFFFFF;
  --card-2: #F4F3FB;
  --chip: #E6E5F8;
  --ph: #DAD9EC;
  --accent: #6567E3;
  --accent-2: #7F81EE;
  --grad: linear-gradient(135deg, #9A9BF6 0%, #7476EA 55%, #5D60DD 100%);
  --accent-soft: rgba(101,103,227,.11);
  --on-accent: #FFFFFF;
  --text: #16142A;
  --text-2: #5C5A77;
  --text-3: #908EA9;
  --line: #E4E3F0;
  --hint: #E4F2CC;
  --on-hint: #16142A;
  --ok: #1F9D62;
  --bad: #E0464F;
  --shadow: 0 8px 24px rgba(40,35,110,.08);
  --glass: rgba(255,255,255,.84);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #0b0c10; }
body { font-family: 'Nunito Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.sym { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1;
  font-size: 24px; display: inline-block; font-variation-settings: 'FILL' 1, 'wght' 500, 'opsz' 24; }
.sym.o { font-variation-settings: 'FILL' 0, 'wght' 500, 'opsz' 24; }

/* Телефон 390x844 */
.phone { width: 390px; height: 844px; position: relative; overflow: hidden; background: var(--bg); color: var(--text); }
.statusbar { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 34px;
  font-weight: 700; font-size: 16px; position: relative; z-index: 5; }
.statusbar .r { display: flex; gap: 6px; align-items: center; }
.statusbar .sym { font-size: 18px; }
.batt { width: 26px; height: 12px; border: 1.5px solid var(--text); border-radius: 4px; position: relative; opacity: .9; }
.batt::after { content: ''; position: absolute; inset: 1.5px; right: 5px; background: var(--text); border-radius: 1.5px; }
.scroll { position: absolute; inset: 47px 0 0 0; overflow: hidden; padding-bottom: 110px; }

/* Нижняя навигация */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; background: var(--glass);
  backdrop-filter: blur(18px); border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding-top: 9px; z-index: 6; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text-3); width: 80px; }
.tab .pill { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
.tab.on { color: var(--text); }
.tab.on .pill { background: var(--accent-soft); color: var(--accent); }
.tab .badge { position: absolute; margin: -4px 0 0 22px; background: var(--accent); color: var(--on-accent);
  font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px;
  border-radius: 3px; background: var(--text); opacity: .85; z-index: 7; }

.h-sec { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.btn { height: 54px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; }
.chip { height: 28px; padding: 0 10px; border-radius: 14px; background: var(--chip); color: var(--text); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; }

/* Общие элементы экранов (с 22.11) */
.appbar { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.appbar .back { width: 40px; height: 40px; border-radius: 13px; background: var(--card); display: grid; place-items: center; flex: none; }
.appbar h1 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.appbar p { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-top: 1px; }
.ava-l { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.metric { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.metric b { font-size: 15px; color: var(--text); font-weight: 800; }
.metric .bar { height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden; }
.metric .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.ico { height: 34px; min-width: 34px; padding: 0 8px; border-radius: 11px; background: var(--card-2); display: inline-flex; align-items: center;
  justify-content: center; gap: 3px; font-size: 13px; font-weight: 800; position: relative; }
.ico .sym { font-size: 19px; color: var(--text-2); }
.ico .mk { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; line-height: 1; border: 2px solid var(--card); }
.ico .mk.plus { background: var(--ok); color: #fff; }
.ico .mk.minus { background: var(--bad); color: #fff; }
.ico.miss { outline: 1.5px dashed var(--bad); outline-offset: -1.5px; }
.ico.miss .sym { color: var(--bad); }
.carph { border-radius: 12px; overflow: hidden; flex: none; background: linear-gradient(150deg, #4a5070, #2c3043); display: grid; place-items: center; }
[data-theme="light"] .carph { background: linear-gradient(150deg, #dfe2f0, #c7cbe0); }
.btn-ghost { height: 50px; border-radius: 16px; border: 1.5px solid var(--line); color: var(--text); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; }
.bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px 30px; background: var(--glass); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); z-index: 6; }
[data-theme="light"] .carph img { filter: brightness(.62) contrast(1.2); }

/* Иконки (icons.js) */
.i { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; font-style: normal; }
.i svg { width: 100%; height: 100%; display: block; }
.i .f { fill: currentColor; fill-opacity: .28; }
.i .s { fill: currentColor; stroke: none; }
.ib { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-grid; place-items: center;
  position: relative; flex: none; box-shadow: 0 6px 14px rgba(110,112,235,.28); }
.ib .i { width: 26px; height: 26px; }
.ib .i .f { fill-opacity: .38; }
.ib.off { background: var(--chip); color: var(--text-3); box-shadow: none; }
.ib.miss { background: var(--bad); box-shadow: 0 6px 14px rgba(224,70,79,.28); }
.ib .cnt { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--text);
  color: var(--bg); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.ib.sm { width: 36px; height: 36px; } .ib.sm .i { width: 20px; height: 20px; }
