/* Account-owned metrics are kept visually distinct from subscription research. */
.tta-workspace { min-width: 0; display: grid; gap: 18px; }
.tta-workspace p { margin: 0; }
.tta-workspace h2, .tta-workspace h3 { margin: 0; }
.tta-workspace h2 { font-size: 22px; letter-spacing: -.5px; }
.tta-workspace h3 { font-size: 18px; line-height: 1.5; }
.tta-account-panel, .tta-chart-panel, .tta-articles-panel { background: #fff; border: 1px solid #dfe5ee; border-radius: 14px; }
.tta-account-panel { padding: 24px; }
.tta-account-top, .tta-account-identity, .tta-toolbar, .tta-account-footer, .tta-section-heading, .tta-scopebar { display: flex; align-items: center; gap: 16px; }
.tta-account-top, .tta-account-footer, .tta-section-heading { justify-content: space-between; }
.tta-account-identity { min-width: 0; flex-wrap: wrap; }
.tta-account-identity > div { min-width: 0; }
.tta-account-identity h2 { overflow-wrap: anywhere; }
.tta-account-avatar { display: grid; place-items: center; width: 50px; height: 50px; flex: none; background: #fff0ec; color: #ce4e36; border: 1px solid #f5d5ce; border-radius: 14px; font-size: 25px; font-weight: 800; }
.tta-eyebrow { color: #74829a; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.8; }
.tta-muted { color: #68768d; font-size: 12px; }
.tta-badge { border: 1px solid #e0e5ed; color: #6a768c; background: #f5f7fa; border-radius: 20px; padding: 4px 10px; font-size: 11px; white-space: nowrap; }
.tta-badge[data-state="ready"] { border-color: #cae5de; color: #087567; background: #e9f6f1; }
.tta-toolbar { align-items: flex-end; flex: none; }
.tta-range-control { display: grid; gap: 5px; }
.tta-range-control label, .tta-chart-control, .tta-sort-control { font-size: 12px; color: #6c7991; }
.tta-range-control select { min-width: 150px; }
.tta-account-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid #edf0f5; font-size: 12px; color: #738098; }
.tta-settings-link { font-weight: 600; white-space: nowrap; text-decoration: none; }
.tta-settings-link:hover { text-decoration: underline; }
.tta-message { color: #5c6d89; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.tta-message:empty { display: none; }
#tta-results { min-width: 0; display: grid; gap: 20px; }
.tta-empty { padding: 48px 28px 26px; background: #fff; border: 1px solid #dfe5ee; border-radius: 14px; text-align: center; }
.tta-empty > h3 { margin: 8px auto 10px; font-size: 24px; }
.tta-empty > p { max-width: 560px; margin: 0 auto; color: #6d7b92; font-size: 14px; }
.tta-empty-link { display: inline-block; margin-top: 18px; font-weight: 600; }
.tta-empty-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid #edf0f5; padding-top: 24px; gap: 20px; }
.tta-empty-notes strong { font-size: 13px; color: #3c4e68; }
.tta-empty-notes p { color: #7c89a0; font-size: 12px; margin-top: 6px; }
.tta-scopebar { justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #748198; }
.tta-scope-tag { background: #e9edf9; color: #5264a6; border-radius: 5px; padding: 4px 9px; font-size: 12px; font-weight: 600; }
.tta-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tta-stat { border: 1px solid #e0e6ef; border-radius: 12px; background: #fff; padding: 20px; overflow: hidden; }
.tta-stat-reads { border-color: #bdded4; background: #f0faf6; }
.tta-stat-label { color: #68788f; font-size: 12px; font-weight: 600; }
.tta-stat-number { display: block; margin: 12px 0 8px; color: #14253c; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.3; font-weight: 750; letter-spacing: -1px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tta-stat-reads .tta-stat-number { color: #087466; }
.tta-stat p { font-size: 12px; color: #6f7d93; line-height: 1.7; }
.tta-interaction-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 22px; border: 1px solid #e0e6ef; border-radius: 11px; background: #fff; margin-top: 12px; }
.tta-interaction-strip > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-right: 15px; border-right: 1px solid #edf0f5; }
.tta-interaction-strip > div:last-child { padding-right: 0; border-right: 0; }
.tta-interaction-strip span { font-size: 12px; color: #69798f; }
.tta-interaction-strip strong { font-size: 15px; color: #283e59; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tta-interaction-strip small { grid-column: 1 / -1; color: #77859b; font-size: 11px; }
.tta-chart-panel, .tta-articles-panel { padding: 23px; min-width: 0; }
.tta-section-heading { margin-bottom: 12px; }
.tta-section-note { color: #77859b; font-size: 12px; line-height: 1.7; }
.tta-chart-control, .tta-sort-control { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.tta-chart-control select, .tta-sort-control select { min-height: 38px; font-size: 12px; padding: 7px 28px 7px 10px; }
.tta-chart { margin: 20px -4px 0; min-height: 220px; }
.tta-chart svg { display: block; width: 100%; height: auto; max-height: 320px; }
.tta-chart-grid { stroke: #e9edf3; stroke-width: 1; }
.tta-chart-axis { fill: #8793a8; font: 11px "Microsoft YaHei", sans-serif; }
.tta-chart-bar { fill: #4c79d3; }
.tta-chart g:focus { outline: 2px solid #7998ee; outline-offset: 3px; }
.tta-chart g:hover .tta-chart-bar, .tta-chart g:focus .tta-chart-bar { fill: #1e9b86; }
.tta-chart-missing { fill: #9da9bc; font-size: 12px; }
.tta-chart-note { font-size: 11px; color: #8390a5; padding-top: 8px; border-top: 1px solid #f0f2f6; }
.tta-chart-empty { display: grid; place-items: center; min-height: 200px; color: #8a97ac; font-size: 13px; background: #fafbfe; border-radius: 8px; }
.tta-table-scroll { max-width: 100%; margin-top: 20px; overflow-x: auto; }
.tta-articles-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.tta-articles-table th { padding: 12px 10px; text-align: right; font-size: 11px; font-weight: 500; color: #7e8aa0; background: #f7f9fc; border-bottom: 1px solid #e7ecf4; }
.tta-articles-table th:first-child { text-align: left; width: 57%; padding-left: 14px; }
.tta-articles-table th:last-child, .tta-articles-table td:last-child { padding-right: 15px; }
.tta-articles-table td { padding: 16px 10px; border-bottom: 1px solid #edf0f6; vertical-align: middle; overflow-wrap: anywhere; }
.tta-articles-table tbody tr:hover { background: #fafcfb; }
.tta-article-identity { display: flex; align-items: flex-start; gap: 13px; }
.tta-article-identity > div { min-width: 0; }
.tta-rank { color: #91a0b5; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 600; padding-top: 2px; }
.tta-article-title { color: #283e59; text-decoration: none; font-size: 14px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
a.tta-article-title:hover { color: #087b6b; text-decoration: underline; text-underline-offset: 3px; }
.tta-article-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 7px !important; font-size: 11px; color: #77859b; }
.tta-article-status { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #f0f3f7; color: #758199; }
.tta-article-status[data-status="published"] { background: #eaf6f0; color: #328269; }
.tta-article-status[data-status="awaiting_review"] { background: #fff4df; color: #a57925; }
.tta-article-status[data-status="rejected"], .tta-article-status[data-status="removed"] { background: #fff0ed; color: #b36552; }
.tta-numeric { text-align: right; font-weight: 650; color: #354b66; font-variant-numeric: tabular-nums; }
.tta-table-empty { text-align: center; padding: 30px 15px !important; font-weight: 400; color: #8290a5; }
.tta-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: #7d8ba0; font-size: 11px; }
.tta-pagination > div { display: flex; gap: 8px; }
.tta-pagination button { min-height: 34px; font-size: 11px; padding: 7px 12px; }
.tta-data-notes { padding: 15px 20px; border: 1px solid #e1e7ef; border-radius: 10px; background: #f7f9fc; color: #758399; font-size: 12px; }
.tta-data-notes summary { cursor: pointer; color: #657590; font-weight: 600; }
.tta-data-notes p { margin-top: 12px; line-height: 1.8; }
.tta-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 1150px) {
  .tta-account-top { align-items: flex-start; flex-wrap: wrap; }
  .tta-toolbar { margin-top: 4px; }
  .tta-stat { padding: 17px 14px; }
  .tta-stat-number { font-size: 27px; }
  .tta-stat p { font-size: 11px; }
}
@media (max-width: 700px) {
  .tta-workspace { gap: 14px; }
  .tta-account-panel, .tta-chart-panel, .tta-articles-panel { padding: 18px 15px; border-radius: 11px; }
  .tta-account-identity { gap: 11px; }
  .tta-account-avatar { width: 42px; height: 42px; font-size: 21px; border-radius: 11px; }
  .tta-account-identity h2 { font-size: 18px; }
  .tta-account-identity > div { flex: 1; }
  .tta-badge { margin-left: 53px; margin-top: -3px; }
  .tta-toolbar { width: 100%; gap: 10px; }
  .tta-range-control { flex: 1; min-width: 0; }
  .tta-range-control select { min-width: 0; width: 100%; font-size: 12px; }
  #tta-refresh { font-size: 12px; white-space: nowrap; padding: 10px 12px; min-width: 122px; }
  .tta-account-footer { align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 10px; }
  .tta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tta-stat { padding: 16px 12px; }
  .tta-stat-number { margin-top: 8px; font-size: 26px; }
  .tta-interaction-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 17px; }
  .tta-interaction-strip > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .tta-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tta-section-heading h3 { font-size: 16px; }
  .tta-chart-control, .tta-sort-control { width: 100%; justify-content: space-between; font-size: 11px; }
  .tta-chart { min-height: 130px; margin: 16px -8px 0; }
  .tta-chart-empty { min-height: 140px; font-size: 12px; }
  .tta-chart-note { margin-top: 12px !important; }
  .tta-articles-table thead { display: none; }
  .tta-articles-table tbody, .tta-articles-table tr { display: block; width: 100%; }
  .tta-articles-table tr { padding: 15px 0; border-bottom: 1px solid #e9eef5; }
  .tta-articles-table td:first-child { display: block; padding: 0 0 12px; width: 100%; }
  .tta-articles-table td { border: 0; }
  .tta-articles-table td.tta-numeric { display: inline-block; vertical-align: top; width: 33.333%; padding: 0 0 0 27px; text-align: left; font-size: 13px; }
  .tta-numeric::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 10px; color: #8795a9; font-weight: 400; }
  .tta-article-identity { gap: 10px; }
  .tta-article-title { font-size: 14px; }
  .tta-articles-table .tta-table-empty { display: block; }
  .tta-pagination { flex-wrap: wrap; }
  .tta-empty { padding: 34px 20px 22px; }
  .tta-empty > h3 { font-size: 21px; }
  .tta-empty > p { font-size: 12px; }
  .tta-empty-notes { grid-template-columns: 1fr; gap: 18px; text-align: left; margin-top: 25px; }
}
