:root {
    font-family: Inter, system-ui, sans-serif;
    color: #13233a;
    background: #eef3f8;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    place-items: center;
}

main {
    width: min(880px, 100%);
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 60px #17395b26;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    color: #083b6d;
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: min(220px, 48%);
    height: auto;
    object-fit: contain;
}

.brand-title {
    text-align: right;
}

h1 {
    margin: 0 0 18px;
    font-size: 1.7rem;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 650;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #aab8c7;
    border-radius: 9px;
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button,
.button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 18px;
    color: #fff;
    background: #064b87;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.muted {
    color: #637285;
    font-size: 0.92rem;
}

.error,
.success {
    padding: 12px;
    border-radius: 9px;
}

.error {
    color: #8c1d18;
    background: #fff0f0;
}

.success {
    color: #176b38;
    background: #eaf8ef;
}

.delivery-notice {
    padding: 12px 14px;
    color: #083b6d;
    background: #edf5fc;
    border-left: 4px solid #2f5aac;
    border-radius: 8px;
}

.secret {
    padding: 18px;
    overflow-wrap: anywhere;
    background: #f5fff8;
    border: 2px solid #0a5;
    border-radius: 10px;
}

[data-dx="copy-secret"] {
    margin-top: 14px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 6px;
    border-bottom: 1px solid #dae2ea;
    font-size: 0.92rem;
    text-align: left;
}

.dx-editor {
    margin-bottom: 14px;
}

.dx-app-form label {
    display: block;
    margin-top: 14px;
}

.actions,
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.actions {
    justify-content: flex-start;
    margin-top: 20px;
}

.page-head h1 {
    margin-bottom: 4px;
}

#shares-grid {
    margin-top: 20px;
}

.option-editor {
    margin-top: 22px;
}

@media (max-width: 580px) {
    main {
        padding: 22px;
    }

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

    .brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .brand-logo {
        width: min(210px, 70%);
    }

    .brand-title {
        text-align: left;
    }
}
