/* Article data board (#articles). Self-contained: no generic label/button rules exist in styles.css,
   so every control the board uses is styled here. Palette follows styles.css (--border, --muted, purple). */
.article-dashboard-page[hidden]{display:none!important}
/* Header, view switches, filters and table tools form four separate rows. */
.article-dashboard-page{display:flex;flex-direction:column;gap:16px;min-width:0;color:#343647}
.ad-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px 24px;min-width:0}
.ad-heading{display:flex;flex-direction:column;gap:8px;min-width:0}
.ad-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.ad-head h1{margin:0;font-size:24px;line-height:34px;color:#2d2f42}
.ad-view-name{padding:4px 9px;border-radius:6px;background:#efedff;color:#4f44c4;font-size:12px;font-weight:600;white-space:nowrap}
.ad-info{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #d6d2f5;border-radius:50%;background:#fff;color:#6255d9;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.ad-info[hidden]{display:none}
.ad-info:hover{background:#f6f5fd}
.ad-caliber{margin:0;padding:8px 12px;border:1px solid #e3e0fb;border-radius:8px;background:#f9f8ff;color:#5b5f72;font-size:12px;line-height:1.6}
.ad-caliber[hidden]{display:none}
.ad-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none;min-width:0}
.ad-view-switches{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.ad-seg{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:8px;background:#fff}
.ad-seg button{min-height:28px;padding:2px 12px;border:0;border-radius:6px;background:transparent;color:#606577;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.ad-seg button:hover{background:#f6f5fd;color:#4f44c4}
.ad-seg button.active{background:#efedff;color:#4f44c4}
.ad-seg button[hidden]{display:none}
.ad-button{min-height:36px;padding:6px 13px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#4f44c4;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.ad-button:hover:not(:disabled){background:#f6f5fd}
.ad-button:disabled{color:#b6b8c4;cursor:not-allowed}
.ad-filters{display:flex;align-items:flex-end;gap:14px 16px;flex-wrap:wrap;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff;min-width:0}
.ad-filters>label{display:flex;flex:1 1 150px;flex-direction:column;align-items:stretch;gap:7px;min-width:0;color:#606577;font-size:12px;white-space:nowrap}
.ad-filters>label[hidden]{display:none}
.ad-filters select,.ad-search input{height:36px;width:100%;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#4b4e5f;font-family:inherit;font-size:13px;outline:none}
.ad-filters select{min-width:0}
.ad-filters>.ad-search{flex:1.4 1 220px}
.ad-search-box{position:relative;display:block;min-width:0}
.ad-search-box i{position:absolute;top:50%;left:10px;transform:translateY(-50%);color:#6c7182;font-size:15px;font-style:normal}
.ad-search input{width:100%;padding-left:28px;background:#fafafd}
.ad-filters select:focus,.ad-search input:focus{border-color:#7669dc;box-shadow:0 0 0 3px #6659d910}
.ad-picker{width:100%;min-width:0}
.ad-picker .project-picker-trigger{height:36px;width:100%;min-width:0}
.ad-picker .project-picker-search{font-size:13px}
.ad-picker .project-picker-panel{max-width:calc(100vw - 64px)}
.ad-picker-field{display:flex;flex:1.4 1 220px;min-width:0;flex-direction:column;align-items:stretch;gap:7px;color:#606577;font-size:12px}
.ad-status{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-height:20px;color:#6c7182;font-size:12px;line-height:20px}
.ad-status-item.is-warn{color:#c95661}
.ad-status-item.is-busy{color:#5d67ba}
.ad-status-sep{color:#c3c5cf}
.ad-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;min-width:0}
.ad-table-summary{display:flex;flex-direction:column;gap:4px;min-width:0}
.ad-count{color:#4b4e5f;font-size:13px;font-weight:600;line-height:20px}
.ad-count:empty{display:none}
.ad-table-actions{display:flex;align-items:center;gap:16px;flex:none}
.ad-syncs{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0;color:#606577;font-size:12px;line-height:20px}
.ad-syncs[hidden]{display:none}
.ad-sync-group{display:inline-flex;align-items:center;gap:8px;max-width:100%}
.ad-sync-line{white-space:nowrap}
.ad-sync-refresh{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-height:28px;padding:2px 4px;border:0;border-radius:5px;background:transparent;color:#5b4fd0;font-family:inherit;font-size:12px;font-weight:600;line-height:20px;white-space:nowrap;cursor:pointer}
.ad-sync-refresh:hover:not(:disabled){background:#f6f5fd}
.ad-sync-refresh:disabled{color:#9b9dab;cursor:wait}
.ad-sync-refresh.is-busy [aria-hidden]{display:inline-block;animation:ad-spin 1s linear infinite}
@keyframes ad-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ad-sync-refresh.is-busy [aria-hidden]{animation:none}}
/* Export panel: a modal dialog over the board, built by article-dashboard.js. */
.ad-export{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(36,38,56,.28)}
.ad-export[hidden]{display:none}
.ad-export-card{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px 24px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(40,42,70,.18);color:#343647}
.ad-export-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ad-export-head h2{margin:0;font-size:16px;line-height:24px;color:#2d2f42}
.ad-export-close{width:28px;height:28px;border:0;border-radius:6px;background:none;color:#8a8d9c;font-size:18px;line-height:1;cursor:pointer}
.ad-export-close:hover{background:#f6f5fd}
.ad-export-views{display:grid;gap:8px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px}
.ad-export-views legend{padding:0 4px;color:#8a8d9c;font-size:11px}
.ad-export-view{display:flex;align-items:center;gap:8px;color:#4b4e5f;font-size:13px;cursor:pointer}
.ad-export-view[hidden]{display:none}
.ad-export-note{margin:0 0 10px;color:#6f7282;font-size:12px;line-height:1.6}
.ad-export-progress{min-height:18px;margin:0 0 8px;color:#5d67ba;font-size:12px;line-height:18px}
.ad-export-failures{margin-bottom:8px}
.ad-export-failures[hidden]{display:none}
.ad-export-error{margin:0 0 8px;color:#c95661;font-size:12px;line-height:1.6}
.ad-export-failure-actions{display:flex;flex-wrap:wrap;gap:8px}
.ad-export-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.ad-button-primary{border-color:#6255d9;background:#6255d9;color:#fff}
.ad-button-primary:hover:not(:disabled){background:#5346cc}
.ad-button-primary:disabled{border-color:#c9c4f2;background:#c9c4f2;color:#fff;cursor:not-allowed}
.ad-table-wrap{isolation:isolate;border:1px solid var(--border);border-radius:11px;background:#fff;min-width:0}
.ad-table-wrap:has(+.ad-footer:not([hidden])){border-radius:11px 11px 0 0}
.ad-table-wrap[hidden]{display:none}
.ad-table-scroll{overflow:auto;border-radius:0 0 10px 10px}
.ad-table-wrap:has(+.ad-footer:not([hidden])) .ad-table-scroll{border-radius:0}
/* Keep the sticky block outside both horizontal scrollers so the browser pins it to the page.
   Vertical position never depends on scroll events, animation frames or a translated header. */
.ad-table-sticky-head{position:sticky;top:var(--ad-header-top,70px);z-index:3;background:#f7f8fc;border-radius:10px 10px 0 0}
.ad-table-head-scroll{overflow:auto;scrollbar-width:none;border-radius:inherit}
.ad-table-head-scroll::-webkit-scrollbar{display:none}
/* Alignment: only the 文章 column is left-aligned; every other header and cell (figures, dates,
   copywriters, status badges, the expand marker) is centred. */
.ad-table{width:100%;min-width:960px;border-collapse:collapse;table-layout:fixed}
#articleDashboardHead th{box-shadow:inset 0 -1px 0 var(--border)}
.ad-table-wrap[data-view="seo-internal"]{--ad-reference-width:0px}
.ad-table-wrap[data-view="seo-internal"][data-reference-columns="impressions"]{--ad-reference-width:96px}
.ad-table-wrap[data-view="seo-internal"][data-reference-columns="queries"]{--ad-reference-width:100px}
.ad-table-wrap[data-view="seo-internal"][data-reference-columns="impressions queries"]{--ad-reference-width:196px}
.ad-table-wrap[data-view="seo-internal"] .ad-table{min-width:calc(1040px + var(--ad-reference-width))}
.ad-table-wrap[data-view="seo-internal"][data-show-project="true"] .ad-table{min-width:calc(1120px + var(--ad-reference-width))}
.ad-reset-widths{min-height:36px;padding:6px;border:0;background:none;color:#6c7182;font-family:inherit;font-size:12px;text-decoration:underline;cursor:pointer;white-space:nowrap}
.ad-reset-widths:hover{color:#4f44c4}
.ad-tutorial-link{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 12px;border:1px solid #d8d4f2;border-radius:8px;background:#f4f2ff;color:#6255d9;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;white-space:nowrap}
.ad-tutorial-link:hover{background:#ece9fd;border-color:#b9b1ef}
.ad-table th{position:relative}
.ad-resize{position:absolute;top:0;right:-3px;bottom:0;width:7px;cursor:col-resize;touch-action:none;z-index:1}
#articleDashboardHead th:last-child .ad-resize{right:0}
.ad-resize:hover{background:linear-gradient(90deg,transparent 3px,#c9c4f2 3px,#c9c4f2 4px,transparent 4px)}
.ad-table th{padding:12px 8px;border-bottom:1px solid var(--border);background:#f7f8fc;color:#606577;font-size:12px;font-weight:600;line-height:18px;text-align:center;white-space:normal;overflow-wrap:anywhere}
.ad-table td{padding:12px 8px;border-top:1px solid #f1f2f7;font-size:13px;text-align:center;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-table th.ad-col-primary,.ad-table td.ad-col-primary{text-align:left}
.ad-table tbody tr.ad-row{cursor:pointer}
.ad-table tbody tr.ad-row:hover td{background:#fbfaff}
.ad-table tbody tr.ad-row:focus-visible{outline:2px solid #7669dc;outline-offset:-2px}
.ad-table th:first-child,.ad-table td:first-child{padding-left:16px}
.ad-table th:last-child,.ad-table td:last-child{padding-right:12px}
/* The data table retains semantic column headers without duplicate visible controls. */
.ad-table .ad-accessible-head th{height:0;padding:0;border:0;font-size:0;line-height:0}
.ad-accessible-head th>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ad-table .ad-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.ad-table th.ad-num .ad-sort-button{justify-content:center}
.ad-sep{padding:0 2px;color:#c3c5cf}
.ad-sort-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;white-space:normal;cursor:pointer}
.ad-sort-button:hover,.ad-table th[aria-sort="ascending"] .ad-sort-button,.ad-table th[aria-sort="descending"] .ad-sort-button{color:#574bc6}
.ad-cell-article{overflow:hidden}
.ad-cell-article a{display:block;overflow:hidden;color:#5450b5;font-weight:600;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.ad-cell-article a:hover{text-decoration:underline}
.ad-path{display:block;overflow:hidden;margin-top:4px;color:#6c7182;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.ad-meta{display:flex;flex-wrap:wrap;gap:2px 8px;margin-top:3px;color:#a0a2ae;font-size:11px}
.ad-tag{padding:1px 6px;border-radius:6px;background:#f1f0fb;color:#6255d9}
.ad-project-name{display:block;overflow:hidden;color:#5450b5;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.ad-warn{display:block;overflow:hidden;margin-top:2px;color:#a87517;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.ad-missing{color:#c3c5cf;cursor:help}
.ad-unconnected,.ad-unconfigured{color:#b3b6c2;font-size:11px}
.ad-partial{display:block;margin-top:2px;color:#a87517;font-size:10px}
.ad-state{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:10px;font-size:11px;font-weight:600;white-space:nowrap}
.ad-state.active{background:#e9f8f1;color:#288d63}
.ad-state.inactive{background:#f2f2f5;color:#7f818f}
.ad-attainment{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:10px;font-size:11px;font-weight:700;white-space:nowrap}
.ad-attainment.met{background:#e9f8f1;color:#288d63}
.ad-attainment.not_met{background:#f2f2f5;color:#7f818f}
.ad-attainment.pending_key_events,.ad-attainment.pending_period{background:#fff5e3;color:#a87517}
.ad-attainment.syncing{background:#eef0ff;color:#5d67ba}
.ad-attainment.data_issue{background:#fff0f1;color:#c95661}
.ad-expand{width:28px;color:#6255d9;text-align:center}
.ad-detail-row td{padding:0;background:#fafbff;text-align:left;white-space:normal;overflow:visible}
.ad-detail{padding:14px 18px 16px 18px}
.ad-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:18px}
.ad-months{width:100%;border-collapse:collapse;font-size:12px}
.ad-months th,.ad-months td{padding:6px 8px;border-bottom:1px solid #eceef5;text-align:center}
.ad-months th:first-child,.ad-months td:first-child{text-align:left}
.ad-months thead th{color:#8d909e;font-size:11px;font-weight:500}
.ad-months .ad-num{font-variant-numeric:tabular-nums}
.ad-months tbody th{font-weight:500;color:#4b4e5f}
.ad-months .ad-cell-article a{font-size:12px}
.ad-provisional{margin-left:6px;padding:1px 5px;border-radius:6px;background:#fff5e3;color:#a87517;font-size:10px}
.ad-detail-side{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#4b4e5f}
.ad-tabular-detail{display:flex;flex-direction:column;gap:12px;min-width:0}
.ad-detail-table-wrap{max-height:460px;overflow:auto;border:1px solid #e1e4ef;border-radius:10px;background:#fff}
.ad-detail-months{min-width:720px;table-layout:fixed}
.ad-seo-months th:first-child{width:112px}
.ad-seo-months th:nth-child(2){width:192px}
.ad-seo-months th:last-child{width:190px}
.ad-geo-months th:first-child{width:110px}
.ad-geo-months th:nth-child(2){width:210px}
.ad-external-articles th:first-child{width:32%}
.ad-external-articles th:nth-child(3){width:140px}
.ad-table .ad-detail-months th,.ad-table .ad-detail-months td{padding:10px 12px;vertical-align:top;background:#fff;font-size:12px;line-height:18px;white-space:normal}
.ad-table .ad-detail-months thead th{position:sticky;top:0;z-index:2;background:#f0f2f9;color:#555d72;font-weight:600;border-bottom:1px solid #dfe3ef}
.ad-table .ad-detail-months .ad-month-summary th,.ad-table .ad-detail-months .ad-month-summary td{background:#f1efff;color:#39335d;font-weight:600;border-bottom:1px solid #dfdaf9}
.ad-table .ad-seo-months thead th{padding:8px 10px;line-height:18px}
.ad-table .ad-seo-months .ad-month-summary th,.ad-table .ad-seo-months .ad-month-summary td{padding:9px 10px;vertical-align:middle;white-space:nowrap}
.ad-seo-months .ad-month-summary .ad-month-period{margin:0;line-height:20px;white-space:nowrap;overflow-wrap:normal}
.ad-summary-number{font-size:16px;font-weight:700;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ad-conversion-range{white-space:nowrap}
.ad-conversion-flag{padding:1px 6px;border-radius:5px;background:#fff5e3;color:#946915;font-weight:600}
.ad-conversion-rule{color:#7a8293}
.ad-conversion-limit{color:#946915;font-weight:500}
.ad-detail-months .ad-provisional{display:block;width:max-content;margin:4px 0 0;white-space:nowrap}
.ad-metric-caption,.ad-month-period{display:block;margin-top:3px;color:#70788a;font-size:11px;font-weight:400;line-height:16px;overflow-wrap:anywhere;white-space:normal}
.ad-metric-caption.is-error{color:#b74855}
.ad-sampled{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-column-menu{position:relative;font-size:12px;color:#70788a}
.ad-column-menu[hidden]{display:none}
.ad-column-menu>summary{cursor:pointer;padding:6px 4px;list-style:none}
.ad-column-menu>summary::-webkit-details-marker{display:none}
.ad-column-menu>summary::after{content:' ▾'}
.ad-column-menu>summary:focus-visible{outline:2px solid #7669dc;outline-offset:2px}
.ad-column-options{position:absolute;right:0;top:100%;z-index:5;min-width:148px;padding:8px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 18px #23253b14}
.ad-column-options label{display:flex;gap:8px;align-items:center;padding:8px;white-space:nowrap;cursor:pointer}
.ad-column-options input{accent-color:#7669dc}
.ad-data-notes p{margin:8px 12px;line-height:1.65;overflow-wrap:anywhere}
.ad-reference-summary{display:flex;gap:8px 16px;flex-wrap:wrap;color:#70788a;font-size:12px;padding:2px}
.ad-detail-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ad-history-toggle{min-height:34px;padding:5px 11px;border:1px solid #d8d4f2;border-radius:7px;background:#fff;color:#584cc5;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ad-history-toggle:hover{background:#f0edff}
.ad-history-toggle:focus-visible,.ad-detail-fold>summary:focus-visible{outline:2px solid #7669dc;outline-offset:2px}
.ad-detail-fold{border:1px solid #e3e6f0;border-radius:8px;background:#fff;font-size:12px;color:#586174}
.ad-detail-fold>summary{padding:10px 12px;font-weight:600;cursor:pointer}
.ad-detail-fold[open]>summary{border-bottom:1px solid #eceef5}
.ad-detail-fold .ad-note{padding:10px 12px}
.ad-detail-fold>p{margin:0;padding:8px 12px;line-height:18px;overflow-wrap:anywhere}
.ad-detail-fold .ad-history,.ad-detail-fold .ad-mismatch{margin:8px;background:transparent}
.ad-tabular-detail>.ad-note{padding:0 2px;font-size:11px;line-height:17px}
.ad-history,.ad-mismatch{display:flex;flex-direction:column;gap:4px;padding:9px 11px;border-radius:8px;font-size:11px}
.ad-history{background:#f5f6fb;color:#5b5f72}
.ad-mismatch{background:#fff8ec;color:#8a5c12}
.ad-history b,.ad-mismatch b{font-size:12px}
.ad-history span,.ad-mismatch span{overflow-wrap:anywhere}
.ad-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;font-size:12px}
.ad-facts dt{color:#9294a2}
.ad-facts dd{margin:0;overflow-wrap:anywhere;color:#343647}
.ad-manage-link{color:#5450b5;font-weight:600;text-decoration:none;white-space:nowrap}
.ad-manage-link:hover{text-decoration:underline}
.ad-note{margin:0;padding:10px 4px;color:#8a8d9c;font-size:12px}
.ad-note.is-error{color:#c95661}
.ad-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:-16px;padding:12px 16px;border:1px solid var(--border);border-top:0;border-radius:0 0 11px 11px;background:#fff;color:#6c7182;font-size:12px}
.ad-footer[hidden]{display:none}
.ad-footer nav{display:flex;align-items:center;gap:8px}
.ad-footer nav:empty{display:none}
.ad-footer nav button{min-height:36px;min-width:36px;padding:5px 10px;border:1px solid var(--border);border-radius:7px;background:#fff;color:#4f44c4;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ad-footer nav button:disabled{color:#c3c5cf;cursor:not-allowed}
.ad-page-position{color:#6f7282}
@media (max-width:900px){
  .ad-detail-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .ad-head{flex-wrap:wrap;gap:12px}
  .ad-head-actions{justify-content:flex-start}
  .ad-head h1{font-size:22px;line-height:32px}
  .ad-filters{padding:14px;gap:12px}
  .ad-picker-field,.ad-filters>label{flex-basis:calc(50% - 6px)}
  .ad-picker-field,.ad-filters>.ad-search{flex-basis:100%}
  .ad-head-actions{gap:8px 6px}
  .ad-table-toolbar{flex-wrap:wrap;gap:10px}
  .ad-table-actions{margin-left:auto}
  .ad-sync-line{white-space:normal}
  .ad-detail{padding:12px}
  .ad-export-card{padding:18px}
}
