.hero,
.title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px
}

.hero small,
.title small,
.panel-head small,
.modal-head small {
    color: #a995ff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em
}

.hero h2,
.title h2 {
    font: 700 clamp(1.7rem, 3vw, 2.2rem) Manrope;
    letter-spacing: -.04em;
    margin: 4px 0 5px
}

.hero p,
.title p {
    color: var(--muted);
    margin: 0
}

.title>.btn {
    flex: none
}

.btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-align: center;
}

.primary {
    background: var(--accent)
}

.ghost {
    background: var(--raised);
    border: 1px solid var(--line);
    color: #c7d0dd
}

.danger {
    background: #ff657720;
    color: #ff8d9b
}

.full {
    width: 100%
}

.panel,
.notice,
.entity {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.columns.wide {
    grid-template-columns: .82fr 1.18fr
}

.panel {
    padding: 22px
}

.panel-head,
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px
}

.panel-head h3,
.modal-head h3 {
    font: 700 1.05rem Manrope;
    margin: 4px 0
}

.panel-head button {
    border: 0;
    background: transparent;
    color: #a995ff;
    font-weight: 700
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line)
}

.row:first-child {
    border-top: 0
}

.row strong,
.row small {
    display: block
}

.row small {
    color: var(--muted)
}

.pill {
    padding: 5px 9px;
    border-radius: 99px;
    background: #8e9bad18;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700
}

.pill.online {
    background: #35c58a18;
    color: var(--success)
}

.pill.offline {
    background: #ff657718;
    color: #ff8d9b
}

label,
legend {
    display: block;
    margin: 17px 0 7px;
    color: #c3cdda;
    font-size: .85rem;
    font-weight: 700
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--raised);
    color: white;
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #7c5cff20
}

textarea {
    resize: vertical
}

.meta,
fieldset p {
    color: var(--muted);
    font-size: .75rem;
    margin: 5px 0;
    text-align: right
}

fieldset {
    border: 0;
    padding: 0;
    margin: 17px 0
}

fieldset p {
    text-align: left
}

.checks {
    display: grid;
    gap: 7px;
    max-height: 230px;
    overflow: auto
}

.check {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: var(--raised);
    border-radius: 9px
}

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

.check label {
    margin: 0;
    flex: 1
}

.stack {
    display: grid;
    gap: 10px
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px
}

.toolbar input {
    max-width: 380px
}

.toolbar span {
    margin-left: auto;
    color: var(--muted)
}

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

.entity {
    padding: 18px;
    min-width: 0
}

.entity-head {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.entity h3 {
    margin: 0;
    font: 700 1rem Manrope;
    overflow-wrap: anywhere
}

.entity p {
    color: var(--muted);
    font-size: .82rem;
    overflow-wrap: anywhere
}

.entity-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line)
}

.entity-foot button {
    border: 0;
    background: transparent;
    color: #a995ff;
    font-weight: 700
}

.entity-foot button.red {
    color: #ff8d9b
}

.notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    color: #bbc6d4;
    font-size: .85rem
}

.warning {
    background: #f0b8590b;
    border-color: #f0b85944
}

.empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 44px 20px;
    color: var(--muted);
    border: 1px dashed #344156;
    border-radius: 16px
}

.empty strong {
    display: block;
    color: #c5cfdb
}

dialog {
    width: min(560px, calc(100% - 28px));
    max-height: 90vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: white
}

dialog::backdrop {
    background: #020408c8;
    backdrop-filter: blur(5px)
}

.modal {
    padding: 22px;
    border: 1px solid #344156;
    border-radius: 20px;
    background: var(--panel);
    max-height: 90vh;
    overflow: auto
}

.modal .icon {
    display: block
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 24px
}

.actions i {
    flex: 1
}

.picker {
    max-height: 280px
}

#toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: grid;
    gap: 8px
}

.toast {
    padding: 13px 15px;
    border: 1px solid #344156;
    border-radius: 11px;
    background: #1b2331;
    box-shadow: 0 20px 50px #0008
}

.toast.error {
    border-color: #ff657788
}

@media(max-width:1050px) {
    .grid {
        grid-template-columns: 1fr 1fr
    }

    .columns.wide {
        grid-template-columns: 1fr
    }
}

@media(max-width:760px) {

    .hero,
    .title {
        align-items: flex-start;
        flex-direction: column
    }

    .hero>.btn,
    .title>.btn {
        width: 100%
    }

    .columns,
    .grid {
        grid-template-columns: 1fr
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .toolbar input {
        max-width: none
    }

    .toolbar span {
        margin: 0
    }

    .panel {
        padding: 17px
    }
}

@media(max-width:460px) {
    .actions {
        flex-wrap: wrap
    }

    .actions .btn {
        flex: 1
    }

    .actions i {
        display: none
    }
}