.updates-hero {
    max-width: 1120px;
    margin: 22px auto 0;
    padding: 30px 28px;
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    background: radial-gradient(circle at 84% -12%, rgba(255, 179, 0, 0.2), transparent 44%), linear-gradient(180deg, rgba(255, 179, 0, 0.07), rgba(9, 9, 9, 0.92));
}

.updates-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 34px);
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1.2;
}

.updates-subtitle {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 64ch;
}

.updates-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px 66px;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.update-card {
    display: block;
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 179, 0, 0.04), rgba(8, 8, 8, 0.94));
    padding: 18px;
    min-height: 170px;
}

.update-card-linkable {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-card-linkable:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 179, 0, 0.44);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.update-card-top,
.update-header-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: 999px;
    background: rgba(255, 179, 0, 0.11);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    letter-spacing: 0.01em;
}

.update-admin-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(192, 201, 255, 0.28);
    border-radius: 999px;
    background: rgba(192, 201, 255, 0.1);
    color: #d7ddff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
}

.update-card-create {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 170px;
    color: inherit;
    text-decoration: none;
    border-style: dashed;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-card-create:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 179, 0, 0.44);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.update-create-plus {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    color: var(--gold);
}

.update-create-label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.update-card-draft {
    border-color: rgba(192, 201, 255, 0.2);
    background: linear-gradient(180deg, rgba(192, 201, 255, 0.05), rgba(8, 8, 8, 0.94));
}

.update-card-title {
    margin-top: 13px;
    font-size: 21px;
    line-height: 1.25;
    color: var(--text-primary);
}

.update-card-text {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.update-card-cta,
.update-card-muted {
    display: inline-block;
    margin-top: 13px;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.update-card-cta {
    color: var(--gold-light);
    font-weight: 600;
}

.update-card-muted {
    color: var(--text-muted);
}

.updates-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.updates-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.updates-admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.updates-inline-form {
    margin: 0;
}

.updates-admin-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.98), rgba(10, 10, 10, 0.96));
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.updates-admin-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 179, 0, 0.38);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.updates-admin-button-primary {
    color: var(--gold);
}

.updates-admin-button-danger {
    color: #ffb4b4;
    border-color: rgba(255, 129, 129, 0.2);
}

.updates-notice {
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    background: rgba(255, 179, 0, 0.05);
}

.updates-notice-success {
    border-color: rgba(255, 179, 0, 0.3);
    color: var(--text-primary);
}

.update-article {
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 179, 0, 0.03), rgba(6, 6, 6, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.update-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at 92% -22%, rgba(255, 179, 0, 0.15), transparent 48%);
}

.update-article-title {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(24px, 3.1vw, 36px);
    letter-spacing: 1px;
    line-height: 1.2;
    color: var(--gold);
}

.update-date {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.update-summary {
    margin-top: 12px;
    max-width: 72ch;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
}

.update-stream {
    padding: 24px 28px 34px;
}

.update-block {
    margin-bottom: 14px;
}

.update-inline-heading {
    margin: 26px 0 12px;
    color: var(--gold-light);
    font-size: clamp(18px, 2.2vw, 27px);
    line-height: 1.25;
}

.update-block h3.update-inline-heading {
    font-size: clamp(17px, 1.95vw, 22px);
}

.update-block h4.update-inline-heading {
    font-size: 17px;
}

.update-rich-content h2,
.update-rich-content h3,
.update-rich-content h4 {
    margin: 1.2em 0 0.5em;
    color: var(--gold-light);
    line-height: 1.25;
}

.update-rich-content p,
.update-rich-content ul,
.update-rich-content ol,
.update-rich-content blockquote,
.update-rich-content pre {
    margin: 0 0 1em;
}

.update-rich-content ul,
.update-rich-content ol {
    padding-left: 1.4em;
}

.update-rich-content blockquote {
    padding-left: 1em;
    border-left: 3px solid rgba(255, 179, 0, 0.35);
    color: var(--text-secondary);
}

.update-rich-content hr {
    border: none;
    border-top: 1px solid rgba(255, 179, 0, 0.14);
    margin: 1.5em 0;
}

.update-rich-content img {
    display: block;
    width: min(100%, 820px);
    margin: 14px auto 22px;
    border: 1px solid rgba(255, 179, 0, 0.22);
    border-radius: 14px;
    background: #080808;
}

.update-rich-content figure.updates-inline-media {
    display: block;
    width: min(100%, 520px);
    max-width: 100%;
    overflow: hidden;
    margin: 14px 0 22px;
}

.update-rich-content figure.updates-inline-media.align-left {
    float: left;
    margin: 10px 22px 18px 0;
}

.update-rich-content figure.updates-inline-media.align-right {
    float: right;
    margin: 10px 0 18px 22px;
}

.update-rich-content figure.updates-inline-media.align-center {
    margin-left: auto;
    margin-right: auto;
}

.update-rich-content figure.updates-inline-media img {
    display: block;
    margin: 0;
    max-width: none;
}

.update-rich-content::after,
.updates-rich-editor::after {
    content: '';
    display: block;
    clear: both;
}

.update-paragraph {
    margin: 0 0 12px;
    max-width: 80ch;
    color: var(--text-primary);
    font-size: 15.5px;
    line-height: 1.72;
}

.update-list {
    margin: 0 0 14px 20px;
    max-width: 80ch;
    color: var(--text-primary);
    font-size: 15.5px;
    line-height: 1.64;
}

.update-list li {
    margin-bottom: 7px;
}

.update-paragraph code,
.update-list code,
.update-rich-content code,
.update-rich-content pre {
    background: rgba(255, 179, 0, 0.14);
    border: 1px solid rgba(255, 179, 0, 0.22);
    border-radius: 6px;
    color: var(--gold-light);
}

.update-paragraph code,
.update-list code,
.update-rich-content code {
    padding: 0 5px;
    font-size: 0.94em;
}

.update-rich-content pre {
    padding: 0.9em 1em;
    overflow-x: auto;
}

.update-media {
    width: min(100%, 780px);
    margin: 10px auto 22px;
}

.update-media a {
    display: block;
    border: 1px solid rgba(255, 179, 0, 0.25);
    border-radius: 12px;
    overflow: hidden;
    background: #080808;
}

.update-media img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #060606;
}

.update-file {
    margin: 10px 0 18px;
    font-size: 14px;
}

.updates-editor-page {
    display: block;
}

.updates-editor-panel {
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 179, 0, 0.04), rgba(6, 6, 6, 0.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.updates-editor-head {
    display: grid;
    gap: 12px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at 92% -22%, rgba(255, 179, 0, 0.12), transparent 48%);
}

.updates-editor-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.45;
    color: var(--gold);
}

.updates-editor-copy {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-width: 60ch;
}

.updates-editor-form {
    display: grid;
    gap: 20px;
    padding: 24px 28px 28px;
}

.updates-field-grid {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 14px;
}

.updates-field-group {
    display: grid;
    gap: 8px;
}

.updates-field-label {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.updates-text-input,
.updates-text-area {
    width: 100%;
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(10, 10, 10, 0.98));
    color: var(--text-primary);
    padding: 14px 16px;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
}

.updates-text-input {
    min-height: 50px;
}

.updates-text-area-summary {
    min-height: 120px;
}

.updates-text-input:focus,
.updates-text-area:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.12);
}

.updates-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.92);
}

.updates-toolbar-button {
    appearance: none;
    border: 1px solid rgba(255, 179, 0, 0.16);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.96));
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.updates-toolbar-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 179, 0, 0.36);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.updates-editor-canvas {
    border: 1px solid rgba(255, 179, 0, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 179, 0, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 179, 0, 0.03), rgba(8, 8, 8, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 18px 36px rgba(0, 0, 0, 0.24);
}

.updates-editor-canvas-hint {
    padding: 14px 18px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.updates-rich-editor {
    min-height: 620px;
    padding: 28px 30px 34px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.75;
    outline: none;
}

.updates-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

.updates-rich-editor h2,
.updates-rich-editor h3,
.updates-rich-editor h4 {
    margin: 1.3em 0 0.5em;
    color: var(--gold-light);
    line-height: 1.25;
}

.updates-rich-editor h2 {
    font-size: 30px;
}

.updates-rich-editor h3 {
    font-size: 24px;
}

.updates-rich-editor h4 {
    font-size: 20px;
}

.updates-rich-editor p,
.updates-rich-editor ul,
.updates-rich-editor ol,
.updates-rich-editor blockquote,
.updates-rich-editor pre {
    margin: 0 0 1em;
}

.updates-rich-editor ul,
.updates-rich-editor ol {
    padding-left: 1.4em;
}

.updates-rich-editor blockquote {
    padding-left: 1em;
    border-left: 3px solid rgba(255, 179, 0, 0.45);
    color: var(--text-secondary);
}

.updates-rich-editor hr {
    border: none;
    border-top: 1px solid rgba(255, 179, 0, 0.18);
    margin: 1.5em 0;
}

.updates-rich-editor code,
.updates-rich-editor pre {
    background: rgba(255, 179, 0, 0.12);
    border: 1px solid rgba(255, 179, 0, 0.18);
    border-radius: 6px;
}

.updates-rich-editor code {
    padding: 0.1em 0.35em;
}

.updates-rich-editor pre {
    padding: 0.9em 1em;
    overflow-x: auto;
}

.updates-rich-editor a {
    color: var(--gold-light);
}

.updates-rich-editor figure.updates-inline-media {
    position: relative;
    display: block;
    width: 420px;
    max-width: 100%;
    margin: 14px 0 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 179, 0, 0.2);
    border-radius: 14px;
    background: #080808;
    cursor: move;
}

.updates-rich-editor figure.updates-inline-media.align-left {
    float: left;
    margin: 10px 22px 18px 0;
}

.updates-rich-editor figure.updates-inline-media.align-right {
    float: right;
    margin: 10px 0 18px 22px;
}

.updates-rich-editor figure.updates-inline-media.align-center {
    margin-left: auto;
    margin-right: auto;
}

.updates-rich-editor figure.updates-inline-media img {
    display: block;
    margin: 0;
    max-width: none;
    border: none;
    border-radius: 0;
    background: #080808;
}

.updates-rich-editor figure.updates-inline-media.updates-editor-media-selected {
    outline: 2px solid rgba(192, 201, 255, 0.72);
    outline-offset: 4px;
}

.updates-editor-media-handle {
    position: absolute;
    z-index: 3;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: #c0c9ff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.updates-editor-media-handle.handle-nw,
.updates-editor-media-handle.handle-ne,
.updates-editor-media-handle.handle-sw,
.updates-editor-media-handle.handle-se {
    cursor: nwse-resize;
}

.updates-editor-media-handle.handle-n,
.updates-editor-media-handle.handle-s {
    cursor: ns-resize;
}

.updates-editor-media-handle.handle-e,
.updates-editor-media-handle.handle-w {
    cursor: ew-resize;
}

.updates-editor-media-handle.handle-nw {
    top: 4px;
    left: 4px;
}

.updates-editor-media-handle.handle-n {
    top: 4px;
    left: calc(50% - 7px);
}

.updates-editor-media-handle.handle-ne {
    top: 4px;
    right: 4px;
}

.updates-editor-media-handle.handle-e {
    top: calc(50% - 7px);
    right: 4px;
}

.updates-editor-media-handle.handle-se {
    right: 4px;
    bottom: 4px;
}

.updates-editor-media-handle.handle-s {
    bottom: 4px;
    left: calc(50% - 7px);
}

.updates-editor-media-handle.handle-sw {
    bottom: 4px;
    left: 4px;
}

.updates-editor-media-handle.handle-w {
    top: calc(50% - 7px);
    left: 4px;
}

.updates-hidden-input {
    display: none;
}

.updates-editor-meta {
    display: grid;
    gap: 16px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(255, 179, 0, 0.1);
    border-radius: 16px;
    background: rgba(255, 179, 0, 0.03);
}

.updates-editor-meta-title {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.updates-editor-hint {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.updates-editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.updates-editor-form-panel .updates-admin-button,
.updates-editor-form-panel .updates-admin-button-primary {
    min-width: 160px;
    justify-content: center;
}

body.updates-editor-dragging {
    user-select: none;
}

@media (max-width: 900px) {
    .updates-hero {
        margin-top: 14px;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .updates-shell {
        padding: 14px 18px 48px;
    }

    .update-header {
        padding: 18px 16px 14px;
    }

    .update-stream {
        padding: 14px 16px 20px;
    }

    .updates-editor-head,
    .updates-editor-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .updates-field-grid {
        grid-template-columns: 1fr;
    }

    .updates-rich-editor {
        min-height: 480px;
        padding: 20px 18px 24px;
    }

    .update-paragraph,
    .update-list {
        font-size: 15px;
    }

    .update-media img {
        max-height: 320px;
    }
}
