:root {
    --basic-1: #191D21;
    --basic-2: #515B64;
    --basic-5: #9099A6;
    --basic-6: #B9C1CE;
    --grey-1: #E9ECF2;
    --green-1: #42BF8B;
    --red-1: #F1194D;
}

.mini {
    width: 295px;
    box-sizing: border-box;
    padding: 12px 0px 16px 14px;
}
/* верхній рядок: CAN і сигнал */
.mini-top {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.can-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.can {
    box-sizing: border-box;
    width:54px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    background: var(--grey-1);
    color: var(--basic-5);
}
.can.on {
    background: var(--green-1);
    color: #fff;
}
.signal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--basic-2);
}
.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
}
.signal-bars span {
    width: 5px;
    border-radius: 1px;
    background: var(--grey-1);
}
.signal-bars span:nth-child(1) { height: 6px; }
.signal-bars span:nth-child(2) { height: 12px; }
.signal-bars span:nth-child(3) { height: 18px; }
.signal-bars span.on { background: var(--green-1); }

.connection {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 14px;
}

/* зв'язок з BT-реле та BT-мітками (до двох кожного типу)
    .bt-dev.on = на зв'язку, без on = немає зв'язку, .bt-dev.none = не встановлено */
.bt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    height: 24px;
}
.bt-name { 
    width: 36px;
    color: var(--basic-2);
    font-weight: 500;
}
.bt-dev {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    background: var(--grey-1);
    color: var(--basic-5);
}
.bt-dev.on {
    background: var(--green-1);
    color: #fff;
}
.bt-dev.none { 
    visibility: hidden; 
}

.signal-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
/* номер активної SIM-карти */
.sim {
    box-sizing: border-box;
    width: 19px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--basic-5);
    border-radius: 0px 7px 0px 0px;
    font-size: 14px;
    color: var(--basic-1);
}
/* локація */
.location {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--grey-1);
    font-size: 1rem;
}
.location svg { 
    width: 24px; 
    height: 24px; 
    flex: none; 
    fill: var(--basic-5); 
}
.location a {
    color: #2694FA;
    text-decoration: none;
}
.location a:hover { text-decoration: underline; }
/* кількість супутників GPS */
.sats { 
    color: var(--basic-2); 
}
/* машинка + плитки */
.mini-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 14px;
}

.tiles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.tile {
    box-sizing: border-box;
    width: 80px;
    height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 2px;
    background: #FFFFFF;
    border: 1px solid var(--grey-1);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    text-align: center;
    font-size: 0.875rem;
    /* line-height: 11px; */
    color: var(--basic-2);
}
.tile svg { width: 24px; height: 24px; flex: none; fill: var(--basic-5); }
.tile.on svg { fill: var(--green-1); }
.tile-value {
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    color: var(--basic-1);
}
.tile-value small { font-size: 14px; font-weight: 400; }
/* одометр: довге число, тому дрібніший шрифт */
.tile-value.odometer { font-size: 14px; white-space: nowrap; }
.tile-value.odometer small { font-size: 14px; }