.flash-red {
  animation: flashRed 1s ease;
}

.flash-yellow {
  animation: flashYellow 1s ease;
}

@keyframes flashRed {
  from {
    background-color: rgba(255, 0, 0, 0.4);
  }

  to {
    background-color: transparent;
  }
}

@keyframes flashYellow {
  from {
    background-color: rgba(255, 255, 0, 0.4);
  }

  to {
    background-color: transparent;
  }
}

.user-list {
  display: flex;
  flex-direction: column;
}

.user-item {
  display: grid;
  grid-template-columns: 100px 130px 100px;
  align-items: center;
  transition: opacity 0.5s;
}

.user-item .bytes {
  padding: 0 4px;
}

.user-item .bytes.in {
  text-align: right;
}

.user-item .bytes.out {
  text-align: left;
}

.username {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3ch;
  /* расстояние между октетами и точками */
  font-family: monospace;
  white-space: nowrap;
  padding-left: 5px;
  padding-right: 5px;
  border-left: 1px solid black;
  border-right: 1px solid black;
}

.username span {
  text-align: left;
}

.username span:nth-of-type(1),
.username span:nth-of-type(3) {
  width: 2ch;
}

.username span:nth-of-type(5),
.username span:nth-of-type(7) {
  width: 3ch;
}

.username .dot {
  width: 0.6ch;
  /* уменьшенная точка */
  text-align: center;
}

.octets {
  width: 100px;
  margin: 0 auto;
}.sscontrol {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 30px;
}

.sscontrol select,
input {
    font-family: monospace;
    background-color: transparent;
    outline: none;
    backdrop-filter: brightness(0.5);
    border: 1px solid black;
    color: #96e3ee;
}

.sscontrol select option {
    background-color: transparent;
}

.filter__control {}.steam {
    display: flex;
    position: relative;
    flex: 1;
    min-height: 0; /* 🔑 must */
    mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1),
        rgba(0,0,0,0)
    );
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1),
        rgba(0,0,0,0)
    );
}

.lines {
    flex: 1;           /* блок занимает ровно оставшееся место */
    min-height: 0;     /* 🔑 must — чтобы не выталкивать родителей */
    overflow-y: auto;  /* скроллим */
    display: flex;
    flex-direction: column;
    font-family: monospace;
    font-size: small;
    color: #0b131a;
    color: aliceblue;
    scrollbar-width: none;
}* {
    margin: 0;
    padding: 0;
}

html,
body,
#root {
    height: 100vh;
}

.layout {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0b131a;
    z-index: 0;
}

.main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
}

.page {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 600px;
    max-width: 1100px;
    width: 90%;
}

.header {
    min-height: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.bg-absolute-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-repeat: no-repeat;
    background-position: center -75px;
}

.steam-absolute-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;

    /* Сам эффект */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 80%,
            rgb(11 19 26) 100%);
}

.header__top {
    height: 110px;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.navbar {
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    font-size: 18px;
    justify-content: flex-end;
    align-items: center;
    margin: 0 20px;
}

.navbar a {
    align-content: center;
    padding: 0 12px;
    border-radius: 2px;
    text-decoration: none;
    height: 40px;
    font-family: monospace;
}

a.header__link {
    cursor: pointer;
    background-color: 080c0b;
    color: rgb(0, 255, 0);
}

a.header__link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px white;
}

a.header__link.active {
    outline: 1px solid white;
    font-weight: bold;
    background-color: #90f94a;
    color: black;
}

.footer {
    height: 100px;
    color: black;
    background-color: #0b131a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-size: 50px;
}


.wrapper {
    display: flex;
    gap: 40px;
}

.column {
    display: flex;
    flex-direction: column;
}

.flash {
    animation: flashShake 1s ease-out;
}

@keyframes flashShake {
    0% {
        transform: translateX(0);
        background: #ff0;
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
        background: transparent;
    }
}.whoami {
    display: flex;
    color: darkred;
    font-family: monospace;
    font-size: 22px;
    align-items: center;
    justify-content: center;
}

.connected {
    color: greenyellow
}.ip-grid {
    display: grid;
    grid-template-columns: repeat(7, auto);
    /* column-gap: 1px;   было 2px → ставим 1px */
    align-items: center;
    font-family: monospace;
    font-size: 15px;
}

.octet2 {
    min-width: 2ch;    /* пусть остаётся, это даёт выравнивание */
    text-align: right;
}

.octet3 {
    min-width: 3ch;    /* пусть остаётся, это даёт выравнивание */
    text-align: right;
}

.dot {
    min-width: 1ch;
    text-align: center;
    opacity: 0.8;
}
.soul-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    backdrop-filter: blur(3px);
    padding: 10px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
}

/* Огонь */
.fire {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
    border-radius: 2px;
    background: rgb(255, 165, 0);
    transition: width 0.15s linear;
    z-index: 1;
    opacity: 50%;
}

/* Левый растёт влево */
.left-fire {
    right: 100%;
    /* прилеплен к левому краю IP */
    width: 0;
    /* ты меняешь width из JS */
}

/* Правый растёт вправо */
.right-fire {
    left: 100%;
    /* прилеплен к правому краю IP */
    width: 0;
}

.soul-row {
    /* надо для плавного схлопывания */
    height: 18px;
    display: flex;
    border: 1px solid transparent;
    transition: opacity .2s linear, height .3s linear;
}

/* Контейнер, где огни висят абсолютно относительно IP */
.row-stack {
    position: relative;
    display: inline-block;
}

/* вспышка */
.flash {
    background: var(--flashColor);
    opacity: 0.85;
}

/* вибрация при больших потоках */
.shake {
    animation: shakeAnim 0.15s infinite;
}

.bold {
    font-weight: bold;
}

@keyframes shakeAnim {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
    }

    50% {
        transform: translateX(1px);
    }

    75% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

.soul-row:hover {
    border-top: 1px dotted white;
    border-bottom: 1px dotted white;
}

.soul-row:hover::before {
    content: "►";
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    left: -7px;
    line-height: 20px;
}

.soul-row:hover::after {
    content: "◄";
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    right: -7px;
    line-height: 20px;
}

.inactive {
    opacity: .1;
    transition: opacity 10s linear;
}

.collapsed {
    border: none;
    height: 0;
    transition: height 1s linear;
}