.rw-os-route-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    min-height: 42px;
    border: 1px solid #24766b;
    border-radius: 8px;
    background: #128c7a;
    color: #061411;
    font: 650 14px/1.2 Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 0 16px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.rw-os-modal[hidden] {
    display: none;
}

.rw-os-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 10, 0.66);
    padding: 20px;
}

.rw-os-dialog {
    width: min(1040px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid #343941;
    border-radius: 8px;
    background: #17191d;
    color: #f2f4f7;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
    overflow: hidden;
    font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rw-os-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    border-bottom: 1px solid #343941;
    padding: 0 18px;
}

.rw-os-title {
    display: grid;
    gap: 2px;
}

.rw-os-title strong {
    font-size: 16px;
    font-weight: 700;
}

.rw-os-title span {
    color: #9aa4af;
    font-size: 12px;
}

.rw-os-close,
.rw-os-btn {
    min-height: 38px;
    border: 1px solid #343941;
    border-radius: 8px;
    background: #202328;
    color: #f2f4f7;
    padding: 0 13px;
    cursor: pointer;
    font: inherit;
}

.rw-os-close {
    width: 38px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

.rw-os-btn.primary {
    border-color: #16a78a;
    background: #16a78a;
    color: #061411;
    font-weight: 700;
}

.rw-os-btn.ghost {
    background: transparent;
}

.rw-os-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
}

.rw-os-list,
.rw-os-editor {
    min-height: 0;
    padding: 16px;
}

.rw-os-list {
    border-right: 1px solid #343941;
}

.rw-os-search {
    width: 100%;
    min-height: 40px;
    border: 1px solid #343941;
    border-radius: 8px;
    background: #111316;
    color: #f2f4f7;
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.rw-os-search:focus,
.rw-os-btn:focus,
.rw-os-close:focus,
.rw-os-route-button:focus {
    border-color: #20c7a5;
    box-shadow: 0 0 0 3px rgba(32, 199, 165, 0.25);
    outline: none;
}

.rw-os-users {
    height: calc(100% - 52px);
    margin-top: 12px;
    overflow: auto;
    border: 1px solid #2b3037;
    border-radius: 8px;
}

.rw-os-user {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #2b3037;
    background: transparent;
    color: #f2f4f7;
    padding: 11px 12px;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.rw-os-user:hover,
.rw-os-user.active {
    background: rgba(32, 199, 165, 0.11);
}

.rw-os-user:last-child {
    border-bottom: 0;
}

.rw-os-user-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.rw-os-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.rw-os-user-sub {
    color: #9aa4af;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.rw-os-badge {
    border-radius: 999px;
    background: #27313a;
    color: #b9c3cd;
    padding: 4px 9px;
    font-size: 12px;
    white-space: nowrap;
}

.rw-os-editor {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 14px;
}

.rw-os-selected {
    display: grid;
    gap: 4px;
}

.rw-os-selected strong {
    font-size: 18px;
}

.rw-os-selected code,
.rw-os-url code {
    color: #a7ecdf;
    font-family: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.rw-os-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    border: 0;
    padding: 0;
    margin: 0;
}

.rw-os-option {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #343941;
    border-radius: 8px;
    background: #111316;
    padding: 0 11px;
    cursor: pointer;
    user-select: none;
}

.rw-os-option:has(input:checked) {
    border-color: #20c7a5;
    background: rgba(32, 199, 165, 0.12);
}

.rw-os-option input {
    width: 16px;
    height: 16px;
    accent-color: #20c7a5;
}

.rw-os-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rw-os-url {
    display: grid;
    gap: 7px;
    border-top: 1px solid #343941;
    padding-top: 13px;
}

.rw-os-muted,
.rw-os-message {
    color: #9aa4af;
    font-size: 13px;
}

.rw-os-message.ok {
    color: #76e0c9;
}

.rw-os-message.error {
    color: #ff9f9f;
}

@media (max-width: 820px) {
    .rw-os-body {
        grid-template-columns: 1fr;
    }

    .rw-os-list {
        border-right: 0;
        border-bottom: 1px solid #343941;
    }

    .rw-os-users {
        max-height: 240px;
    }

    .rw-os-options {
        grid-template-columns: 1fr;
    }
}
