.system-updates-section {
    background: #f6f8fb;
}

.system-updates-wrapper {
    max-width: 1260px;
}

.system-updates-hero,
.system-updates-publish,
.system-updates-list {
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.system-updates-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    margin-bottom: 14px;
}

.system-updates-hero h2,
.system-updates-publish h3,
.system-updates-list h3 {
    margin: 0;
    color: #111827;
}

.system-updates-hero p {
    margin: 8px 0 0;
    color: #64748b;
}

.system-updates-status {
    min-height: 20px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.system-updates-status[data-type="success"] {
    color: #047857;
}

.system-updates-status[data-type="error"] {
    color: #dc2626;
}

.system-updates-status[data-type="loading"] {
    color: #0369a1;
}

.system-updates-guard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7ed;
    color: #9f1239;
}

.system-updates-panel {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 14px;
}

.system-updates-publish,
.system-updates-list {
    padding: 20px;
}

.system-updates-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.system-updates-form label span {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.system-updates-form input,
.system-updates-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d5dde7;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    font: inherit;
}

.system-updates-form textarea {
    min-height: 150px;
    resize: vertical;
}

.system-updates-form input:focus,
.system-updates-form textarea:focus {
    outline: 0;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.system-updates-feed {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.system-update-card {
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

.system-update-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.system-update-title {
    margin: 0;
    color: #111827;
    font-size: 17px;
}

.system-update-version {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.system-update-meta {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.system-update-message {
    margin: 12px 0 14px;
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
}

.system-update-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.system-update-badge {
    color: #047857;
    font-size: 12px;
    font-weight: 800;
}

.system-update-output {
    display: none;
    max-height: 220px;
    margin-top: 12px;
    overflow: auto;
    padding: 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    white-space: pre-wrap;
}

.system-updates-empty {
    padding: 28px;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 980px) {
    .system-updates-hero,
    .system-updates-panel {
        display: block;
    }

    .system-updates-publish {
        margin-bottom: 14px;
    }
}
