.xmd-studio-shell {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--xmd-studio-surface, #fff);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.xmd-studio-shell__header h2 {
    margin: 0 0 8px;
}

.xmd-studio-shell__header p {
    margin: 0 0 20px;
    color: #5c6570;
}

.xmd-studio-loading,
.xmd-studio-empty,
.xmd-studio-error,
.xmd-studio-signin {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f6f7f8;
}

.xmd-studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.xmd-studio-stat {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fafbfc;
}

.xmd-studio-stat__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #69707a;
}

.xmd-studio-stat__value {
    display: block;
    margin-top: 6px;
    font-size: 26px;
    font-weight: 600;
    color: #111317;
}

.xmd-studio-section {
    margin-top: 20px;
}

.xmd-studio-section h3 {
    margin: 0 0 12px;
}

.xmd-studio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.xmd-studio-table th,
.xmd-studio-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.xmd-studio-form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.8fr) auto;
    gap: 10px;
    align-items: end;
}

.xmd-studio-form label {
    display: block;
    font-size: 13px;
    color: #4a525c;
}

.xmd-studio-form input,
.xmd-studio-form select,
.xmd-studio-action,
.xmd-studio-button {
    min-height: 40px;
}

.xmd-studio-form input,
.xmd-studio-form select {
    width: 100%;
    box-sizing: border-box;
}

.xmd-studio-message {
    margin-top: 12px;
    font-size: 13px;
    color: #4a525c;
}

.xmd-studio-button {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
}

.xmd-studio-button:hover {
    background: #f4f5f6;
}

.xmd-studio-button--primary,
.xmd-studio-action {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
    font: inherit;
    min-width: 108px;
    white-space: nowrap;
}

.xmd-studio-button--primary:hover,
.xmd-studio-action:hover {
    background: #1b46c4;
}

.xmd-studio-table td:last-child {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .xmd-studio-shell {
        padding: 18px;
    }

    .xmd-studio-form {
        grid-template-columns: 1fr;
    }
}