.header-actions { display: flex; align-items: center; justify-self: end; justify-content: flex-end; gap: 14px; min-width: 0; }
.header-account { display: flex; align-items: center; gap: 6px; }
.header-profile { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 650; }
.header-profile:hover { background: #ffffff08; }
.header-profile canvas { width: 28px; height: 28px; border-radius: 5px; image-rendering: pixelated; background: #29252e; box-shadow: 0 0 0 1px #ffffff12; }
.header-profile [data-account-nick] { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-profile .lucide { width: 13px; height: 13px; color: #918997; }
.header-admin, .header-logout { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; min-height: 36px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #a19aa8; font-size: 11px; }
.header-admin:hover, .header-logout:hover { color: #ffc184; background: #ffffff07; }
.header-admin .lucide, .header-logout .lucide { width: 15px; height: 15px; }
.header-logout { border-left: 1px solid #ffffff0e; border-radius: 0 7px 7px 0; padding-left: 10px; }
.downloads-section .start-heading h1 { font: 650 clamp(25px, 2.6vw, 32px)/1.35 var(--wordmark); letter-spacing: -.055em; margin-bottom: 12px; }
.downloads-section h1 span { color: var(--orange); }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.download-card { display: grid; grid-template-rows: 48px auto 1fr 44px auto; gap: 16px; text-align: center; justify-items: center; padding: 26px; border-radius: 12px; border: 1px solid #ffffff15; background: linear-gradient(140deg, #232229e8, #19181fe8); }
.platform-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #ffb775; background: #ffad610d; border: 1px solid #ffad6124; }
.platform-symbol .lucide { width: 24px; height: 24px; }
.download-card h3 { font: 650 20px/1.3 var(--body); }
.download-card > p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.download-card .primary-action, .download-card .secondary-action { min-width: 0; min-height: 44px; width: 100%; padding: 10px 14px; font-size: 13px; grid-row: 4; }
.download-card > .field-note { grid-row: 5; margin: 0; }
.download-pending { display: grid; place-items: center; grid-row: 4; min-height: 44px; width: 100%; border: 1px dashed #ffffff18; border-radius: 6px; color: #89828e; font-size: 12px; }
.download-help { display: flex; gap: 12px; align-items: center; padding: 18px 22px; margin-top: 22px; background: #ffffff03; border: 1px solid #ffffff0e; border-radius: 10px; }
.download-help > .lucide { color: var(--orange); }
.download-help p { flex: 1; font-size: 12px; color: var(--muted); }
.download-help .text-action { color: #ffc184; white-space: nowrap; }
.administration { max-width: 1440px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-heading h1 { font: 650 clamp(24px, 2.5vw, 32px)/1.35 var(--wordmark); letter-spacing: -.055em; }
.admin-heading h1 span { color: var(--orange); }
.admin-heading .eyebrow { margin-bottom: 8px; }
.admin-heading .secondary-action { min-width: 0; min-height: 40px; padding: 10px 14px; font-size: 12px; }
.admin-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-sidebar { display: flex; flex-direction: column; gap: 5px; position: sticky; top: 20px; padding: 12px; border: 1px solid #ffffff10; border-radius: 12px; background: #19191fe6; }
.admin-sidebar :is(button, a) { display: flex; align-items: center; gap: 10px; min-height: 42px; border: 1px solid transparent; border-radius: 7px; padding: 10px; background: transparent; color: #a7a0ae; font-size: 12px; font-weight: 600; text-align: left; }
.admin-sidebar :is(button, a):hover { color: #f3eee6; background: #ffffff04; }
.admin-sidebar [aria-selected="true"] { color: #ffc184; background: #ffad610c; border-color: #ffad6121; }
.admin-sidebar .lucide { width: 16px; height: 16px; }
.admin-sidebar a .lucide:last-child:not(:first-child) { width: 12px; margin-left: auto; }
.admin-workspace { min-width: 0; min-height: 480px; padding: 26px; border: 1px solid #ffffff12; border-radius: 12px; background: #19191ff0; }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-panel-heading h3 { font: 650 20px/1.4 var(--body); margin-bottom: 6px; }
.admin-panel-heading p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-workspace h4 { font: 650 14px/1.5 var(--body); }
.admin-workspace .text-action { color: #ffc184; }
.admin-workspace .form-message:not(:empty) { padding-block: 10px; }
.admin-workspace > #adminMessage:not(:empty) { margin-bottom: 14px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.admin-stat-grid article { display: grid; gap: 8px; padding: 18px; border-radius: 9px; border: 1px solid #ffffff12; background: #ffffff03; }
.admin-stat-grid span { font-size: 11px; color: var(--muted); }
.admin-stat-grid strong { font: 650 27px/1.3 var(--body); color: #ffbf82; }
.admin-activity { margin-top: 14px; }
.admin-activity-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #ffffff0c; font-size: 12px; }
.admin-activity-row p { color: #aaa3b0; overflow-wrap: anywhere; }
.admin-activity-row strong { color: #e7e0eb; font-weight: 600; }
.admin-activity-row time { font-size: 10px; color: #89818f; white-space: nowrap; }
.admin-workspace label { display: grid; gap: 7px; font-size: 12px; color: #c6bfcd; margin-bottom: 16px; }
.admin-workspace :is(input:not([type="checkbox"]), textarea, select) { display: block; width: 100%; min-width: 0; border: 1px solid #38323f; border-radius: 7px; padding: 11px 12px; min-height: 42px; background: #111116; color: #f0eaf4; font: 13px/1.6 var(--body); }
.admin-workspace :is(input, textarea, select):focus { border-color: #ffad6180; outline: 2px solid #ffad6114; outline-offset: 0; }
.admin-workspace input[type="file"] { font-size: 11px; }
.admin-workspace input::file-selector-button { padding: 5px 9px; margin-right: 10px; border: 1px solid #51404a; border-radius: 5px; background: #30262c; color: #ffd2a3; cursor: pointer; }
.admin-workspace textarea { resize: vertical; }
.admin-workspace .primary-action, .admin-workspace .secondary-action { min-height: 42px; min-width: 0; padding: 10px 15px; font-size: 12px; }
.admin-workspace .field-note { margin: 0 0 16px; font-size: 11px; color: #928a9b; line-height: 1.7; }
.admin-launcher-forms { display: grid; gap: 18px; margin-bottom: 20px; }
.admin-launcher-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 14px; align-items: end; border: 1px solid #ffffff10; border-radius: 10px; padding: 20px; }
.admin-launcher-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-launcher-title .field-note { margin: 0; overflow-wrap: anywhere; }
.admin-launcher-form label { margin: 0; }
.admin-launcher-form > :is(progress, .form-message) { grid-column: 1 / -1; }
.admin-launcher-form .form-message:empty { display: none; }
.admin-launcher-form progress { width: 100%; height: 6px; accent-color: #ffad61; }
.admin-search { display: flex; gap: 10px; margin-bottom: 20px; }
.admin-search input { flex: 1; }
.admin-workspace .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #ffffff0d; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.admin-table th { padding: 12px 14px; font-size: 10px; font-weight: 600; color: #a89bad; background: #ffffff03; }
.admin-table td { padding: 12px 14px; border-top: 1px solid #ffffff09; }
.admin-table tr:hover td { background: #ffffff02; }
.admin-table strong { font-weight: 650; }
.admin-table-meta { display: block; margin-top: 3px; font-size: 10px; color: #8b8294; }
.admin-table .text-action { white-space: nowrap; font-size: 11px; }
.admin-email { overflow-wrap: anywhere; }
.admin-table-date { white-space: nowrap; font-size: 10px; color: #a8a0b0; }
.admin-password-editor { padding: 20px; margin-top: 22px; border: 1px solid #ffad6126; border-radius: 9px; background: #ffad6103; }
.admin-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-kit-preview { display: block; max-height: 280px; max-width: 100%; width: auto; margin-bottom: 16px; border: 1px solid #ffffff13; border-radius: 8px; }
.admin-workspace .admin-checkbox { display: flex; align-items: center; gap: 9px; }
.admin-checkbox input { accent-color: #ffad61; }
@keyframes admin-panel-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { [data-admin-panel]:not([hidden]) { animation: admin-panel-arrive .22s ease-out; } }
@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .admin-shell { grid-template-columns: 185px minmax(0, 1fr); gap: 16px; }
  .admin-launcher-form { grid-template-columns: 1fr 1fr; }
  .admin-launcher-form > button { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-sidebar :is(button, a) { font-size: 11px; }
  .download-grid { grid-template-columns: 1fr; max-width: 480px; margin: auto; }
  .download-card { padding: 22px; gap: 13px; }
  .download-help { flex-wrap: wrap; }
  .download-help p { flex-basis: calc(100% - 40px); }
}
@media (max-width: 640px) {
  .header-actions { gap: 8px; }
  .header-actions:has(.header-account:not(.hidden)) { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; justify-content: space-between; flex-wrap: wrap; }
  .header-profile { padding-left: 0; }
  .header-profile [data-account-nick] { max-width: 88px; }
  .header-logout span { display: none; }
  .header-play { min-width: 0; }
  .admin-heading { align-items: flex-start; }
  .admin-heading > .secondary-action { font-size: 0; padding: 10px; }
  .admin-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .admin-workspace { padding: 18px; }
  .admin-stat-grid { gap: 7px; }
  .admin-stat-grid article { padding: 12px 9px; }
  .admin-stat-grid span { font-size: 9px; }
  .admin-stat-grid strong { font-size: 23px; }
  .admin-launcher-form, .admin-two-fields { grid-template-columns: 1fr; }
  .admin-activity-row { flex-direction: column; gap: 3px; }
  .admin-panel-heading { gap: 12px; }
  .admin-panel-heading h3 { font-size: 18px; }
  .admin-password-editor { padding: 16px; }
  .admin-search .secondary-action { padding-inline: 10px; }
}

/* Player editor: three independent forms */
.admin-editor-form { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid #ffffff12; }
.admin-editor-form:first-of-type { margin-top: 6px; }
.admin-editor-form .primary-action { justify-self: start; }
.admin-editor-form select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #35333d; border-radius: 5px;
  background: #111117; color: var(--text); font: inherit; font-size: 14px;
}

.admin-server-form { max-width: 520px; padding: 22px; border: 1px solid #ffb8731c; border-radius: 12px; background: linear-gradient(135deg, #ffb87306, #ffffff02); }
.admin-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.admin-owner-protected { color: #9e96a5; font-size: 11px; cursor: default; }
.admin-workspace .danger-action { color: #ed9893; }
.admin-workspace .danger-action:hover { color: #ffc3bb; border-color: #d9756b80; background-color: #b8433710; }
.admin-delete-section { margin-top: 12px; padding: 16px 18px; border: 1px solid #d9756b35; border-radius: 10px; background: #b8433705; }
.admin-delete-section > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; color: #ed9893; font-size: 13px; font-weight: 600; }
.admin-delete-section .admin-editor-form { border: 0; margin: 0; padding-bottom: 0; }
.admin-delete-section button.danger-action { background: #b8433718; border-color: #d9756b50; font-size: 12px; min-height: 44px; }
.admin-server-form .primary-action { margin-top: 4px; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 6px; width: fit-content; max-width: 100%; border: 1px solid #ffffff12; border-radius: 12px; background: #18171df0; }
.account-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; color: #a69dac; background: transparent; font-size: 13px; font-weight: 600; }
.account-tabs button[aria-selected="true"] { background: #ffb87310; border-color: #ffb87325; color: #ffd0a0; }
.account-tabs .lucide { width: 17px; height: 17px; }
[data-account-panel][hidden] { display: none; }
#account-info .profile-info { max-width: 760px; border-radius: 14px; background: #19191fee; }
.account-security-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; padding: 34px; border-radius: 14px; background: #19191fee; }
.security-emblem { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border: 1px solid #ffb87328; border-radius: 14px; background: #ffb8730a; color: #ffc184; }
.account-security-intro h3, .appearance-uploads h3 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.account-security-intro p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 320px; }
.account-security-card .primary-action { min-width: 0; font-size: 13px; min-height: 44px; }
.account-security-card .field-note { color: #a69dac; font-size: 12px; }
.appearance-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; border-radius: 14px; background: #19191fee; }
.appearance-stage { border: 1px solid #ffffff0b; border-radius: 12px; padding: 20px; background: radial-gradient(ellipse at 50% 65%, #ffb87309, #111117 75%); min-width: 0; }
.appearance-stage .skin-preview { height: 430px; }
.appearance-stage .skin-controls { justify-content: center; }
.appearance-uploads { min-width: 0; padding: 16px 6px; }
.appearance-uploads .field-note { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 26px; }
.appearance-uploads .file-control .secondary-action { width: 100%; min-width: 0; min-height: 44px; font-size: 13px; }
.appearance-uploads .skin-reset { justify-content: flex-start; }
.cape-upload-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff10; }
.appearance-hd-note { display: flex; gap: 12px; margin-top: 28px; padding: 16px; border: 1px solid #ffb87316; border-radius: 10px; background: #ffb87304; color: #a69dac; font-size: 12px; line-height: 1.8; }
.appearance-hd-note .lucide { flex: 0 0 18px; width: 18px; margin-top: 4px; color: #ffc184; }
.appearance-hd-note strong { color: #f0d4b5; font-weight: 600; }
.news-editor-links { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 760px) { .account-security-card, .appearance-layout { grid-template-columns: 1fr; gap: 24px; padding: 22px; } .appearance-stage .skin-preview { height: 380px; } }
@media (max-width: 480px) { .account-tabs { width: 100%; gap: 3px; } .account-tabs button { flex: 1; gap: 6px; padding: 11px 7px; font-size: 11px; } .account-tabs .lucide { width: 15px; } .appearance-layout { padding: 14px; } }
.admin-catalog-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.admin-catalog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .admin-catalog-fields { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 480px) { .admin-server-form { padding: 16px; } }
