.desk-dialog,
.desk-box {
    color: var(--txt-1, #f1f1f4);
    background: var(--panel-bg, #191b20);
    border: 1px solid var(--line, rgba(179, 183, 198, 0.24));
    border-radius: 14px;
    padding: clamp(16px, 3vw, 26px);
    color-scheme: dark;
    font-family: inherit;
}
.desk-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(96vw, 660px);
    max-height: 90dvh;
    overflow: auto;
    box-sizing: border-box;
}
.desk-dialog::backdrop {
    background: rgba(9, 10, 14, 0.78);
}
.desk-box {
    margin: 12px 0;
    overflow-wrap: anywhere;
}
.desk-form,
.desk-form label {
    display: grid;
    align-content: start;
    gap: 6px;
}
.desk-form {
    gap: 13px;
}
.desk-heading,
.desk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.desk-heading h2,
.desk-box h3,
.desk-box h4 {
    margin: 0;
}
.desk-grid,
.desk-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.desk-form label {
    font-weight: 600;
    min-width: 0;
}
.desk-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 10px;
}
.desk-form input,
.desk-form textarea,
.desk-form select {
    font: inherit;
    border: 1px solid #575b65;
    border-radius: 7px;
    background: #202228;
    color: #fafafa;
    min-width: 0;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.desk-form textarea {
    min-height: 72px;
    resize: vertical;
}
.desk-box [hidden],
.desk-dialog [hidden],
.desk-box[hidden] {
    display: none !important;
}
.desk-button {
    border: 1px solid #72747c;
    border-radius: 8px;
    background: #292b33;
    color: #f7f7fa;
    padding: 9px 13px;
    font: inherit;
    cursor: pointer;
}
.desk-button.primary {
    background: #ffcc01;
    border-color: #ffcc01;
    color: #17160f;
    font-weight: 700;
}
.desk-button:disabled {
    opacity: 0.55;
    cursor: default;
}
.desk-box .desk-button {
    margin: 4px;
}
.desk-error {
    color: #ffa4a4;
}
.desk-form p:empty,
.desk-error:empty {
    display: none;
}
.desk-box dl {
    display: grid;
    gap: 5px;
}
.desk-box dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.desk-box dd {
    margin: 0;
    text-align: end;
}
.desk-box details,
.desk-preview,
.desk-box h4 {
    margin-block: 12px;
}
.desk-dialog a,
.desk-box a {
    color: var(--gold, #ffcc01);
}
.desk-placement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    overflow-wrap: anywhere;
    margin: 5px 0 10px;
}
.desk-placement small {
    color: var(--txt-2, #c4c5ce);
}
.desk-placement span,
.desk-placement a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
}
.desk-placement.page {
    background: rgba(255, 204, 0, 0.09);
    padding: 12px;
    border-radius: 8px;
}
.desk-placement .desk-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.desk-placement.page .desk-logo {
    width: 36px;
    height: 36px;
}
.desk-banner {
    width: 100%;
    max-height: 112px;
    object-fit: contain;
}
@media (max-width: 560px) {
    .desk-grid,
    .desk-preview {
        grid-template-columns: minmax(0, 1fr);
    }
    .desk-actions .desk-button {
        flex: 1 1 130px;
    }
    .desk-form input,
    .desk-form select,
    .desk-form textarea {
        font-size: 16px;
    }
}
