.admin-route { background: var(--fsy-canvas); color: var(--fsy-text); }
.admin-route [hidden] { display: none !important; }
.admin-route .site-header { position: relative; z-index: 5; }
.admin-main { min-height: calc(100vh - 68px); outline: none; }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); width: min(1440px, 100%); min-height: calc(100vh - 68px); margin: 0 auto; }
.admin-sidebar { padding: 34px 18px; border-right: 1px solid var(--fsy-border); background: #0c1128; }
.admin-context { margin: 0 12px 20px; color: var(--fsy-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: var(--fsy-muted); text-decoration: none; }
.admin-sidebar nav a:hover { background: var(--fsy-surface); color: var(--fsy-text); }
.admin-sidebar nav a[aria-current="page"] { border-color: #506129; background: #182322; color: var(--fsy-text); }
.admin-sidebar nav a[aria-current="page"]::before { width: 3px; height: 18px; margin-right: 9px; border-radius: 2px; background: var(--fsy-lime); content: ""; }
.admin-sidebar nav a span { flex: 1; }
.admin-sidebar nav a strong { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 12px; background: #2d3658; color: var(--fsy-text); font-size: 12px; }
.admin-exit { display: inline-block; margin: 28px 12px; color: var(--fsy-muted); font-size: 13px; text-decoration: none; }
.admin-content { min-width: 0; padding: 38px 40px 80px; }
.admin-page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 0 24px; }
.admin-page-header > div { max-width: 760px; }
.admin-page-header p, .admin-section-heading p { margin: 0 0 8px; color: var(--fsy-lime); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.admin-page-header h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 600; letter-spacing: -.04em; }
.admin-page-header span { display: block; margin-top: 12px; color: var(--fsy-muted); line-height: 1.6; }
.admin-environment { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 22px; padding: 11px 0; border-top: 1px solid var(--fsy-border); border-bottom: 1px solid var(--fsy-border); color: var(--fsy-muted); font-size: 12px; }
.admin-environment strong { color: var(--fsy-warning); letter-spacing: .08em; }
.admin-notice { margin: 0 0 14px; padding: 13px 16px; border-left: 3px solid var(--fsy-success); background: #122b2b; color: #cdf7dd; }
.admin-section, .admin-panel { margin-bottom: 20px; padding: 22px; border: 1px solid var(--fsy-border); border-radius: 12px; background: var(--fsy-surface); }
.admin-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-section-heading h2 { margin: 0; font-size: 21px; font-weight: 600; }
.admin-section-heading > span { color: var(--fsy-muted); font-size: 13px; }
.admin-section-heading a { color: var(--fsy-lime); text-decoration: none; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.task-grid a { display: grid; min-height: 148px; padding: 17px; border: 1px solid #354064; border-radius: 10px; background: var(--fsy-raised); color: var(--fsy-text); text-decoration: none; }
.task-grid a:hover { border-color: #6a779d; }
.task-grid span { color: var(--fsy-muted); font-size: 13px; }
.task-grid strong { margin: 8px 0; font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.task-grid small { align-self: end; color: var(--fsy-muted); line-height: 1.45; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.admin-dashboard-grid .recent-panel { grid-column: 1 / -1; }
.coverage-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coverage-list div { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--fsy-border); border-radius: 8px; }
.coverage-list span, .publication-panel > span { color: var(--fsy-muted); font-size: 13px; }
.coverage-list strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.coverage-bar { height: 7px; margin: 18px 0; overflow: hidden; border-radius: 7px; background: #293252; }
.coverage-bar span { display: block; width: 89%; height: 100%; background: var(--fsy-lime); }
.admin-panel > a { color: var(--fsy-lime); text-decoration: none; }
.snapshot-short { display: block; margin: 24px 0 10px; color: var(--fsy-text); font: 600 22px ui-monospace, monospace; }
.audit-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 10px 0; }
.audit-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--fsy-purple); box-shadow: 0 0 0 4px #261d4b; }
.audit-list li div { display: grid; gap: 3px; }
.audit-list span, .audit-list small { color: var(--fsy-muted); }
.admin-button, .admin-section button, .row-actions button, .claim-actions button, .issue-actions button, .order-controls button { min-height: 40px; padding: 0 14px; border: 1px solid #5d7040; border-radius: 7px; background: var(--fsy-lime); color: #11152a; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.admin-button.is-secondary, .admin-section button:not(.admin-button), .row-actions button, .claim-actions button, .issue-actions button, .order-controls button { border-color: #475274; background: transparent; color: var(--fsy-text); }
.admin-button.is-danger, .admin-dialog .is-danger { border-color: var(--fsy-danger); background: var(--fsy-danger); color: #1f1020; }
.admin-section button.is-danger-text, .row-actions .is-danger-text, .claim-actions .is-danger-text, .issue-actions .is-danger-text { border-color: #754357; color: #ff9eae; }
button:disabled { cursor: not-allowed; opacity: .45; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--fsy-border); border-radius: 9px; }
.admin-table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.admin-table-wrap th { padding: 11px 13px; background: #0d132b; color: var(--fsy-muted); font-size: 11px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.admin-table-wrap td { padding: 13px; border-top: 1px solid var(--fsy-border); vertical-align: top; }
.admin-table-wrap td strong, .admin-table-wrap td small { display: block; }
.admin-table-wrap td small { margin-top: 5px; color: var(--fsy-muted); }
.admin-table-wrap code { color: #c9d2f2; font-size: 12px; }
.row-actions, .claim-actions, .issue-actions, .import-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #46516f; border-radius: 12px; font-size: 11px; white-space: nowrap; }
.admin-status.is-positive { border-color: #35664a; color: var(--fsy-success); }
.admin-status.is-warning { border-color: #765f2e; color: var(--fsy-warning); }
.admin-status.is-negative { border-color: #754357; color: #ff9eae; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.admin-filters label, .admin-section form label, .admin-dialog label { display: grid; gap: 7px; color: var(--fsy-muted); font-size: 12px; font-weight: 600; }
.admin-filters input, .admin-filters select, .admin-section input, .admin-section select, .admin-section textarea, .admin-dialog textarea { min-height: 42px; padding: 9px 11px; border: 1px solid #414c70; border-radius: 7px; background: #0d132b; color: var(--fsy-text); font: inherit; }
.admin-section textarea, .admin-dialog textarea { resize: vertical; line-height: 1.5; }
.import-flow { border-color: #4c5e40; }
.import-flow form { display: grid; gap: 13px; }
.file-button { position: relative; display: inline-grid; min-height: 40px; padding: 0 14px; place-items: center; overflow: hidden; border: 1px solid #475274; border-radius: 7px; color: var(--fsy-text); cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-preview { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--fsy-border); }
.import-confirm { grid-template-columns: 1fr auto; align-items: end; margin-top: 15px; }
.admin-help { color: var(--fsy-muted); font-size: 12px; line-height: 1.6; }
.claim-list, .issue-list, .adjudication-list, .award-list, .honor-type-list { display: grid; gap: 12px; }
.claim-list article { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; padding: 16px; border: 1px solid var(--fsy-border); border-radius: 9px; background: var(--fsy-raised); }
.claim-list article > div:not(.claim-actions) { display: grid; align-content: start; gap: 4px; }
.claim-list span, .claim-list small { color: var(--fsy-muted); font-size: 12px; }
.claim-actions { align-content: center; }
.warning-copy { color: var(--fsy-warning); }
.positive-copy { color: var(--fsy-success); }
.admin-empty { display: grid; gap: 5px; min-height: 130px; place-content: center; text-align: center; }
.admin-empty span { color: var(--fsy-muted); }
.issue-list article, .adjudication-list article { padding: 18px; border: 1px solid var(--fsy-border); border-radius: 10px; background: var(--fsy-raised); }
.issue-list article header, .adjudication-list article header { display: flex; justify-content: space-between; gap: 16px; }
.issue-list h3, .adjudication-list h3 { margin: 5px 0 0; font-size: 19px; }
.issue-list header span, .adjudication-list header span { color: var(--fsy-muted); font-size: 12px; }
.issue-list article > p { color: #d6dcf2; line-height: 1.6; }
.issue-list dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.issue-list dl div { padding: 10px; border: 1px solid var(--fsy-border); border-radius: 7px; }
.issue-list dt { color: var(--fsy-muted); font-size: 11px; }
.issue-list dd { margin: 5px 0 0; font-size: 13px; }
.honor-admin-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.honor-type-list article, .award-list article { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--fsy-border); border-radius: 8px; background: var(--fsy-raised); }
.honor-symbol { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #32205f; color: var(--fsy-lime); font-weight: 700; }
.honor-type-list article > div, .award-list article > div > div { display: grid; flex: 1; gap: 3px; }
.honor-type-list small, .honor-type-list p, .award-list span { margin: 0; color: var(--fsy-muted); font-size: 12px; }
.award-list article > div:first-child { display: flex; align-items: center; flex: 1; gap: 12px; }
.admin-section details { margin-top: 16px; border-top: 1px solid var(--fsy-border); }
.admin-section summary { padding: 15px 0 4px; color: var(--fsy-lime); cursor: pointer; }
.compact-admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.compact-admin-form button { align-self: end; }
.tie-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.tie-facts span { padding: 7px 10px; border-radius: 6px; background: #252d4d; color: var(--fsy-muted); font-size: 12px; }
.adjudication-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.adjudication-compare > div { padding: 14px; border: 1px solid var(--fsy-border); border-radius: 8px; }
.adjudication-compare h4 { margin: 0 0 10px; color: var(--fsy-muted); }
.adjudication-compare p { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 8px; margin: 0; padding: 9px 0; border-top: 1px solid var(--fsy-border); }
.order-controls { display: flex; gap: 4px; }
.order-controls button { min-width: 32px; min-height: 30px; padding: 0; }
.score-unchanged { color: var(--fsy-success); font-size: 13px; }
.admin-dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 1px solid #4c5879; border-radius: 12px; background: var(--fsy-surface); color: var(--fsy-text); box-shadow: 0 24px 70px #000a; }
.admin-dialog::backdrop { background: #030617d9; }
.admin-dialog form { display: grid; gap: 16px; padding: 24px; }
.dialog-heading p { margin: 0 0 6px; color: var(--fsy-warning); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.dialog-heading h2 { margin: 0; font-size: 23px; }
.admin-dialog form > p { margin: 0; color: var(--fsy-muted); line-height: 1.6; }
.admin-dialog small { color: var(--fsy-muted); font-weight: 400; }
.dialog-actions { justify-content: end; }
.admin-loading, .admin-denied { display: grid; min-height: 65vh; place-content: center; text-align: center; }
.admin-loading > span, .admin-denied > span { color: var(--fsy-lime); font-size: 34px; font-weight: 700; }
.admin-loading h1, .admin-denied h1 { margin: 10px 0; }
.admin-loading p, .admin-denied p { color: var(--fsy-muted); }

@media (max-width: 1050px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 12px 24px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--fsy-border); }
  .admin-context, .admin-exit { display: none; }
  .admin-sidebar nav { display: flex; min-width: max-content; }
  .admin-sidebar nav a { min-width: 130px; }
  .admin-content { padding: 30px 24px 70px; }
  .task-grid { grid-template-columns: 1fr 1fr; }
  .claim-list article { grid-template-columns: 1fr 1fr; }
  .claim-actions { grid-column: 1 / -1; }
  .honor-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .admin-route .site-header { padding-inline: 16px; }
  .admin-route .brand-name { display: none; }
  .admin-route .account-link { min-width: 0; padding: 8px 10px; font-size: 12px; }
  .admin-sidebar { padding: 10px 12px; }
  .admin-sidebar nav a { min-width: auto; padding: 0 10px; }
  .admin-sidebar nav a strong { min-width: 20px; height: 20px; }
  .admin-content { padding: 22px 16px 56px; }
  .admin-page-header { display: grid; align-items: start; }
  .admin-page-header h1 { font-size: 34px; }
  .admin-page-header .admin-button { width: 100%; }
  .sandbox-banner { align-items: start; flex-direction: column; }
  .task-grid, .admin-dashboard-grid, .coverage-list, .claim-list article, .issue-list dl, .adjudication-compare, .compact-admin-form { grid-template-columns: 1fr; }
  .admin-dashboard-grid .recent-panel { grid-column: auto; }
  .task-grid a { min-height: 122px; }
  .admin-section, .admin-panel { padding: 16px; }
  .admin-section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .import-confirm { grid-template-columns: 1fr; }
  .admin-table-wrap { overflow: visible; border: 0; }
  .admin-table-wrap table, .admin-table-wrap thead, .admin-table-wrap tbody, .admin-table-wrap tr, .admin-table-wrap th, .admin-table-wrap td { display: block; min-width: 0; }
  .admin-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-table-wrap tr { margin-bottom: 10px; padding: 12px; border: 1px solid var(--fsy-border); border-radius: 8px; background: var(--fsy-raised); }
  .admin-table-wrap td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--fsy-border); }
  .admin-table-wrap td:first-child { border-top: 0; }
  .admin-table-wrap td::before { color: var(--fsy-muted); font-size: 11px; content: "字段"; }
  .roster-table td:nth-child(1)::before { content: "玩家"; }.roster-table td:nth-child(2)::before { content: "赛事身份"; }.roster-table td:nth-child(3)::before { content: "邮箱 / Entry"; }.roster-table td:nth-child(4)::before { content: "邀请"; }.roster-table td:nth-child(5)::before { content: "绑定"; }.roster-table td:nth-child(6)::before { content: "操作"; }
  .issue-list article header, .adjudication-list article header { align-items: start; flex-direction: column; }
  .award-list article { align-items: start; flex-wrap: wrap; }
  .award-list .row-actions { width: 100%; }
  .adjudication-compare p { grid-template-columns: 70px 1fr; }
  .order-controls { grid-column: 1 / -1; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .admin-content { padding-inline: 12px; }
  .admin-sidebar nav a { font-size: 12px; }
  .admin-page-header h1 { font-size: 30px; }
  .admin-table-wrap td { grid-template-columns: 86px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { .admin-route * { scroll-behavior: auto !important; } }
