:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  --bg: #0c0e12;
  --surface: #12161c;
  --raised: #191e26;
  --border: #2b323e;
  --text: #e8edf4;
  --muted: #a0abba;
  --accent: #f5b544;
  --accent-dim: #272218;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
header { min-height: 88px; display: flex; align-items: center; gap: 48px; padding: 16px 4%; border-bottom: 1px solid var(--border); background: #101318; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-icon { display: block; width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.5px; }
.brand-subtitle { display: block; margin-top: 5px; font: 12px var(--mono); letter-spacing: 0; color: var(--muted); }
nav { display: flex; gap: 28px; align-self: stretch; }
nav a { display: flex; align-items: center; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; padding: 9px 0; }
nav a.active { color: var(--accent); border-color: var(--accent); }
nav a:hover { color: var(--text); }
.local { margin-left: auto; color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
main { max-width: 1600px; margin: auto; padding: 32px 4% 0; }
.eyebrow, .section-label { color: var(--muted); font: 12px var(--mono); letter-spacing: 1px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -1px; line-height: 1.2; margin: 12px 0; font-weight: 650; }
h1 span { color: var(--accent); }
p { color: var(--muted); line-height: 1.6; }
.hero p { margin: 0; font-size: 16px; }
.hero-label { font: 12px var(--mono); color: var(--accent); border-left: 2px solid var(--accent); padding: 10px 0 10px 16px; white-space: nowrap; }
h2 { font-size: 24px; letter-spacing: -.5px; font-weight: 650; margin: 9px 0; overflow-wrap: anywhere; }
h3 { font-size: 16px; font-weight: 600; }
.workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
aside { padding-top: 6px; min-width: 0; }
.section-label { display: flex; justify-content: space-between; margin-bottom: 18px; }
.section-label span { color: var(--accent); }
.board-link { border: 1px solid transparent; border-left: 2px solid transparent; border-radius: 3px; background: transparent; text-align: left; display: flex; align-items: center; width: 100%; gap: 12px; padding: 14px 12px; margin-bottom: 6px; color: var(--muted); }
.board-link:hover { background: var(--raised); }
.board-link.selected { background: var(--accent-dim); border-color: #413823; border-left-color: var(--accent); color: var(--text); }
.board-link strong { color: var(--accent); font-size: 14px; display: block; overflow-wrap: anywhere; }
.board-link small { display: block; font-size: 12px; margin-top: 7px; color: var(--muted); }
.board-symbol { font: 18px var(--mono); color: var(--accent); }
.arrow { margin-left: auto; color: var(--muted); }
.scoring { margin-top: 30px; border-top: 1px solid var(--border); padding: 24px 10px 0; }
.scoring > div { display: flex; align-items: center; margin: 23px 0; gap: 16px; }
.scoring strong { font: 26px var(--mono); color: var(--accent); min-width: 50px; }
.scoring span { font-size: 14px; line-height: 1.5; }
.scoring .section-label { font-size: 12px; }
.scoring p { font-size: 13px; margin-top: 26px; }
.board { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; min-width: 0; }
.board-heading { padding: 24px 24px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.board-heading p { font-size: 14px; margin: 7px 0; max-width: 680px; }
.badge { display: inline-block; background: var(--raised); color: #bec8d5; border: 1px solid #394452; border-radius: 3px; padding: 5px 8px; font: 12px var(--mono); white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 24px 22px; border: 1px solid var(--border); background: #0f1319; }
.stats > div { padding: 16px 20px; border-right: 1px solid var(--border); }
.stats > div:last-child { border: 0; }
.stats strong { display: block; font: 30px var(--mono); letter-spacing: -1px; }
.stats span { font-size: 13px; color: var(--muted); display: block; margin-top: 7px; }
.notice { padding: 12px 24px; background: #1e211e; border-block: 1px solid #373a30; font-size: 14px; color: #c4c7b6; line-height: 1.6; }
.notice a { text-decoration: underline; text-underline-offset: 3px; margin-left: 5px; color: var(--accent); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; gap: 16px; flex-wrap: wrap; }
.table-toolbar h3 span { color: var(--muted); font: 13px var(--mono); }
.search { display: flex; align-items: center; gap: 9px !important; margin: 0 !important; border: 1px solid var(--border); border-radius: 3px; padding: 9px 12px; background: var(--bg); }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; padding: 0; width: 210px; background: transparent; font-size: 14px; outline: none; }
.search input:focus { outline: none; }
.search span { font-size: 22px; line-height: 18px; color: var(--muted); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
th { font: 12px var(--mono); letter-spacing: .5px; color: var(--muted); background: #191e26; padding: 13px 16px; border-block: 1px solid var(--border); }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { text-align: right; padding-right: 24px; }
td { border-bottom: 1px solid #252c36; padding: 12px 16px; font: 14px var(--mono); color: #bdc7d5; }
tr.first { background: #211e18; }
tbody tr:hover { background: #202631; }
.rank { font: 14px var(--mono); color: var(--muted); }
.rank.top { color: var(--accent); }
.member { display: flex; align-items: center; gap: 12px; font: 500 14px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); }
.member small { display: block; margin-top: 5px; font: 12px var(--mono); color: var(--accent); }
.points { font: 600 19px var(--mono); color: var(--accent); }
.pts { font-size: 12px; color: var(--muted); margin-left: 6px; }
.board-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); padding: 18px 24px; }
footer { border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding: 22px 0 28px; font-size: 13px; color: var(--muted); }
footer span { font: 12px var(--mono); }
.empty { text-align: center; padding: 45px !important; line-height: 1.9; color: var(--muted); white-space: normal; }
details { font-size: 14px; padding: 18px 24px; border-top: 1px solid var(--border); }
summary { cursor: pointer; }
.video { display: block; padding-top: 13px; text-decoration: underline; text-underline-offset: 3px; color: #b8cbe4; overflow-wrap: anywhere; }
.login { max-width: 570px; padding-top: 70px; margin-inline: auto; text-align: center; }
.login .google-sign-in { display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; }
.login small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login form { margin: 30px 0; padding: 24px; border: 1px solid var(--border); border-top: 2px solid var(--accent); background: var(--surface); }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.admin-title h1 { margin-top: 15px; }
.admin-title p { margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: start; margin-top: 28px; }
.admin-grid > section { min-width: 0; }
.admin-grid .table-toolbar { padding: 0 0 16px; }
.admin-card, .editor { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 24px; margin-bottom: 16px; }
.editor { border-top: 2px solid var(--accent); }
.admin-card h2 { font-size: 23px; }
.admin-card p { font-size: 14px; }
.admin-card small { font-size: 13px; color: var(--muted); }
.source-summary { font-size: 14px; line-height: 2.4; overflow-wrap: anywhere; margin: 18px 0; }
.source-summary .badge { font-size: 12px; padding: 3px 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.primary, .secondary, .delete { border: 1px solid transparent; border-radius: 3px; padding: 11px 16px; font-size: 14px; font-weight: 600; }
.primary { background: var(--accent); color: #15120d; }
.primary:hover { background: #ffca65; }
.secondary { background: var(--raised); color: var(--text); border-color: #3b4655; }
.secondary:hover { background: #28313e; }
.delete { margin-left: auto; background: transparent; color: #f5988f; }
.delete:hover { background: #352125; }
.editor h2 { margin-bottom: 25px; }
.editor label, .login label { display: flex; flex-direction: column; gap: 9px; font-size: 14px; font-weight: 500; margin: 17px 0; }
input, textarea, select { border: 1px solid #3b4554; background: #0e1218; color: var(--text); border-radius: 3px; padding: 11px; width: 100%; }
input::placeholder, textarea::placeholder { color: #919cab; opacity: 1; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }
.label-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; margin-top: 25px; }
.text-button { background: transparent; border: 0; color: var(--accent); font-size: 14px; padding: 7px 0; }
.hint { font-size: 13px; line-height: 1.7; color: var(--muted); }
.source { background: #191e26; border: 1px solid var(--border); border-radius: 3px; padding: 12px; margin: 12px 0; }
.source > div { display: flex; gap: 10px; margin-bottom: 10px; }
.source select { padding: 7px; font-size: 14px; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: 24px; padding-inline: 8px; }
.source input { font-size: 14px; }
.source .limit { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; font-weight: 400; font-size: 14px; }
.limit input { width: 80px; padding: 7px; }
.source .limit[hidden] { display: none; }
.editor .checkbox { flex-direction: row; align-items: center; gap: 10px; margin: 23px 0 8px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.wide { width: 100%; margin-top: 12px; }
.error, #form-error { color: #ff9e94; font-size: 14px; }
.job { background: var(--raised); border-left: 2px solid var(--accent); padding: 12px; border-radius: 2px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #222a35; border: 1px solid #536078; border-left: 3px solid var(--accent); color: var(--text); padding: 15px 24px; border-radius: 3px; font-size: 14px; box-shadow: 0 8px 30px #0006; max-width: 90vw; display: none; z-index: 10; }
#toast.show { display: block; }
@media (max-width: 1100px) {
  header { gap: 28px; }
  .hero-label { display: none; }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .stats > div { padding: 16px 12px; }
  .admin-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  header { flex-wrap: wrap; gap: 12px 24px; padding: 16px 5% 0; }
  .brand { flex: 1 1 100%; }
  nav { gap: 28px; }
  .local { font-size: 12px; padding-bottom: 10px; }
  main { padding: 24px 5% 0; }
  .hero { margin-bottom: 24px; }
  h1 { font-size: 28px; }
  .workspace, .admin-grid { grid-template-columns: 1fr; }
  .scoring { margin: 14px 0 18px; padding: 16px 0 0; }
  .scoring > div { display: inline-flex; margin: 8px 22px 8px 0; gap: 10px; }
  .scoring strong { font-size: 22px; min-width: auto; }
  .scoring p { margin: 12px 0 0; }
  .scoring .section-label { margin-bottom: 6px; }
  .board-heading { padding: 20px 16px 12px; flex-wrap: wrap; }
  .board-heading h2 { font-size: 22px; }
  .stats { margin: 0 16px 18px; }
  .stats strong { font-size: 25px; }
  .stats span { font-size: 12px; }
  .table-toolbar { padding: 12px 16px; }
  .search { width: 100%; }
  .search input { width: 100%; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  td, th { padding: 12px; }
  .board-footer { padding: 17px; flex-direction: column; }
  .admin-title { flex-wrap: wrap; }
  .admin-title .secondary { white-space: nowrap; }
  .admin-grid .editor { grid-row: 1; }
  footer { flex-direction: column; gap: 12px; }
  .login { padding-top: 40px; }
  .notice { padding: 12px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .15s, border-color .15s, color .15s; }
}

/* Source identity stays visible even when YouTube provides no artwork. */
.board-link small { overflow-wrap: anywhere; line-height: 1.5; }
.source-cards { display: grid; gap: 12px; margin: 0 24px 22px; }
.source-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 3px; background: #0e1218; }
.channel-banner { display: block; width: 100%; height: clamp(100px, 12vw, 160px); object-fit: cover; object-position: center; border-bottom: 1px solid var(--border); }
.source-identity { display: flex; gap: 14px; align-items: center; padding: 16px; }
.source-identity > div { min-width: 0; }
.source-identity .eyebrow { display: block; font-size: 12px; line-height: 1.6; }
.source-identity strong { display: block; font-size: 16px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.source-identity a:hover { color: var(--accent); }
.source-thumbnail { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.source-owner { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-card .source-cards { margin: 20px 0; }
.admin-card .channel-banner { height: 100px; }
@media (max-width: 760px) {
  .source-cards { margin: 0 16px 18px; }
  .channel-banner { height: 105px; }
  .source-identity { padding: 13px; }
}

.account-toggle { border: 0; background: transparent; padding: 0; width: 100%; text-align: left; cursor: pointer; }
.account-toggle:hover { color: var(--accent); }
.expand-icon { font: 18px var(--mono); width: 15px; flex-shrink: 0; color: var(--accent); }
.account-detail-row, .account-detail-row:hover { background: #0e1218; }
.account-detail-row > td { padding: 0 24px 22px !important; text-align: left !important; white-space: normal; }
.account-details { border-left: 2px solid #73582e; padding: 20px; margin-top: 4px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.detail-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; }
.detail-heading strong { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.detail-heading > span { color: var(--muted); font-size: 12px; }
.comment-video { margin-top: 10px; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.comment-video-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 16px; background: var(--raised); }
.comment-video-heading h4 { font-size: 14px; margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.comment-video-heading a { color: #d4dfed; }
.comment-video-heading a:hover, .comment-meta a:hover { text-decoration: underline; }
.comment-video-heading > span { color: var(--accent); font: 12px var(--mono); }
.comment { padding: 16px; border-top: 1px solid var(--border); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: 12px; }
.comment-meta > span { font-family: var(--mono); }
.comment-meta a { margin-left: auto; color: var(--accent); }
.comment p { font-size: 16px; color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
@media (max-width: 760px) {
  .account-detail-row > td { padding: 0 12px 16px !important; }
  .account-details { padding: 14px 8px 0 12px; }
}
.channel-name-option[hidden] { display: none; }
.editor .source .channel-name-option { margin: 16px 0 4px; font-size: 14px; }
input[readonly] { background: var(--raised); color: var(--muted); border-style: dashed; }

.account-copy { min-width: 0; }
.preview-line { display: flex; align-items: baseline; gap: 8px; max-width: none; margin-top: 6px; }
.quoted-preview { display: flex; align-items: baseline; min-width: 0; color: #fff; font-size: 14px; font-weight: 400; line-height: 1.5; font-style: italic; }
.comment-preview { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.preview-frequency { display: inline-block; flex-shrink: 0; padding: 2px 5px; border: 1px solid #6a5430; border-radius: 3px; background: var(--accent-dim); color: var(--accent); font: 600 12px var(--mono); }
.comment-preview.unavailable { margin-top: 6px; color: var(--muted); font-size: 12px; font-style: italic; }


/* Keep headings aligned with the rank and account text. */
.account-column-heading { display: block; }
.rank-column-heading { display: block; padding-left: 27px; }
.account-toggle { display: grid; grid-template-columns: 15px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.account-toggle .expand-icon { line-height: 21px; }
.account-copy { line-height: 21px; }

.rank-toggle { align-items: center; width: auto; }
.rank-toggle .expand-icon { display: inline-block; text-align: center; }
.rank-toggle[aria-expanded="true"] .expand-icon { transform: rotate(90deg); }
.rank-toggle svg.expand-icon { width: 15px; height: 20px; }
#sync-progress[hidden] { display: none; }

/* Public reports present activity without competitive emphasis. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rank-toggle { display: block; padding: 6px; color: var(--muted); }
.rank-toggle .expand-icon { color: var(--muted); }
.preview-line { flex-direction: column; align-items: flex-start; gap: 6px; }
.quoted-preview { max-width: clamp(200px, 28vw, 460px); }
.preview-frequency { padding: 2px 6px; border: 1px solid #6a5430; border-radius: 3px; background: none; color: var(--accent); font: 12px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.comment-video-heading > span { color: var(--muted); }
.account-details { border-left-color: var(--accent); }
.admin-scoring { margin-top: 18px; padding: 16px 0 0; }
.admin-scoring .table-wrap { max-height: 420px; }
.admin-scoring th { position: sticky; top: 0; }

.preview-badges { display: flex; flex-wrap: nowrap; gap: 5px; }

.preview-percentage { color: #ff9e94; border-color: #85433e; background: #291a1d; }
.account-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pagination-buttons { display: flex; align-items: center; gap: 12px; }
.pagination-buttons button:disabled { cursor: default; }
@media (max-width: 760px) { .account-pagination { padding: 16px; } }

/* Intensify repetition badges from 90% to pure red at 100%. */
.preview-percentage.percentage-90 { color: #ff9e94; border-color: #85433e; }
.preview-percentage.percentage-91 { color: #ff8e85; border-color: #913c38; }
.preview-percentage.percentage-92 { color: #ff7e76; border-color: #9d3632; }
.preview-percentage.percentage-93 { color: #ff6f68; border-color: #aa2f2b; }
.preview-percentage.percentage-94 { color: #ff5f59; border-color: #b62825; }
.preview-percentage.percentage-95 { color: #ff4f4a; border-color: #c2221f; }
.preview-percentage.percentage-96 { color: #ff3f3b; border-color: #ce1b19; }
.preview-percentage.percentage-97 { color: #ff2f2c; border-color: #da1413; }
.preview-percentage.percentage-98 { color: #ff201e; border-color: #e70d0c; }
.preview-percentage.percentage-99 { color: #ff100f; border-color: #f30706; }
.preview-percentage.percentage-100 { color: #ff0000; border-color: #ff0000; }
.account-name-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.account-list-count { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.cross-list-summary { padding: 16px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); }
.cross-list-summary a { color: var(--text); font-size: 13px; }
.cross-list-summary a:hover { color: var(--accent); }
.list-memberships { display: grid; gap: 10px; }
.list-memberships a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.list-memberships span { color: var(--muted); }
.board-heading .list-channel, .admin-card .list-channel { margin: 4px 0 10px; color: var(--text); font-size: 14px; }
.sidebar-channel { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.source .source-value { font-size: 14px; line-height: 1.5; display: block; }
.collection-hint[hidden] { display: none; }

.board-heading h2 { color: var(--accent); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }

.account-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin: 0; }
.account-sort select { width: auto; max-width: 100%; font-size: 13px; }
.board > .table-toolbar { flex-wrap: wrap; gap: 12px; }

.account-channel-link { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.account-channel-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.unnamed-account { color: var(--accent); font-style: italic; border: 1px dashed var(--border); border-radius: 3px; padding: 1px 6px; }

.board-heading > .badge { color: var(--accent); display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 6px 8px 5px; }
.report-context { margin: 0 24px 20px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 3px; }
.report-context p { font-size: 13px; margin: 10px 0 0; }
.report-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 0 24px 18px; }
.report-filters label { margin: 0; color: var(--muted); font-size: 12px; }
.report-filters input { display: block; width: 160px; margin-top: 6px; }
.filter-panel { padding: 0 24px 18px; border: 0; }
.filter-panel > summary { color: var(--muted); font-size: 13px; }
.filter-panel .report-filters { padding: 16px 0 0; }
#copy-report { min-width: 150px; }

.admin-list-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.admin-list-search .search { flex: 1; }
#admin-list-count { color: var(--muted); font-size: 12px; }
.admin-card[hidden] { display: none; }
.admin-list-tools { grid-column: 1; grid-row: 1; min-width: 0; }
.admin-list-tools .admin-list-search { margin-bottom: 0; }
.admin-lists { grid-column: 1; grid-row: 2; }
.admin-grid .editor { grid-column: 2; grid-row: 2; }
@media (max-width: 760px) {
  .admin-grid .editor { grid-column: 1; grid-row: 1; }
  .admin-list-tools { grid-column: 1; grid-row: 2; }
  .admin-lists { grid-column: 1; grid-row: 3; }
}

.admin-card[data-admin-list] { border-top: 2px solid var(--accent); }

.board-heading > .badge.sync-stale, .admin-card .sync-stale { color: #ff5252; }


.preview-frequency.preview-burst { color: #ff946b; border-color: #b65c3e; }

.admin-card .daily-sync { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.admin-card .daily-sync input { flex-shrink: 0; }

.admin-card .sync-settings { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px 0; }
.admin-card .sync-settings > small, .admin-card .sync-settings .next-sync { margin: 0; font-size: 13px; line-height: 1.5; }
.admin-card .sync-settings .daily-sync { margin: 0; line-height: 1.5; }
.admin-card .sync-settings .daily-sync input { margin: 0; padding: 0; }

/* Full-width reports with a custom, searchable source picker. */
.reports-main { max-width: none; padding-inline: clamp(16px, 3vw, 48px); }
.reports-main .workspace { display: block; }
.report-picker { position: relative; z-index: 5; width: min(100%, 680px); margin: 0 0 24px; padding: 0; border: 0; }
.report-picker > summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.report-picker > summary::-webkit-details-marker { display: none; }
.report-picker > summary:hover, .report-picker[open] > summary { border-color: var(--accent); background: var(--raised); }
.report-picker-current { flex: 1; min-width: 0; }
.report-picker-current .eyebrow { display: block; font-size: 10px; margin-bottom: 5px; }
.report-picker-current strong { display: block; color: var(--accent); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.report-picker > summary > svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.report-picker[open] > summary > svg { transform: rotate(180deg); }
.report-picker-count { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.report-picker-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 20px 50px #0009; }
.report-picker-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; margin: 0 0 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); }
.report-picker-search:focus-within { border-color: var(--accent); }
.report-picker-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: none; margin: 0; padding: 13px 0; }
.report-picker-options { max-height: min(420px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.report-picker .board-link { margin: 0; padding: 14px 12px; border-radius: 4px; }
.report-picker .board-link[hidden], .report-picker-empty[hidden] { display: none; }
.report-option-copy { flex: 1; min-width: 0; }
.report-selected { color: var(--accent); font-size: 18px; padding-inline: 8px; }
.report-picker-empty { padding: 18px 12px; margin: 0; color: var(--muted); }
@media (max-width: 760px) {
 .report-picker { width: 100%; margin-bottom: 16px; }
 .report-picker > summary { padding: 14px; gap: 12px; }
 .report-picker-count { display: none; }
 .report-picker-current strong { font-size: 15px; }
 .reports-main .hero h1 { overflow-wrap: anywhere; }
}
