.options-window-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    padding: 16px;
    overflow-y: auto;
}

.options-window {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    overflow: hidden;
    background: #1f232b;
    border: 1px solid #3b4554;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: #dce3ec;
    font-family: "Segoe UI", Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
}

.options-window-header {
    padding: 16px 18px;
    border-bottom: 1px solid #313b49;
}

.options-window-header h2 {
    font-size: 18px;
    margin: 0 0 4px 0;
    color: #f1f5fb;
}

.options-window-header p {
    margin: 0;
    font-size: 13px;
    color: #95a4b8;
    word-break: break-all;
}

.options-window-body {
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    overflow-y: auto;
}

.options-window-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
}

.options-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #93a6bc;
    margin-bottom: 6px;
    display: inline-block;
}

.options-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.options-select,
.options-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #4b5b73;
    border-radius: 6px;
    color: #eaf1fa;
    background: #16202d;
    outline: none;
}

.options-select:focus,
.options-input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.options-input:disabled {
    opacity: 0.55;
}

.options-preview {
    border: 1px solid #31405a;
    background: #111a26;
    border-radius: 8px;
    padding: 10px;
    line-height: 1.45;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    color: #9bd5ff;
}

.options-btn {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.options-btn-cancel {
    background: #2a3445;
    color: #c7d2e1;
    border-color: #405068;
}

.options-btn-cancel:hover {
    background: #333f52;
}

.options-btn-primary {
    background: #0f6dff;
    color: #ffffff;
    border-color: #2b7fff;
}

.options-btn-primary:hover {
    background: #287cff;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .options-window {
        width: calc(100vw - 20px);
    }
}
