.leaderboard-admin { width: min(1280px, 100%); margin: auto; padding: 48px 28px 80px; }
.admin-header, .section-heading, .history-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-header { align-items: flex-start; margin-bottom: 30px; }
.admin-header .wordmark { margin-bottom: 20px; }
.admin-header p { margin: 10px 0 0; font-size: 14px; }
.admin-columns { display: grid; grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); gap: 24px; }
.admin-section { min-width: 0; padding: 24px; border: 1px solid #e6e9ed; border-radius: 16px; background: #fff; margin-bottom: 20px; }
.admin-section h2 { font-size: 17px; font-weight: 650; margin: 0 0 14px; }
.admin-section p { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.current-summary { font-size: 16px !important; font-weight: 600; margin: 0; }
.section-heading h2 { margin-bottom: 0; }
.section-heading { margin-bottom: 16px; }
.import-form { display: grid; gap: 16px; margin-top: 20px; font-size: 13px; }
input[type=file] { display: block; width: 100%; min-height: 44px; color: #62686f; font-size: 12px; }
input[type=file]::file-selector-button { padding: 10px 12px; border: 1px solid #dce0e4; border-radius: 8px; background: #fff; margin-right: 10px; cursor: pointer; }
.import-form .button-submit, .activation .button-submit { margin: 0; background: #2166d4; }
.import-form .button-submit:hover:not(:disabled), .activation .button-submit:hover:not(:disabled) { background: #1854b4; }
.inline-button { display: block; width: auto; margin-top: 16px; }
.history-item, .event-item { padding: 16px 0; border-top: 1px solid #ecedec; }
.history-item:first-child, .event-item:first-child { border-top: 0; padding-top: 2px; }
.history-item p, .event-item p { margin: 5px 0 0; }
.history-item[data-selected=true] { border-left: 2px solid #2166d4; padding-left: 12px; }
.batch-title { font-size: 14px; font-weight: 600; }
.batch-status { color: #2166d4; margin-left: 8px; font-size: 12px; font-weight: 500; }
.history-actions { justify-content: flex-start; margin-top: 10px; }
.history-actions button, .history-actions a { font-size: 12px; }
.preview-section { align-self: start; }
.preview-meta { padding-bottom: 18px; border-bottom: 1px solid #ecedec; }
.preview-meta p { margin: 6px 0; }
.diff-board { padding: 18px 0 4px; }
.diff-board h3 { font-size: 15px; margin: 0; }
.diff-counts { display: flex; gap: 12px; flex-wrap: wrap; color: #62686f; font-size: 12px; margin: 8px 0 14px; }
.diff-table-wrap { overflow: auto; max-height: 440px; border: 1px solid #ecedec; border-radius: 8px; margin-top: 12px; }
.diff-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; line-height: 1.7; }
.diff-table th, .diff-table td { padding: 10px 12px; border-bottom: 1px solid #ecedec; vertical-align: top; min-width: 74px; overflow-wrap: anywhere; }
.diff-table th { background: #f6f8fb; font-weight: 500; color: #62686f; }
.diff-table tr:last-child td { border: 0; }
.diff-table td:nth-child(2) { min-width: 140px; }
.diff-values { white-space: pre-wrap; min-width: 200px; }
.diff-label-added { color: #2166d4; }
.diff-label-removed { color: #a13c35; }
.activation { padding-top: 20px; border-top: 1px solid #ecedec; margin-top: 20px; }
.activation p { margin: 0 0 14px; }
.activation[data-rollback=true] .button-submit { background: #151717; }
.leaderboard-admin :is(button,a,input,summary) { transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.leaderboard-admin button:hover:not(:disabled), input[type=file]::file-selector-button:hover { transform: translateY(-1px); }
.leaderboard-admin button:active:not(:disabled) { transform: scale(.98); }
.leaderboard-admin > *, .admin-section, .history-item, .event-item, .diff-board { animation: admin-appear .22s ease both; }
@keyframes admin-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 850px) { .admin-columns { grid-template-columns: minmax(0, 1fr); } .leaderboard-admin { padding: 28px 16px 50px; } .admin-section { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .leaderboard-admin *, .leaderboard-admin *::before, .leaderboard-admin *::after { animation: none !important; transition: none !important; } }
