/* Admin additions (r15 P3) on top of account-console.css: tokens and classes from landing.css / account-console.css only. */

/* Users: sortable headers are plain buttons in the header's own type; the arrow is a visual cue only (empty alt text), th[aria-sort] carries the state. */
.admin-main th button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.admin-main th button:hover { color: var(--text); }
.admin-main th button::after { content: " ↕" / ""; opacity: .45; }
.admin-main th[aria-sort="descending"] button::after { content: " ↓" / ""; opacity: 1; }
.admin-main th[aria-sort="ascending"] button::after { content: " ↑" / ""; opacity: 1; }
.admin-main th[aria-sort] button { color: var(--text); }
/* An in-place reload keeps the previous rows, dimmed, instead of flashing an empty table. */
.admin-main .table-wrap[aria-busy="true"] tbody { opacity: .55; transition: opacity .2s var(--ease); }

/* Backups: a failed manifest check gets a 2px danger rule on the row's left edge. */
.admin-main tr.is-alert > td:first-child { padding-left: .75rem; box-shadow: inset 2px 0 0 var(--danger); }

/* Overview: the trend SVG gets an explicit height from drawTrend, which fed back into the grid row and left a gap
   under the readiness list; taken out of flow, the row height comes from the status tile alone. */
.admin-main .chart svg { position: absolute; inset: 0; }

/* Below 1100px every tile spans all 12 columns, so the 11 column gaps (27.5rem) only widen the page: drop them. */
@media (max-width: 1100px) {
  .admin-main .bento { column-gap: 0; }
}

/* Phones: admin table rows stack like the account page, each cell labelled by its column header (data-label set by admin-console.js). */
@media (max-width: 767px) {
  .admin-main .table-scroll-hint { display: none; }
  .admin-main thead { display: none; }
  .admin-main tbody, .admin-main tr, .admin-main td { display: block; }
  .admin-main tr { padding: .6rem 0; border-top: 1px solid var(--line); }
  .admin-main tr:first-child { border-top: 0; }
  .admin-main td { padding: .15rem 0; border: 0; text-align: left; }
  .admin-main td[data-label] { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; align-items: baseline; }
  .admin-main td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .75rem; }
  .admin-main td[data-label] > * { grid-column: 2; justify-self: start; }
  .admin-main .hash-cell { max-width: none; }
  .admin-main td.hash-cell[data-label] { white-space: normal; overflow-wrap: anywhere; }
  .admin-main tr.is-alert > td:first-child { padding-left: 0; box-shadow: none; }
  .admin-main tr.is-alert { padding-left: .75rem; box-shadow: inset 2px 0 0 var(--danger); }
}
/* Model choices share the administrator form and responsive table styles. */
.model-config-form select { width: 100%; min-width: 0; max-width: 100%; }
.model-config-form td { width: 38%; }
.model-budget-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
@media (max-width: 767px) {
  .model-config-form td { width: auto; }
  .model-budget-fields { grid-template-columns: 1fr; }
}

/* r30: plan grants and promotions. Native checkboxes and radios at their own size (the global input rule sets width 100%). */
.admin-main .settings-form input[type="checkbox"], .admin-main .settings-form input[type="radio"] { width: 1rem; min-height: 1rem; height: 1rem; margin: 0 .4rem 0 0; padding: 0; vertical-align: -.15rem; accent-color: var(--text); }
.admin-main .settings-form fieldset { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.admin-main .settings-form legend { margin-bottom: .35rem; padding: 0; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.admin-main .settings-form label > span:first-child { color: var(--text); font-size: .875rem; }
.admin-main [data-audience-part] { display: grid; gap: .9rem; }
.admin-main [data-audience-part][hidden] { display: none; }
.admin-main button.text-link { min-height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.admin-main .plan-quick { display: inline-flex; gap: .5rem; margin-left: .35rem; }
.admin-main .plan-form { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: start; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.admin-main .plan-form .settings-actions, .admin-main .plan-form .form-status, .admin-main .plan-form [data-plan-replace] { grid-column: 1 / -1; }
/* site-r34: 错误库 selection and the user's 回复偏好. */
.admin-main .select-cell { width: 2.25rem; }
.admin-main .select-cell input[type="checkbox"] { width: 1rem; min-height: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--text); }
.admin-main .feedback-filters { grid-template-columns: repeat(2, minmax(0, 12rem)); }
.admin-main .feedback-actions { align-items: center; }
.admin-main .style-note-text { margin: .75rem 0; white-space: pre-wrap; }
