:root {
    --hue: 209;

    --acc: hsl(var(--hue), 94%, 61%);
    --acc-2: hsl(var(--hue), 94%, 50%);
    --acc-soft: hsla(var(--hue), 94%, 61%, .14);
    --acc-line: hsla(var(--hue), 94%, 61%, .38);

    --ok: #4ade80;
    --warn: #f5c84b;
    --danger: #f0576a;
    --discord: #5865f2;

    --txt: #eef1f5;
    --muted: #8f96a1;
    --faint: rgba(226, 232, 240, .38);

    --bg: hsl(var(--hue), 22%, 5%);
    --panel: hsl(var(--hue), 20%, 8%);
    --surface: hsl(var(--hue), 15%, 12%);
    --surface-2: hsl(var(--hue), 14%, 15%);
    --surface-3: hsl(var(--hue), 14%, 19%);
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .11);

    --r-sm: 8px;
    --r: 11px;
    --r-lg: 16px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --side: 320px;
    --top: 60px;

    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--txt);
    font: 14px/1.45 'Poppins', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

button:disabled {
    cursor: default;
    opacity: .45;
}

code,
.mono {
    font-family: var(--mono);
    font-size: .86em;
}

code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-2);
}

.i {
    width: 18px;
    height: 18px;
    flex: none;
}

.spacer {
    flex: 1;
}

.faint {
    color: var(--faint);
    font-size: 12px;
}

.bad {
    color: var(--danger) !important;
}

#app {
    height: 100%;
}

/* ------------------------------------------------------------ wspolne */

.spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid var(--line-2);
    border-top-color: var(--acc);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.boot {
    height: 100%;
    display: grid;
    place-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand__mark {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--acc);
    background: var(--acc-soft);
    border: 1px solid var(--acc-line);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.brand__text b {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
}

.brand__text small {
    color: var(--muted);
    font-size: 12px;
}

.brand--big .brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
}

.brand--big .brand__mark .i {
    width: 24px;
    height: 24px;
}

.brand--big .brand__text b {
    font-size: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    font-weight: 500;
    transition: background .15s, border-color .15s;
}

.btn:hover:not(:disabled) {
    background: var(--surface-3);
}

.btn.sm {
    height: 32px;
    padding: 0 11px;
    font-size: 13px;
}

.btn.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.btn.ghost:hover:not(:disabled) {
    color: var(--txt);
    background: var(--surface-2);
}

.icon-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    color: var(--muted);
    transition: background .15s, color .15s;
}

.icon-btn:hover {
    background: var(--surface-3);
    color: var(--txt);
}

.icon-btn .i {
    width: 17px;
    height: 17px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.pill .i {
    width: 15px;
    height: 15px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.pill--ok {
    color: var(--txt);
}

.pill--ok .dot {
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

.pill--bad {
    color: var(--danger);
    border-color: rgba(240, 87, 106, .3);
}

.pill--bad .dot {
    background: var(--danger);
}

.pill--warn {
    color: var(--warn);
}

.pill--warn .dot {
    background: var(--warn);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    50% {
        opacity: .25;
    }
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: var(--surface-3);
}

.avatar.sm {
    width: 28px;
    height: 28px;
}

.avatar--blank {
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
}

.note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 13px;
    border-radius: var(--r);
    font-size: 13px;
    line-height: 1.5;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
}

.note .i {
    margin-top: 1px;
}

.note--error {
    color: #ffb3bd;
    background: rgba(240, 87, 106, .08);
    border-color: rgba(240, 87, 106, .28);
}

.note--warn {
    color: #f8dc8f;
    background: rgba(245, 200, 75, .07);
    border-color: rgba(245, 200, 75, .26);
}

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 16px;
    color: var(--faint);
    font-size: 13px;
    text-align: center;
}

.empty small {
    font-size: 12px;
    color: var(--danger);
}

/* ------------------------------------------------------------ logowanie */

.login {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: auto;
    background:
        radial-gradient(900px 520px at 50% -10%, hsla(var(--hue), 90%, 55%, .13), transparent 70%),
        var(--bg);
}

.login__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%);
    opacity: .5;
}

.login__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel), hsl(var(--hue), 20%, 7%));
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}

.login__card h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-top: 6px;
}

.login__lead {
    color: var(--muted);
    margin-top: -8px;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: var(--r);
    background: var(--discord);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: filter .15s, transform .15s var(--ease);
}

.btn-discord:hover {
    filter: brightness(1.08);
}

.btn-discord:active {
    transform: translateY(1px);
}

.login__facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.login__facts li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.login__facts .i {
    width: 15px;
    height: 15px;
    color: var(--acc);
}

.login__foot {
    position: relative;
    margin-top: 22px;
    color: var(--faint);
    font-size: 12px;
    font-family: var(--mono);
}

/* ------------------------------------------------------------ uklad */

.shell {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side);
    grid-template-rows: var(--top) minmax(0, 1fr);
    grid-template-areas: "top top" "stage side";
}

.shell.is-collapsed {
    grid-template-columns: minmax(0, 1fr) 0;
}

.shell.is-collapsed .side {
    display: none;
}

.top {
    grid-area: top;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
}

.top__status {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.me {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border-radius: 99px;
    cursor: pointer;
    transition: background .15s;
}

.me:hover {
    background: var(--surface);
}

.me__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.me__text b {
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.me__text small {
    font-size: 11.5px;
    color: var(--acc);
    font-weight: 500;
}

.me > .i {
    color: var(--muted);
}

.menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    padding: 6px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line-2);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7);
    cursor: default;
}

.menu__head {
    padding: 6px 10px 8px;
    color: var(--faint);
    font-size: 12px;
    font-family: var(--mono);
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.menu__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    text-align: left;
    font-size: 13.5px;
}

.menu__item:hover {
    background: var(--surface-3);
}

.menu__item.is-danger {
    color: var(--danger);
}

/* ------------------------------------------------------------ siatka */

.stage {
    grid-area: stage;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    padding: 12px;
    gap: 10px;
}

.grid {
    --cols: 2;
    --tw: minmax(0, 1fr);
    --th: minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(var(--cols), var(--tw));
    grid-auto-rows: var(--th);
    justify-content: center;
    align-content: center;
}

.grid.is-blank {
    display: flex;
}

.blank {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--r-lg);
    border: 1px dashed var(--line-2);
    color: var(--faint);
    text-align: center;
    padding: 24px;
}

.blank .i {
    width: 34px;
    height: 34px;
    color: var(--acc);
    opacity: .7;
}

.blank strong {
    color: var(--txt);
    font-weight: 600;
    font-size: 16px;
}

.tile {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border-radius: var(--r);
    background: #05080b;
    border: 1px solid var(--line);
}

.tile.is-live {
    border-color: rgba(74, 222, 128, .18);
}

.tile:fullscreen {
    border-radius: 0;
    border: 0;
}

.tile__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.tile__bar {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 18px 11px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent);
    font-size: 12.5px;
}

.tile__name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.tile__name b {
    font-family: var(--mono);
    font-size: 11.5px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .12);
}

.badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(255, 255, 255, .1);
    color: var(--muted);
}

.badge--live {
    background: rgba(240, 87, 106, .9);
    color: #fff;
}

.badge--live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.4s ease-in-out infinite;
}

.badge--error,
.badge--offline {
    background: rgba(245, 200, 75, .16);
    color: var(--warn);
}

.tile__tools {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity .15s;
}

.tile:hover .tile__tools,
.tile:focus-within .tile__tools,
.tile.is-error .tile__tools {
    opacity: 1;
}

.tile__tools .icon-btn {
    width: 28px;
    height: 28px;
    color: #dfe5ec;
    background: rgba(0, 0, 0, .35);
}

.tile__tools .icon-btn:hover {
    background: rgba(0, 0, 0, .6);
}

.tile__wait {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 18px 18px;
    text-align: center;
    color: var(--faint);
    font-size: 13px;
}

.tile__wait.is-error {
    color: var(--muted);
}

.tile__wait.is-error > .i {
    width: 26px;
    height: 26px;
    color: var(--warn);
}

.tile__stats {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
}

.tile:hover .tile__stats {
    opacity: 1;
}

.tile__stats span {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .6);
    font: 11px var(--mono);
    color: #cfd6de;
}

.bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--r);
    background: var(--panel);
    border: 1px solid var(--line);
}

.bar__count {
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}

.bar__count b {
    color: var(--txt);
    font-weight: 600;
}

.seg {
    display: flex;
    padding: 3px;
    gap: 2px;
    border-radius: 9px;
    background: var(--surface);
}

.seg button {
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.seg button.is-on {
    background: var(--acc);
    color: #06131f;
}

/* ------------------------------------------------------------ lista */

.side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--panel);
    border-left: 1px solid var(--line);
}

.side__head {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 11px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    transition: border-color .15s;
}

.search:focus-within {
    border-color: var(--acc-line);
}

.search .i {
    width: 16px;
    height: 16px;
}

.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--txt);
    font-size: 13px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 11px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

.chip .i {
    width: 15px;
    height: 15px;
}

.chip.is-on {
    color: var(--acc);
    border-color: var(--acc-line);
    background: var(--acc-soft);
}

.side__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: var(--r-sm);
    text-align: left;
    border: 1px solid transparent;
    transition: background .12s;
}

.row:hover {
    background: var(--surface);
}

.row.is-on {
    background: var(--acc-soft);
    border-color: var(--acc-line);
}

.row__id {
    flex: none;
    min-width: 34px;
    padding: 2px 0;
    border-radius: 6px;
    background: var(--surface-2);
    text-align: center;
    font: 600 11.5px var(--mono);
    color: var(--muted);
}

.row.is-on .row__id {
    background: var(--acc);
    color: #06131f;
}

.row__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.row__text b,
.row__text small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row__text b {
    font-weight: 500;
    font-size: 13px;
}

.row__text small {
    color: var(--faint);
    font-size: 11.5px;
}

.rank .i {
    width: 15px;
    height: 15px;
}

.row__ping {
    font: 11px var(--mono);
    color: var(--faint);
}

.row__ping.is-bad {
    color: var(--warn);
}

.row__on {
    width: 16px;
    height: 16px;
    color: var(--acc);
}

/* ------------------------------------------------------------ diagnostyka */

.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(2, 5, 8, .7);
    backdrop-filter: blur(4px);
}

.modal__box {
    width: 100%;
    max-width: 960px;
    max-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: var(--r-lg);
    background: var(--panel);
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
}

.modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.modal__head > .i {
    color: var(--acc);
}

.kvs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.kv {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--line);
}

.kv span {
    color: var(--muted);
    font-size: 12px;
}

.kv strong {
    font-weight: 600;
}

.table {
    border-radius: var(--r);
    border: 1px solid var(--line);
    overflow: hidden;
}

.table__row {
    display: grid;
    grid-template-columns: 1.6fr .9fr .8fr .9fr 1.1fr .6fr 1.6fr;
    gap: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    border-top: 1px solid var(--line);
    align-items: center;
}

.table__row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table__row--head {
    border-top: 0;
    background: var(--surface);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
}

.table__why {
    grid-column: 1 / -1;
    color: var(--warn);
    white-space: normal !important;
}

/* ------------------------------------------------------------ powiadomienia */

.toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 32px));
}

.toast {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--acc);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
    font-size: 13px;
    animation: toast-in .25s var(--ease);
}

.toast span {
    color: var(--muted);
}

.toast--ok {
    border-left-color: var(--ok);
}

.toast--warn {
    border-left-color: var(--warn);
}

.toast--error {
    border-left-color: var(--danger);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ------------------------------------------------------------ telefon / waski ekran */

@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .shell,
    .shell.is-collapsed {
        height: auto;
        min-height: 100%;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        grid-template-areas: "top" "stage" "side";
        align-content: start;
    }

    .top {
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }

    .top__status {
        order: 3;
        width: 100%;
    }

    .brand__text small {
        display: none;
    }

    .me__text {
        display: none;
    }

    .stage {
        padding: 10px 16px;
    }

    .grid {
        flex: none;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: auto !important;
    }

    .tile {
        aspect-ratio: 16 / 9;
    }

    .bar {
        gap: 6px;
    }

    .grid.is-blank {
        min-height: 180px;
    }

    .side {
        border-left: 0;
        border-top: 1px solid var(--line);
        max-height: none;
    }

    .side__head {
        padding: 12px 16px;
    }

    .side__list {
        padding: 6px 10px 20px;
    }

    .hide-sm {
        display: none;
    }

    .tile__tools,
    .tile__stats {
        opacity: 1;
    }

    .kvs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table__row {
        grid-template-columns: 1fr 1fr;
    }

    .table__row--head {
        display: none;
    }
}

/* ------------------------------------------------------------ obracanie obrazu */

.tile.is-flipped .tile__video {
    transform: scaleY(-1);
}

/* ------------------------------------------------------------ banowanie */

.icon-btn--danger:hover {
    color: var(--danger) !important;
}

.row__ban {
    display: none;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 6px;
    color: var(--muted);
}

.row__ban .i {
    width: 15px;
    height: 15px;
}

.row:hover .row__ban {
    display: grid;
}

.row:hover .row__ping {
    display: none;
}

.row__ban:hover {
    color: var(--danger);
    background: rgba(240, 87, 106, .12);
}

.modal__box--ban {
    max-width: 640px;
}

.ban-target {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field__label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.modal .chip {
    height: 32px;
}

.chips--small .chip {
    height: auto;
    min-height: 28px;
    padding: 4px 9px;
    font-size: 12px;
    text-align: left;
}

.chip--tariff b {
    color: var(--txt);
    font-family: var(--mono);
    font-size: 11.5px;
}

.chip--tariff small {
    color: var(--faint);
    font-size: 11px;
}

.chip--tariff.is-on small,
.chip--tariff.is-on b {
    color: inherit;
}

.hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--faint);
    font-size: 12px;
}

.hours input {
    width: 72px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--txt);
}

.modal textarea {
    width: 100%;
    resize: vertical;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--txt);
    font: inherit;
    font-size: 13.5px;
    outline: 0;
}

.modal textarea:focus,
.hours input:focus {
    border-color: var(--acc-line);
    outline: 0;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--acc);
}

.modal__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.btn--danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    font-weight: 600;
}

.btn--danger:hover:not(:disabled) {
    background: #e2475b;
}

@media (max-width: 900px) {
    .row__ban {
        display: grid;
    }

    .row .row__ping {
        display: none;
    }
}
