/* Admin page for Discover: reuses the Discover palette from discover.css. */
.a-main { margin: 0 auto; max-width: 1100px; padding: 22px 20px 48px; }
.a-main h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.a-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; padding: 20px 22px; }
.a-panel[hidden] { display: none; }
.a-panel h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.a-help { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; max-width: 75ch; }
.a-count { background: var(--brand-soft); border-radius: 999px; color: var(--brand-strong); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; padding: 2px 9px; vertical-align: middle; }
.a-count:empty { display: none; }

.a-form { display: grid; gap: 8px; grid-template-columns: 2fr 1.4fr 1.6fr 1fr auto; margin-bottom: 16px; }
.a-form .d-button { margin-top: 0; }
.a-code-row { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.a-code { background: var(--brand-soft); border-radius: 10px; color: var(--brand-strong); font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .12em; padding: 6px 14px; }
.a-inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.a-inline-form .d-input { flex: 1 1 260px; width: auto; }
.a-inline-form .d-button { margin-top: 0; }
.a-ok { color: var(--brand-strong); }
.a-bad { color: #b45309; }
.a-group h3 { border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; margin: 16px 0 4px; padding-bottom: 4px; text-transform: uppercase; color: var(--muted); }
.a-group .a-warn { color: #b45309; font-size: 13px; margin: 6px 0; }
.a-row { align-items: center; border-bottom: 1px solid var(--soft); display: grid; gap: 10px; grid-template-columns: 1fr auto; padding: 10px 0; }
.a-row:last-child { border-bottom: 0; }
.a-row-main { min-width: 0; }
.a-row-title { font-weight: 600; overflow-wrap: anywhere; }
.a-row-meta { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.a-row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.a-row-actions select { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 12.5px; padding: 4px 8px; }
.a-danger { border-color: #b45309; color: #b45309; }
.a-danger:hover { background: #b45309; border-color: #b45309; color: #fff; }

.a-totals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.a-total { background: var(--soft); border-radius: 12px; min-width: 130px; padding: 10px 14px; }
.a-total strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.a-total span { color: var(--muted); font-size: 12.5px; }
.a-table-wrap { overflow-x: auto; }
.a-table { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.a-table th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.a-table th, .a-table td { border-bottom: 1px solid var(--soft); padding: 8px 10px 8px 0; vertical-align: top; }
.a-table td.num, .a-table th.num { text-align: right; }

@media (max-width: 860px) {
    .a-form { grid-template-columns: 1fr; }
    .a-row { grid-template-columns: 1fr; }
    .a-row-actions { justify-content: flex-start; }
}
.a-quotes-form { margin-bottom: 8px; }
.a-quotes-text { font: inherit; font-size: 14px; line-height: 1.5; min-height: 140px; resize: vertical; width: 100%; box-sizing: border-box; }
.a-file-button { cursor: pointer; display: inline-block; }
.a-help code { background: var(--soft); border-radius: 6px; font-size: 12.5px; padding: 1px 5px; }

/* BP85: tuning pairs */
.a-tuning-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.a-tuning-pair .a-inline-form { grid-column: 1 / -1; }
.a-tuning-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.a-tuning-card span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .a-tuning-pair { grid-template-columns: 1fr; } }
