:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --ink: #151922;
    --muted: #667085;
    --line: #d9e0ea;
    --brand: #e30613;
    --nav: #10151f;
}

* {
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.admin-sidebar {
    padding: 22px;
    background: var(--nav);
    color: #fff;
}

.admin-brand {
    display: block;
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 900;
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-sidebar nav a {
    padding: 11px 12px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 6px;
    font-weight: 800;
}

.admin-sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-account {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-account span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 900;
}

.admin-account button,
.login-form button {
    width: 100%;
    min-height: 42px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.admin-main {
    padding: 28px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-header p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-header h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
}

.admin-link {
    padding: 10px 12px;
    color: #fff;
    background: var(--brand);
    border-radius: 6px;
    font-weight: 900;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card,
.admin-panel {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat-card {
    display: grid;
    gap: 8px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-card strong {
    font-size: 36px;
    line-height: 1;
}

.admin-panel h2 {
    margin: 0 0 8px;
}

.admin-panel p {
    margin: 0;
    color: var(--muted);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.admin-health-list,
.admin-action-grid,
.admin-watch-list,
.admin-log-list {
    display: grid;
    gap: 10px;
}

.admin-health-item,
.admin-watch-list article {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.admin-health-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 4px 12px;
}

.admin-health-item strong {
    grid-row: span 2;
    align-self: center;
    border-radius: 999px;
    padding: 7px 10px;
    text-align: center;
    font-size: .72rem;
    text-transform: uppercase;
}

.admin-health-item.is-ok strong {
    background: #dcfce7;
    color: #166534;
}

.admin-health-item.is-warning strong {
    background: #fef3c7;
    color: #92400e;
}

.admin-health-item span,
.admin-watch-list strong {
    color: #0f172a;
    font-weight: 900;
}

.admin-health-item small,
.admin-watch-list span {
    color: var(--muted);
    font-size: .88rem;
}

.admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-action-grid a {
    justify-content: center;
    text-align: center;
}

.admin-watch-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: center;
}

.admin-watch-list article span {
    grid-column: 1;
}

.admin-watch-list article a {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--red);
    font-weight: 900;
    text-decoration: none;
}

.admin-log-list code {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    padding: 10px;
    background: #0f172a;
    color: #dbeafe;
    font-size: .78rem;
    white-space: nowrap;
}

.admin-help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.admin-help.is-warning {
    color: #9a5d00;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(180px, 240px) auto;
    gap: 12px;
    align-items: end;
}

.admin-filters label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-filters input,
.admin-filters select {
    min-height: 42px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    text-transform: none;
}

.admin-filters button {
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: var(--nav);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
}

.admin-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-table-head h2 {
    margin: 0;
}

.admin-table-head span {
    color: var(--muted);
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 10px;
    text-align: left;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.admin-table td span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.admin-table a {
    color: var(--brand);
    font-weight: 900;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.table-actions form {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-published {
    color: #126131;
    background: #dff7e8;
}

.status-draft {
    color: #7a4b00;
    background: #fff0c2;
}

.status-scheduled {
    color: #8a4a00;
    background: #ffe6ad;
}

.status-archived {
    color: #525866;
    background: #eef1f5;
}

.admin-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 900;
}

.admin-alert-error {
    color: #8d1219;
    background: #fff0f1;
    border: 1px solid #ffc5ca;
}

.admin-alert-success {
    color: #126131;
    background: #dff7e8;
    border: 1px solid #a7e8bd;
}

.article-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.article-form-main,
.article-form-side {
    display: grid;
    gap: 16px;
}

.game-steam-import-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 2px;
    padding: 14px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #f8fafc;
}

.game-steam-import-head strong,
.game-steam-import-head span {
    display: block;
}

.game-steam-import-head strong {
    color: #061225;
    font-weight: 900;
}

.game-steam-import-head span {
    margin-top: 3px;
    color: #66758d;
    font-size: 13px;
}

.admin-secondary-button {
    border: 0;
    border-radius: 7px;
    padding: 11px 14px;
    color: #fff;
    background: #111827;
    font-weight: 900;
    cursor: pointer;
}

.steam-import-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 13, 24, .72);
}

.steam-import-modal[hidden] {
    display: none;
}

.steam-import-panel {
    width: min(1080px, 100%);
    max-height: min(820px, 92vh);
    overflow: auto;
    padding: 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.steam-import-panel > header,
.steam-import-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.steam-import-panel > header {
    margin-bottom: 18px;
}

.steam-import-panel > header p {
    margin: 0 0 4px;
    color: #e60012;
    font-weight: 900;
    text-transform: uppercase;
}

.steam-import-panel > header h2 {
    margin: 0;
    font-size: 30px;
}

.steam-import-panel button,
.steam-import-search button {
    border: 0;
    border-radius: 7px;
    padding: 12px 16px;
    color: #fff;
    background: #e60012;
    font-weight: 900;
    cursor: pointer;
}

.steam-import-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ccd6e3;
    border-radius: 7px;
    padding: 13px 14px;
    font-weight: 800;
}

.media-steam-panel .media-steam-game-search {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.media-steam-panel .media-steam-game-search input[type="search"] {
    min-height: 42px;
    padding: 9px 10px;
    color: #111827;
    background: #fff;
    border: 1px solid #ccd6e3;
    border-radius: 7px;
    font: inherit;
    text-transform: none;
}

.media-steam-panel .steam-import-results {
    grid-template-columns: 1fr;
}

.steam-import-results {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
    gap: 20px;
    margin-top: 18px;
}

.steam-import-results h3 {
    margin: 0 0 12px;
}

.steam-import-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.steam-import-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 11px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #f8fafc;
}

.steam-import-field small {
    display: block;
    margin-top: 4px;
    color: #52627a;
    line-height: 1.35;
    word-break: break-word;
}

.steam-import-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.steam-import-image {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #f8fafc;
}

.steam-import-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    background: #101826;
}

.steam-import-image span {
    color: #37445a;
    font-size: 12px;
    font-weight: 900;
    word-break: break-word;
}

.admin-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nested-admin-section {
    display: grid;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.nested-admin-section h2 {
    margin: 0;
    font-size: 18px;
}

.article-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-form .admin-checkline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-transform: none;
}

.article-form .admin-checkline input {
    width: auto;
}

.tag-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tag-picker legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tag-picker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.tag-picker-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    color: var(--ink);
    background: #f4f6f9;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
}

.tag-picker-list input {
    width: auto;
    min-height: 0;
    padding: 0;
}

.cover-preview {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.cover-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef1f5;
}

.cover-preview figcaption {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.article-form input,
.article-form select,
.article-form textarea {
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    text-transform: none;
}

.article-form .admin-checkline input[type="checkbox"] {
    width: auto;
}

.article-form textarea {
    resize: vertical;
}

.code-textarea {
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.article-form button {
    min-height: 44px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.article-form .admin-secondary-button {
    background: #111827;
}

.admin-dark-button {
    width: fit-content;
    min-height: 40px !important;
    padding: 0 14px;
    background: var(--nav) !important;
}

.editor-entry {
    display: grid;
    gap: 10px;
}

.editor-entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

body.v2-editor-open {
    overflow: hidden;
}

.v2-editor-shell {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr);
    color: #f7f8fb;
    background: #0b1018;
}

.v2-editor-shell[hidden] {
    display: none;
}

.v2-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: #151b27;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-editor-topbar strong {
    color: #ffd400;
    font-size: 20px;
    font-weight: 950;
}

.v2-editor-topbar div {
    display: flex;
    gap: 8px;
}

.v2-editor-button,
.v2-editor-sidebar button,
.v2-editor-section button,
.v2-editor-block button,
.v2-editor-quick-add button {
    min-height: 34px;
    padding: 0 10px;
    color: #fff;
    background: #232b3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.v2-editor-button.primary {
    background: #e30613;
    border-color: #e30613;
}

.v2-editor-button.danger {
    color: #ffc9cd;
    background: #35161b;
}

.v2-editor-workspace {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    min-height: 0;
}

.v2-editor-sidebar,
.v2-editor-inspector {
    overflow: auto;
    padding: 16px;
    background: #101620;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-editor-inspector {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-editor-sidebar p,
.v2-editor-inspector p {
    margin: 0 0 10px;
    color: #ffd400;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.v2-editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-editor-sidebar hr {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-editor-canvas {
    overflow: auto;
    padding: 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(227, 6, 19, 0.12), transparent 34%),
        #0b1018;
}

.v2-editor-section {
    margin: 0 0 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.v2-editor-section.is-template-cascade,
.v2-editor-section.is-template-cascade-title {
    border-color: rgba(255, 212, 0, 0.32);
    box-shadow: inset 4px 0 0 rgba(255, 212, 0, 0.86);
}

.v2-editor-section > header,
.v2-editor-block > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.v2-editor-section > header strong,
.v2-editor-block > header span {
    font-weight: 950;
}

.v2-editor-section > header span {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.v2-editor-section > header div,
.v2-editor-block > header div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.v2-editor-columns {
    display: grid;
    gap: 14px;
}

.v2-editor-column {
    min-height: 150px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 212, 0, 0.38);
    border-radius: 8px;
}

.v2-editor-column.is-active-column {
    background: rgba(255, 212, 0, 0.055);
    border-style: solid;
    border-color: #ffd400;
    box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.2);
}

.v2-editor-column.is-drop-target {
    border-color: #e30613;
    box-shadow: inset 0 0 0 2px rgba(227, 6, 19, 0.28);
}

.v2-editor-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}

.v2-editor-column small {
    color: rgba(255, 255, 255, 0.58);
    font-weight: 900;
}

.v2-editor-column-head button {
    min-height: 28px;
    padding: 0 8px;
    color: #0b1018;
    background: #ffd400;
    border-color: #ffd400;
}

.v2-editor-empty-column {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 14px;
    color: rgba(255, 255, 255, 0.52);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.v2-editor-block {
    margin-bottom: 10px;
    padding: 12px;
    background: #151c28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: grab;
}

.v2-editor-block.is-active {
    border-color: #ffd400;
    box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.14);
}

.v2-editor-block-preview {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
}

.v2-editor-block-preview p {
    margin: 0 0 8px;
}

.v2-editor-block-preview img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

.v2-editor-inspector {
    display: grid;
    align-content: start;
    gap: 12px;
}

.v2-editor-inspector label {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.v2-editor-inspector input,
.v2-editor-inspector select,
.v2-editor-inspector textarea {
    width: 100%;
    padding: 9px 10px;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    font: inherit;
    text-transform: none;
}

.v2-editor-inspector span {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 800;
    text-transform: none;
}

.v2-editor-wide-action {
    min-height: 40px;
    color: #0b1018;
    background: #ffd400;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.v2-editor-quick-add {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.v2-module-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.64);
}

.v2-module-modal[hidden] {
    display: none;
}

.v2-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1003;
    display: grid;
    padding: 18px;
    background: rgba(0, 0, 0, 0.74);
}

.v2-preview-modal[hidden] {
    display: none;
}

.v2-composer-modal {
    position: fixed;
    inset: 0;
    z-index: 1004;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.v2-composer-modal[hidden] {
    display: none;
}

.v2-composer-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1180px, 100%);
    max-height: 92vh;
    overflow: hidden;
    color: #fff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.58);
}

.v2-composer-dialog > header,
.v2-composer-dialog > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #0b1018;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-composer-dialog > footer {
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
}

.v2-composer-dialog strong {
    display: block;
    font-size: 18px;
}

.v2-composer-dialog header span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.v2-composer-dialog button,
.v2-composer-dialog select,
.v2-composer-dialog input {
    font: inherit;
}

.v2-composer-dialog button {
    min-height: 40px;
    padding: 0 14px;
    color: #0b1018;
    background: #ffd400;
    border: 0;
    border-radius: 6px;
    font-weight: 950;
    cursor: pointer;
}

.v2-composer-dialog header button,
.v2-composer-dialog .admin-secondary-button {
    color: #fff;
    background: #1f2937;
}

.v2-composer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    min-height: 0;
    overflow: auto;
    padding: 18px;
}

.v2-composer-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
}

.v2-composer-panel label,
.v2-composer-images > p {
    display: grid;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.v2-composer-panel input,
.v2-composer-panel select {
    min-height: 42px;
    padding: 9px 10px;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
}

.v2-composer-rich-input {
    min-height: 520px;
    padding: 18px;
    overflow: auto;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.65;
    outline: none;
}

.v2-composer-rich-input:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.38);
}

.v2-composer-rich-input:focus {
    border-color: #ffd400;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}

.v2-composer-images > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.v2-composer-image-option {
    position: relative;
    overflow: hidden;
    display: grid !important;
    gap: 0 !important;
    min-height: 132px;
    color: #fff !important;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    cursor: pointer;
    text-transform: none !important;
}

.v2-composer-image-option input {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    min-height: 0;
}

.v2-composer-image-option img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    opacity: 0.72;
}

.v2-composer-image-option:has(input:checked) {
    border-color: #ffd400;
    box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.14);
}

.v2-composer-image-option:has(input:checked) img {
    opacity: 1;
}

.v2-composer-image-option span {
    overflow: hidden;
    padding: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-preview-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    min-height: 0;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.58);
}

.v2-preview-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #151b27;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-preview-dialog > header div {
    display: grid;
    gap: 2px;
}

.v2-preview-dialog strong {
    color: #ffd400;
    font-size: 18px;
}

.v2-preview-dialog span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 800;
}

.v2-preview-dialog button {
    min-height: 38px;
    padding: 0 12px;
    color: #fff;
    background: #e30613;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.v2-preview-dialog iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #0b1018;
    border: 0;
}

.v2-module-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1120px, 100%);
    max-height: min(820px, 92vh);
    overflow: hidden;
    color: #fff;
    background: #101620;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.v2-module-dialog > header,
.v2-module-dialog > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #151b27;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-module-dialog > footer {
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
}

.v2-module-dialog strong {
    color: #ffd400;
    font-size: 18px;
}

.v2-module-dialog button {
    min-height: 38px;
    padding: 0 12px;
    color: #fff;
    background: #232b3a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.v2-module-dialog button.primary {
    background: #e30613;
    border-color: #e30613;
}

.v2-module-body {
    overflow: auto;
    padding: 16px;
}

.v2-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.v2-rich-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.78);
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
}

.v2-rich-editor {
    min-height: 420px;
    padding: 20px;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.7;
    outline: none;
}

.v2-rich-editor:focus {
    border-color: #ffd400;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}

.v2-module-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.v2-module-field input,
.v2-module-field select,
.v2-module-field textarea {
    min-height: 42px;
    padding: 9px 10px;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font: inherit;
}

.v2-module-field textarea {
    min-height: 130px;
    resize: vertical;
    text-transform: none;
}

.v2-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.v2-module-checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
}

.v2-module-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    color: #fff;
    font-weight: 900;
}

.v2-module-check input {
    width: 18px;
    height: 18px;
}

.v2-image-modal-preview {
    display: grid;
    place-items: center;
    min-height: 260px;
    margin: 18px 0 0;
    padding: 14px;
    background: #0b1018;
    border: 1px dashed rgba(255, 212, 0, 0.32);
    border-radius: 8px;
}

.v2-image-modal-preview img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 6px;
}

.v2-badge-picker {
    display: grid;
    gap: 10px;
}

.v2-badge-picker > button:not(.v2-editor-wide-action) {
    min-height: 38px;
    color: #fff;
    background: #1b2332;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font-weight: 900;
}

.v2-badge-picker figure {
    display: grid;
    place-items: center;
    min-height: 180px;
    margin: 0;
    padding: 14px;
    background: #0b1018;
    border: 1px dashed rgba(255, 212, 0, 0.32);
    border-radius: 8px;
}

.v2-badge-picker img {
    max-height: 150px;
    object-fit: contain;
}

.v2-badge-picker figcaption {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.v2-conclusion-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
}

.v2-conclusion-preview img {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.v2-conclusion-preview span {
    color: rgba(255, 255, 255, 0.7);
}

.v2-section-options {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.v2-section-options p {
    margin: 0;
    color: #ffd400;
    font-weight: 900;
}

.v2-section-options label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-section-options select,
.v2-section-options input[type="color"],
.v2-section-options input[type="range"] {
    width: 100%;
}

.v2-separator-preview {
    padding: 22px 12px;
    background: #0b1018;
    border: 1px dashed rgba(255, 212, 0, 0.24);
    border-radius: 8px;
}

.v2-button-preview {
    padding: 22px 12px;
    background: #0b1018;
    border: 1px dashed rgba(255, 212, 0, 0.24);
    border-radius: 8px;
}

.v2-button-preview .content-module-button,
.v2-editor-block-preview .content-module-button {
    --button-color: #e30613;
    --button-neon: #d72cff;
    --button-glow: 3;
    display: flex;
    width: fit-content;
    margin: 0;
}

.v2-button-preview .content-module-button.button-center,
.v2-editor-block-preview .content-module-button.button-center {
    margin-right: auto;
    margin-left: auto;
}

.v2-button-preview .content-module-button.button-right,
.v2-editor-block-preview .content-module-button.button-right {
    margin-left: auto;
}

.v2-button-preview .content-module-button a,
.v2-editor-block-preview .content-module-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    color: #fff;
    background: var(--button-color);
    border: 1px solid var(--button-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.v2-button-preview .content-module-button.button-belgian a,
.v2-editor-block-preview .content-module-button.button-belgian a {
    color: #11151c;
    background: linear-gradient(90deg, #e30613 0 46%, #ffd500 46% 100%);
    border-color: rgba(255, 213, 0, 0.7);
}

.v2-button-preview .content-module-button.button-ghost a,
.v2-editor-block-preview .content-module-button.button-ghost a {
    color: var(--button-color);
    background: transparent;
}

.v2-button-preview .content-module-button.button-dark a,
.v2-editor-block-preview .content-module-button.button-dark a {
    background: #11151c;
    border-color: rgba(255, 255, 255, 0.18);
}

.v2-button-preview .content-module-button.button-terminal a,
.v2-editor-block-preview .content-module-button.button-terminal a {
    color: #35ff7f;
    background: #08120d;
    border-color: rgba(53, 255, 127, 0.55);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.v2-button-preview .content-module-button.button-terminal a::before,
.v2-editor-block-preview .content-module-button.button-terminal a::before {
    content: "> ";
}

.v2-button-preview .content-module-button.button-neon a,
.v2-editor-block-preview .content-module-button.button-neon a {
    color: #fff;
    background: transparent;
    border-color: var(--button-neon);
    box-shadow:
        0 0 calc(var(--button-glow) * 4px) var(--button-neon),
        inset 0 0 calc(var(--button-glow) * 3px) rgba(215, 44, 255, 0.3);
    text-shadow: 0 0 calc(var(--button-glow) * 4px) var(--button-neon);
}

.v2-button-preview .content-module-button.button-text-outline a,
.v2-editor-block-preview .content-module-button.button-text-outline a {
    color: transparent;
    -webkit-text-stroke: 0.8px var(--button-neon);
    text-shadow:
        0 0 calc(var(--button-glow) * 4px) var(--button-neon),
        0 0 calc(var(--button-glow) * 9px) var(--button-neon);
}

.v2-separator-preview .content-module-separator {
    --separator-width: 100%;
    --separator-color: #d72cff;
    --separator-glow: 3;
    display: flex;
    align-items: center;
    width: var(--separator-width);
    min-height: 22px;
    margin: 10px auto;
}

.v2-separator-preview .content-module-separator::before,
.v2-separator-preview .content-module-separator::after {
    content: "";
    display: block;
    height: 2px;
    min-width: 20px;
    flex: 1;
    background: rgba(255, 255, 255, 0.26);
}

.v2-separator-preview .content-module-separator span {
    display: none;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.v2-separator-preview .content-module-separator span:not(:empty) {
    display: inline-flex;
}

.v2-separator-preview .separator-left {
    margin-right: auto;
    margin-left: 0;
}

.v2-separator-preview .separator-center {
    margin-right: auto;
    margin-left: auto;
}

.v2-separator-preview .separator-right {
    margin-right: 0;
    margin-left: auto;
}

.v2-separator-preview .separator-belgian::before,
.v2-separator-preview .separator-belgian::after {
    background: linear-gradient(90deg, #e30613, #ffd500);
}

.v2-separator-preview .separator-soft::before,
.v2-separator-preview .separator-soft::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.v2-separator-preview .separator-double::before,
.v2-separator-preview .separator-double::after {
    height: 5px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) top / 100% 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) bottom / 100% 1px no-repeat;
}

.v2-separator-preview .separator-dotted::before,
.v2-separator-preview .separator-dotted::after {
    height: 0;
    background: transparent;
    border-top: 2px dotted rgba(255, 255, 255, 0.36);
}

.v2-separator-preview .separator-neon::before,
.v2-separator-preview .separator-neon::after {
    height: 3px;
    background: var(--separator-color);
    border-radius: 999px;
    box-shadow:
        0 0 calc(var(--separator-glow) * 5px) var(--separator-color),
        0 0 calc(var(--separator-glow) * 12px) var(--separator-color);
}

.v2-separator-preview .separator-neon span {
    color: var(--separator-color);
    text-shadow: 0 0 calc(var(--separator-glow) * 4px) var(--separator-color);
}

.v2-badge-picker-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.v2-badge-grid {
    align-content: start;
}

.v2-badge-item img {
    object-fit: contain;
    padding: 10px;
}

.v2-media-picker {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68);
}

.v2-media-picker-panel {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    width: min(1180px, 100%);
    max-height: 88vh;
    overflow: hidden;
    background: #101620;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

.v2-media-picker-panel > header,
.v2-media-picker-panel form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-media-picker-panel > header {
    justify-content: space-between;
    background: #151b27;
}

.v2-media-picker-panel input,
.v2-media-picker-panel select {
    min-height: 38px;
    min-width: 0;
    padding: 8px 10px;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font: inherit;
}

.v2-media-picker-panel input[type="search"] {
    flex: 1;
}

.v2-media-picker-panel button {
    min-height: 38px;
    padding: 0 12px;
    color: #fff;
    background: #232b3a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.v2-media-upload button,
.v2-media-picker-panel [data-media-more] {
    background: #e30613;
    border-color: #e30613;
}

.v2-media-paste-hint {
    margin: 0;
    padding: 8px 12px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
}

.v2-media-message {
    min-height: 20px;
    margin: 0;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 800;
}

.v2-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    overflow: auto;
    padding: 12px;
}

.v2-media-item {
    display: grid;
    gap: 7px;
    min-height: 0;
    padding: 8px !important;
    text-align: left;
    background: #151b27 !important;
}

.v2-media-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 5px;
    background: #0b1018;
}

.v2-media-item span,
.v2-media-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-media-item small {
    color: rgba(255, 212, 0, 0.75);
    font-size: 11px;
}

.v2-media-item.is-selected {
    outline: 3px solid #ffd500;
    border-color: #ffd500 !important;
}

.v2-media-selection {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 12px 12px;
    padding: 12px;
    border: 1px solid rgba(255, 213, 0, 0.45);
    border-radius: 8px;
    background: rgba(13, 18, 30, 0.96);
}

.v2-gallery-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.v2-gallery-admin-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
}

.v2-gallery-admin-item img {
    width: 120px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    background: #0f172a;
}

.v2-gallery-admin-item input {
    width: 100%;
    margin-top: 8px;
}

.v2-gallery-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-width: 360px;
}

.v2-gallery-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.v2-media-picker-panel [data-media-more] {
    width: fit-content;
    margin: 0 12px 12px auto;
}

@media (max-width: 760px) {
    .v2-module-grid {
        grid-template-columns: 1fr;
    }

    .v2-media-picker-panel form {
        align-items: stretch;
        flex-direction: column;
    }

    .v2-gallery-admin-item {
        grid-template-columns: 1fr;
    }

    .v2-gallery-admin-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 1100px) {
    .v2-editor-workspace {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .v2-editor-inspector {
        grid-column: 1 / -1;
        max-height: 34vh;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.admin-secondary-link {
    display: inline-flex;
    justify-content: center;
    padding: 11px 12px;
    color: var(--brand);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 900;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.compact-admin-form {
    display: grid;
    gap: 14px;
}

.compact-admin-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.compact-admin-form input,
.compact-admin-form select,
.compact-admin-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    text-transform: none;
}

.compact-admin-form textarea {
    min-height: 96px;
    resize: vertical;
}

.compact-admin-form button,
.text-danger-button {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.compact-admin-form button {
    color: #fff;
    background: var(--brand);
}

.text-danger-button {
    color: #8d1219;
    background: #fff0f1;
}

.inline-danger-button {
    min-height: auto;
    padding: 0;
    color: #8d1219;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.color-chip {
    display: inline-block !important;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0 !important;
    vertical-align: middle;
    background: var(--chip-color);
    border: 1px solid var(--line);
    border-radius: 50%;
}

.seo-stat-grid {
    margin-bottom: 18px;
}

.seo-link-grid,
.seo-alert-summary,
.seo-compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-link-grid a,
.seo-alert-summary span,
.seo-compact-list a,
.seo-issue-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    color: var(--ink);
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
}

.seo-link-grid a {
    color: var(--brand);
}

.seo-issue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seo-issue-list span {
    color: #8d1219;
    background: #fff0f1;
    border-color: #ffc5ca;
}

.seo-compact-list a span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
}

.media-upload-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.8fr) minmax(240px, 0.9fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.media-upload-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.media-upload-form input,
.media-upload-form select {
    min-height: 42px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    text-transform: none;
}

.media-upload-form button {
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.media-drop-zone {
    position: relative;
    display: grid;
    min-height: 94px;
    place-items: center;
    padding: 16px;
    color: var(--muted);
    background: #f8fafc;
    border: 2px dashed var(--line);
    border-radius: 8px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.media-drop-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.media-drop-zone label {
    display: grid;
    gap: 5px;
    text-align: center;
    pointer-events: none;
}

.media-drop-zone strong {
    color: var(--ink);
    font-size: 15px;
}

.media-drop-zone.is-drag-over,
.media-drop-zone.has-files {
    background: #fff6d5;
    border-color: #ffd400;
    transform: translateY(-1px);
}

.media-type-choice {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
}

.media-type-choice legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.media-type-choice div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.media-type-choice label {
    display: block;
}

.media-type-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.media-type-choice span {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 8px 10px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.media-type-choice input:checked + span {
    color: #111827;
    background: #ffd400;
    border-color: #ffd400;
}

.media-upload-progress {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.media-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 260px) minmax(52px, auto);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.media-progress-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-progress-row progress {
    width: 100%;
    height: 10px;
}

.media-progress-row.is-done strong {
    color: #14833b;
}

.media-progress-row.is-error strong {
    color: var(--brand);
}

.dossier-admin-panel {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.chapter-admin-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chapter-admin-form-new {
    border-color: rgba(227, 6, 19, 0.3);
    box-shadow: inset 4px 0 0 var(--brand);
}

.chapter-admin-form h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.chapter-admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.chapter-admin-form input,
.chapter-admin-form select,
.chapter-admin-form textarea {
    min-height: 42px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    text-transform: none;
}

.chapter-admin-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.chapter-admin-grid label:last-child {
    grid-column: span 2;
}

.chapter-admin-form button {
    justify-self: start;
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.chapter-admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chapter-admin-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
}

.chapter-admin-card summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.chapter-admin-card .chapter-admin-form,
.chapter-admin-card form:last-child {
    margin: 0 16px 16px;
}

.chapter-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.media-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.media-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #eef1f5;
}

.media-card div {
    display: grid;
    gap: 5px;
    padding: 10px;
}

.media-card strong,
.media-card span,
.media-card code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.media-card code {
    color: var(--muted);
    font-size: 11px;
}

.admin-auth-page {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(125deg, rgba(16, 21, 31, 0.96), rgba(120, 21, 47, 0.92)),
        var(--nav);
}

.login-shell {
    width: min(100%, 420px);
}

.login-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.login-kicker {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-panel h1 {
    margin: 0 0 22px;
    font-size: 34px;
    line-height: 1;
}

.login-error {
    margin: 0 0 16px;
    padding: 12px;
    color: #8d1219;
    background: #fff0f1;
    border: 1px solid #ffc5ca;
    border-radius: 6px;
    font-weight: 800;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.login-form input:focus {
    outline: 3px solid rgba(227, 6, 19, 0.18);
    border-color: var(--brand);
}

@media (max-width: 860px) {
    body {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .article-form {
        grid-template-columns: 1fr;
    }

    .admin-inline-fields {
        grid-template-columns: 1fr;
    }

    .admin-two-col {
        grid-template-columns: 1fr;
    }

    .media-upload-form {
        grid-template-columns: 1fr;
    }
}
/* Social sharing */
.social-admin-panel {
    margin-bottom: 22px;
}

.social-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.social-compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.social-compose-grid h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
}

.social-article-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 6px;
}

.social-article-option,
.social-network-list label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #d7e0ee;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.social-article-option strong {
    display: block;
    color: #0f172a;
    line-height: 1.25;
}

.social-article-option small,
.social-network-list small {
    display: block;
    color: #64748b;
    margin-top: 5px;
}

.social-compose-grid textarea {
    width: 100%;
    min-height: 170px;
    border: 1px solid #d7e0ee;
    border-radius: 8px;
    padding: 13px 14px;
    resize: vertical;
}

.social-network-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.social-submit-button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #e30613;
    color: #fff;
    font-weight: 900;
    padding: 14px 18px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .social-search-form,
    .social-compose-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 860px) {
    .admin-dashboard-grid,
    .admin-action-grid,
    .admin-watch-list article {
        grid-template-columns: 1fr;
    }

    .admin-watch-list article a {
        grid-column: 1;
        grid-row: auto;
    }

    .admin-health-item {
        grid-template-columns: 1fr;
    }

    .admin-health-item strong {
        grid-row: auto;
        justify-self: start;
    }

    .game-steam-import-head,
    .steam-import-panel > header,
    .steam-import-search {
        align-items: stretch;
        flex-direction: column;
    }

    .steam-import-panel {
        max-height: 92vh;
        padding: 16px;
    }

    .steam-import-results {
        grid-template-columns: 1fr;
    }

    .steam-import-search input,
    .steam-import-search button,
    .game-steam-import-head .admin-secondary-button {
        width: 100%;
    }
}
