.stg-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.stg-nav {
    flex: 0 0 160px;
    max-width: 100%;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 12px;
}

.stg-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stg-nav-item {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}

    .stg-nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .stg-nav-item.selected {
        background: #46586A;
        color: #ECE5D6;
    }

.stg-content {
    flex: 1 1 260px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.stg-empty {
    opacity: 0.7;
    font-size: 0.85rem;
}

.stg-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.stg-toolbar-end {
    justify-content: flex-end;
}

.stg-toolbar-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stg-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
}

    .stg-icon-btn:hover {
        background: #46586A;
    }

    .stg-icon-btn:active {
        background: #232F3B;
    }

    .stg-icon-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }

.stg-error {
    color: #e58a8a;
    font-size: 0.85rem;
}

.stg-category {
    margin-bottom: 20px;
}

.stg-category-title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8D9A8C;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 4px;
}

.stg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-bottom: 14px;
}

    .stg-row:last-child {
        margin-bottom: 0;
    }

.stg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 160px;
    min-width: 0;
}

.stg-field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.stg-field span {
    font-size: 0.9rem;
    min-height: 1.2em;
    overflow-wrap: anywhere;
}

.stg-field input,
.stg-field select {
    box-sizing: border-box;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ECE5D6;
    padding: 6px 8px;
    font-size: 0.85rem;
    font-family: inherit;
}

    .stg-field input:focus,
    .stg-field select:focus {
        outline: none;
        border-color: #8D9A8C;
    }

.stg-icon-btn-danger:hover {
    background: #b3352e;
}

.stg-icon-btn-danger:active {
    background: #8a2823;
}

.stg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .stg-table th {
        text-align: left;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        opacity: 0.7;
        padding: 6px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stg-table td {
        padding: 6px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        vertical-align: middle;
    }

    .stg-table tbody tr {
        cursor: pointer;
    }

        .stg-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.06);
        }

.stg-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.stg-modal {
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 20px;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

    .stg-modal p {
        margin: 0 0 16px;
        font-size: 0.9rem;
    }

.stg-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.stg-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}

    .stg-btn:hover {
        background: #46586A;
    }

    .stg-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }

.stg-btn-danger {
    background: #b3352e;
    color: #ECE5D6;
}

    .stg-btn-danger:hover {
        background: #8a2823;
    }
