* { box-sizing: border-box; }

body {
    margin: 0;
    background: #0b1219;
    color: #e7edf3;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

header {
    height: 72px;
    padding: 0 34px;
    border-bottom: 1px solid #1c2a36;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0e1821;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #177ddc;
    font-weight: 700;
}

.brand strong {
    display: block;
    font-size: 17px;
}

.brand small,
.instance small {
    display: block;
    margin-top: 3px;
    color: #8092a3;
}

.platform-status {
    color: #9badbc;
    font-size: 14px;
}

.platform-status span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #2fb344;
}

main {
    width: min(1080px, calc(100% - 40px));
    margin: 40px auto;
}

section {
    margin-bottom: 48px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

h2 {
    margin: 0;
    color: #8193a4;
    font-size: 12px;
    letter-spacing: .13em;
}

.empty {
    padding: 28px;
    border: 1px dashed #253746;
    border-radius: 12px;
    color: #667b8d;
    text-align: center;
}

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

.instance {
    min-height: 82px;
    padding: 17px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #101c26;
    border: 1px solid #20313f;
    border-radius: 12px;
}

.instance strong {
    font-size: 16px;
}

.actions {
    display: flex;
    gap: 8px;
}

button {
    padding: 9px 14px;
    border: 1px solid #304657;
    border-radius: 8px;
    background: #14232e;
    color: #dce7ef;
    cursor: pointer;
}

button:hover {
    background: #1a3040;
}

button.primary {
    border-color: #177ddc;
    background: #177ddc;
    color: white;
}

form {
    margin: 0;
}

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
}

.modal-backdrop.visible {
    display: grid;
}

.modal {
    width: min(430px, calc(100% - 32px));
    padding: 25px;
    border: 1px solid #263b4b;
    border-radius: 14px;
    background: #101c26;
    box-shadow: 0 25px 70px rgba(0,0,0,.45);
}

.modal h3 {
    margin: 0 0 22px;
}

.modal label {
    display: block;
    margin-top: 16px;
    color: #91a4b5;
    font-size: 13px;
}

.modal input,
.modal select {
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #304657;
    border-radius: 8px;
    outline: none;
    background: #0c161e;
    color: #e7edf3;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 25px;
}


.button-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid #304657;
    border-radius: 8px;
    background: #14232e;
    color: #dce7ef;
    text-decoration: none;
}
.button-link:hover {
    background: #1a3040;
    color: #fff;
}
