.author-graph {
  --ag-purple: var(--c-exm);
  --ag-purple-soft: color-mix(in srgb, var(--ag-purple) 12%, transparent);
  --ag-axis: color-mix(in srgb, var(--muted) 78%, var(--text));
  --ag-grid: color-mix(in srgb, var(--border) 72%, transparent);
  --ag-time: color-mix(in srgb, var(--muted) 70%, transparent);
  --ag-flow: color-mix(in srgb, var(--accent) 82%, var(--text));
  --ag-incoming: var(--c-idc);
  --ag-outgoing: var(--c-col);
  width: 100%; padding: 24px clamp(16px, 2.3vw, 36px) 44px; color: var(--text);
}

.ag-view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ag-view-header h1 { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.25; margin: 0 0 6px; }
.ag-view-header p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

.ag-combobox-field { width: min(680px, 100%); position: relative; z-index: 30; margin-bottom: 18px; }
.ag-field-label, .ag-small-label {
  display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750;
  letter-spacing: .45px; text-transform: uppercase;
}
.ag-combobox { position: relative; }
.ag-author-input {
  width: 100%; min-height: 44px; padding: 9px 44px 9px 13px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--input-bg); color: var(--text); font-size: 14px; outline: none;
}
.ag-author-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ag-combo-button {
  position: absolute; top: 5px; right: 5px; width: 34px; height: 34px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 18px; cursor: pointer;
}
.ag-combo-button:hover { background: var(--hover-surface); color: var(--text); }
.ag-combo-options {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 58vh); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card); box-shadow: 0 14px 40px var(--shadow);
  padding: 5px; z-index: 40;
}
.ag-combo-options[hidden] { display: none; }
.ag-combo-count {
  flex: 0 0 auto; padding: 7px 10px 8px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 700;
}
.ag-combo-option-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 4px; }
.ag-author-option {
  width: 100%; min-height: 52px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; border: 0; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.ag-author-option:hover, .ag-author-option.active { background: var(--accent-soft); }
.ag-author-option[aria-selected="true"] { box-shadow: inset 3px 0 var(--accent); }
.ag-option-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ag-option-main strong { font-size: 13.5px; }
.ag-option-main span { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11.5px; }
.ag-option-meta { flex-shrink: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.ag-combo-empty { padding: 22px 12px; color: var(--muted); font-size: 13px; text-align: center; }

.ag-section-title { margin: 0; color: var(--text); font-size: 15px; line-height: 1.35; }
.ag-section-description { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.ag-coverage {
  margin: 0 0 18px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--accent-soft) 38%, var(--card)));
}
.ag-coverage-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0;
}
.ag-coverage-stat {
  min-width: 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 9px; background: color-mix(in srgb, var(--card) 82%, transparent);
}
.ag-coverage-stat dt { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.ag-coverage-stat dd {
  margin: 3px 0 0; color: var(--accent); font-size: clamp(19px, 2vw, 25px); font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.ag-ambiguous-notice {
  width: min(680px, 100%); margin: -6px 0 14px; padding: 11px 13px;
  border: 1px solid var(--accent-soft-border); border-radius: 9px;
  background: var(--accent-soft); color: var(--text); font-size: 12px; line-height: 1.55;
}

.ag-directory { margin-top: 20px; }
.ag-directory-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 10px;
}
.ag-directory-header > div:first-child { max-width: 760px; }
.ag-directory-progress {
  flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 11px; font-weight: 750; white-space: nowrap;
}
.ag-directory-viewport {
  max-height: min(600px, 66vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.ag-directory-viewport:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 36%, transparent); outline-offset: 2px;
}
.ag-directory-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 7px;
}
.ag-directory-author {
  min-width: 0; min-height: 91px; display: flex; flex-direction: column; align-items: stretch; gap: 5px;
  padding: 10px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--card);
  color: var(--text); text-align: left; cursor: pointer;
}
.ag-directory-author:hover { border-color: var(--accent); background: var(--accent-soft); }
.ag-directory-author:focus-visible {
  border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: 1px;
}
.ag-directory-author-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-directory-author-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ag-directory-paper-count {
  flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; background: var(--hover-surface);
  color: var(--accent); font-size: 10px; font-weight: 800;
}
.ag-directory-context {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10.5px;
}
.ag-directory-meta { margin-top: auto; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.ag-directory-actions { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }

.ag-selection-empty {
  padding: 15px 17px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card); display: flex; flex-direction: column;
  align-items: flex-start; gap: 5px; text-align: left;
}
.ag-selection-empty h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 650; }
.ag-selection-empty p { margin: 0; max-width: 520px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.ag-discovery { margin-top: 15px; }
.ag-discovery-toggle {
  width: fit-content; max-width: 100%; padding: 8px 3px; color: var(--muted);
  font-size: 12px; line-height: 1.5; cursor: pointer;
}
.ag-discovery-toggle:hover { color: var(--accent); }
.ag-discovery-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.ag-discovery-content { padding-top: 14px; }

.ag-empty-state, .ag-status {
  min-height: 260px; border: 1px dashed var(--border); border-radius: 12px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 36px; color: var(--muted); text-align: center;
}
.ag-empty-mark, .ag-status-icon { color: var(--accent); font-size: 36px; line-height: 1; }
.ag-status-loading .ag-status-icon { animation: ag-spin 1.1s linear infinite; }
.ag-status-error .ag-status-icon { color: var(--red); font-weight: 800; }
.ag-status-text { max-width: 680px; font-size: 13px; line-height: 1.6; }
@keyframes ag-spin { to { transform: rotate(360deg); } }

.ag-author-summary {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 24px 0 12px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 11px; background: var(--card);
}
.ag-eyebrow { margin-bottom: 4px; color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.ag-author-name { margin: 0; font-size: 22px; line-height: 1.25; }
.ag-author-name:focus { outline: none; }
.ag-author-name:focus-visible {
  border-radius: 3px; outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 4px;
}
.ag-author-disambiguation {
  display: inline-flex; margin-top: 6px; padding: 3px 8px; border-radius: 999px;
  background: var(--hover-surface); color: var(--muted); font-size: 10.5px; font-weight: 650;
}
.ag-author-meta, .ag-author-affiliation { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ag-author-affiliation { max-width: 850px; }
.ag-filter-count { flex-shrink: 0; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.ag-author-coverage {
  flex: 0 0 auto; max-width: 310px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  padding: 7px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  font-size: 11px; text-align: right;
}
.ag-author-coverage strong { font-size: 11.5px; }
.ag-author-coverage span { color: var(--muted); font-size: 10px; }
.ag-back-overview {
  min-height: 32px; margin: 0 0 10px; padding: 4px 8px; border: 0; border-radius: 7px;
  background: transparent; color: var(--accent); font-size: 11.5px; font-weight: 750; cursor: pointer;
}
.ag-back-overview:hover { background: var(--accent-soft); }
.ag-back-overview:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 1px; }

.ag-chart-section {
  margin-top: 12px; padding: 14px 14px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
.ag-chart-section-overview { margin-top: 18px; }
.ag-overview-heading { margin: 1px 0 12px; }
.ag-discovery-prompt {
  margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--text); font-size: 12px; line-height: 1.55;
}
.ag-controls { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ag-control-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ag-chart-actions { gap: 5px; }
.ag-switch { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; cursor: pointer; }
.ag-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ag-switch-track { width: 30px; height: 17px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.ag-switch-track::after { content: ''; width: 11px; height: 11px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px var(--shadow); transition: transform .15s; }
.ag-switch input:checked + .ag-switch-track { background: var(--accent); }
.ag-switch input:checked + .ag-switch-track::after { transform: translateX(13px); }
.ag-switch input:focus-visible + .ag-switch-track { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.ag-switch-label { font-weight: 600; }
.ag-corpus-notice { margin: 0 0 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ag-chart-note { display: inline-flex; margin: 2px 8px 7px 0; padding: 4px 8px; border-radius: 6px; background: var(--hover-surface); color: var(--muted); font-size: 11px; }

.ag-chart-frame {
  width: 100%; min-height: 430px; position: relative; overflow-x: auto; overflow-y: hidden;
  border-radius: 8px; background: var(--surface); touch-action: pan-x pan-y pinch-zoom; scrollbar-gutter: stable;
}
.ag-chart { display: block; width: 100%; height: auto; min-height: 430px; max-height: 700px; cursor: grab; user-select: none; }
.ag-chart-overview { min-height: 600px; }
.ag-chart.panning { cursor: grabbing; }
.ag-chart:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: -3px; }
.ag-grid line { stroke: var(--ag-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ag-grid .ag-year-grid { stroke: color-mix(in srgb, var(--ag-axis) 22%, transparent); stroke-dasharray: 2 5; }
.ag-axis-tick, .ag-axis-month, .ag-axis-year { fill: var(--ag-axis); font-size: 10.5px; font-family: 'Pretendard', sans-serif; }
.ag-axis-month { font-size: 9px; font-variant-numeric: tabular-nums; }
.ag-axis-year { font-size: 11px; font-weight: 750; }
.ag-axis-label { fill: var(--ag-axis); font-size: 11.5px; font-family: 'Pretendard', sans-serif; font-weight: 700; }
.ag-time-spine { stroke: var(--ag-time); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ag-month-tick { stroke: var(--ag-time); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ag-month-tick.is-quarter { stroke: var(--ag-axis); stroke-width: 1.4; }
.ag-month-anchor { fill: var(--card); stroke: var(--ag-axis); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ag-coordinate-tether { stroke: color-mix(in srgb, var(--muted) 28%, transparent); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.ag-time-arrow { fill: var(--ag-axis); }
.ag-publication-edges { transition: opacity .14s ease; }
.ag-publication-edges.is-hidden { opacity: 0; pointer-events: none; }
.ag-publication-edge {
  fill: none; stroke: var(--ag-flow); stroke-width: 1.8; opacity: .58;
  vector-effect: non-scaling-stroke; transition: opacity .12s ease, stroke-width .12s ease;
}
.ag-publication-edge.is-dimmed { opacity: .035; }
.ag-publication-edge.is-incident { opacity: 1; stroke-width: 2.8; }
.ag-publication-arrow {
  fill: none; stroke: var(--ag-flow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ag-citation-edges { transition: opacity .14s ease; }
.ag-citation-edges.is-hidden { opacity: 0; pointer-events: none; }
.ag-citation-edge {
  fill: none; stroke: var(--ag-purple); stroke-width: 1.35; stroke-dasharray: 5 4;
  opacity: .38; vector-effect: non-scaling-stroke; transition: opacity .12s ease, stroke .12s ease, stroke-width .12s ease;
}
.ag-chart-overview .ag-citation-edge { opacity: .22; stroke-width: 1.1; }
.ag-citation-edge.is-dimmed { opacity: .025; }
.ag-citation-edge.is-incident { opacity: 1; stroke-width: 2.6; stroke-dasharray: 5 4; }
.ag-citation-edge.is-incoming { stroke: var(--ag-incoming); }
.ag-citation-edge.is-outgoing { stroke: var(--ag-outgoing); }
.ag-citation-arrow { fill: var(--ag-purple); }
.ag-citation-arrow-incoming { fill: var(--ag-incoming); }
.ag-citation-arrow-outgoing { fill: var(--ag-outgoing); }
.ag-node { cursor: pointer; outline: none; transition: opacity .12s ease; }
.ag-node-hit { fill: transparent; stroke: none; pointer-events: all; }
.ag-node-shape {
  fill: var(--accent); stroke: color-mix(in srgb, var(--muted) 52%, var(--surface)); stroke-width: 1.8;
  vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center;
  transition: transform .12s ease, fill .12s ease, stroke .12s ease, stroke-width .12s ease;
}
.ag-node.ag-oa-open .ag-node-shape { stroke: var(--green); stroke-width: 2.2; }
.ag-node.ag-oa-unknown .ag-node-shape { stroke: var(--muted); stroke-dasharray: 3 2; }
.ag-node.selected .ag-node-shape { fill: var(--ag-purple); transform: scale(1.15); }
.ag-node:hover .ag-node-shape, .ag-node.hovered .ag-node-shape, .ag-node:focus .ag-node-shape { transform: scale(1.12); }
.ag-node:focus .ag-node-shape { stroke: var(--text); stroke-width: 3; }
.ag-chart.has-incident-focus .ag-node.is-dimmed { opacity: .16; }
.ag-chart.has-incident-focus .ag-node.is-focus { opacity: 1; }
.ag-node.is-flow-related .ag-node-shape { stroke: var(--ag-flow); stroke-width: 2.6; }
.ag-node.is-citing .ag-node-shape { stroke: var(--ag-incoming); stroke-width: 2.6; }
.ag-node.is-cited .ag-node-shape { stroke: var(--ag-outgoing); stroke-width: 2.6; }
.ag-node.is-focus .ag-node-shape { stroke: var(--text); stroke-width: 3; transform: scale(1.16); }
.ag-node-label {
  display: none; fill: var(--text); stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round;
  font-size: 10.5px; font-family: 'Pretendard', sans-serif; font-weight: 650; pointer-events: none;
}
.ag-node-label.persistent, .ag-node.labels-enabled:hover .ag-node-label,
.ag-node.labels-enabled.hovered .ag-node-label, .ag-node.labels-enabled:focus .ag-node-label,
.ag-node.labels-enabled.selected .ag-node-label { display: block; }
.ag-tooltip {
  position: absolute; z-index: 20; max-width: min(340px, calc(100% - 24px)); transform: translate(-50%, -100%);
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--text);
  box-shadow: 0 6px 20px var(--shadow); font-size: 11.5px; line-height: 1.45; white-space: pre-line; pointer-events: none;
}

.ag-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 4px 1px; color: var(--muted); font-size: 10.5px; }
.ag-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ag-legend-item i { display: inline-block; flex-shrink: 0; }
.ag-legend-time { width: 23px; height: 0; border-top: 2px solid var(--ag-flow); position: relative; }
.ag-legend-time::after { content: ''; position: absolute; right: -1px; top: -4px; border: 3px solid transparent; border-left-color: var(--ag-flow); }
.ag-legend-citation { width: 23px; height: 0; border-top: 2px dashed var(--ag-purple); }
.ag-legend-citation { position: relative; }
.ag-legend-citation::after { content: ''; position: absolute; right: -2px; top: -4px; border: 3px solid transparent; border-left-color: var(--ag-purple); }
.ag-legend-oa, .ag-legend-closed, .ag-legend-unknown { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--green); background: var(--accent); }
.ag-legend-closed { border-color: color-mix(in srgb, var(--muted) 45%, transparent); border-width: 1.5px; }
.ag-legend-unknown { border-color: var(--muted); border-style: dashed; }

.ag-results { margin-top: 18px; }
.ag-results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.ag-results-header h3 { margin: 0; font-size: 15px; }
.ag-view-toggle { display: flex; gap: 4px; }
.ag-paper-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; list-style: none; }
.ag-paper-item {
  min-width: 0; min-height: 76px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); transition: border-color .15s, background .15s;
}
.ag-paper-item:hover { border-color: var(--accent); }
.ag-paper-item.selected, .ag-paper-table tr.selected td { background: var(--accent-soft); }
.ag-paper-item.selected { border-color: var(--accent); }
.ag-paper-year { color: var(--accent); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-paper-copy { min-width: 0; }
.ag-paper-title { border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.45; text-align: left; cursor: pointer; }
.ag-paper-title:hover { color: var(--accent); text-decoration: underline; }
.ag-paper-meta { margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.ag-paper-table .ag-paper-title { font-size: 12px; }
.ag-paper-table th:first-child { width: 66px; }
.ag-paper-table th:nth-last-child(-n+3) { width: 88px; }

.ag-oa-badge.ag-oa-open { background: var(--green-soft); color: var(--green); }
.ag-oa-badge.ag-oa-gold { background: color-mix(in srgb, var(--c-lgl) 16%, transparent); color: var(--c-lgl); }
.ag-oa-badge.ag-oa-green { background: var(--green-soft); color: var(--green); }
.ag-oa-badge.ag-oa-closed { background: var(--hover-surface); color: var(--muted); }
.ag-oa-badge.ag-oa-unknown { background: var(--hover-surface); color: var(--muted); border: 1px dashed var(--muted); }
.ag-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ag-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.ag-detail-metric { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--hover-surface); }
.ag-detail-metric strong { display: block; margin-bottom: 3px; color: var(--accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.ag-detail-metric span { color: var(--muted); font-size: 11px; }
.ag-detail-authors { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-author-chip { min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--input-bg); color: var(--text); font-size: 11.5px; cursor: pointer; }
.ag-author-chip:hover:not([disabled]) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ag-author-chip[disabled] { cursor: default; opacity: .72; }
.ag-detail-section { margin-top: 18px; }
.ag-detail-section > .dp-sec-title { margin-top: 0; }
.ag-detail-table th { width: 34%; color: var(--muted); text-transform: none; letter-spacing: 0; vertical-align: top; }
.ag-detail-table td { line-height: 1.55; }
.ag-document-meta { margin-bottom: 11px; }
.ag-document-tags-label { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.ag-document-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ag-abstract { white-space: pre-wrap; }
.ag-app-pill { color: var(--accent); border-color: var(--accent-soft-border); background: var(--accent-soft); }
.ag-reference-list { margin: 0; padding-left: 28px; }
.ag-reference-list li { margin-bottom: 9px; padding-left: 3px; color: var(--text); font-size: 11.5px; line-height: 1.62; overflow-wrap: anywhere; }
.ag-inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ag-source-link { margin-top: 20px; }
.ag-detail-loading { padding: 70px 12px; color: var(--muted); text-align: center; }
.ag-detail-error { color: var(--red); }

@media (max-width: 900px) {
  .author-graph { padding: 18px 14px 34px; }
  .ag-chart-frame, .ag-chart { min-height: 420px; }
  .ag-paper-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ag-view-header, .ag-author-summary, .ag-controls { align-items: stretch; flex-direction: column; }
  .ag-author-summary { padding: 14px; }
  .ag-filter-count { align-self: flex-start; }
  .ag-author-coverage { max-width: none; align-items: flex-start; text-align: left; }
  .ag-coverage { padding: 13px; }
  .ag-coverage-stats { grid-template-columns: 1fr; }
  .ag-coverage-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ag-coverage-stat dd { margin: 0; font-size: 20px; }
  .ag-directory-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .ag-directory-grid { grid-template-columns: 1fr; }
  .ag-directory-viewport { max-height: 58vh; }
  .ag-option-meta { display: none; }
  .ag-option-main span { max-width: 74vw; }
  .ag-chart-section { padding: 10px 7px 8px; }
  .ag-chart-overview { min-height: 520px; }
  .ag-chart-frame, .ag-chart { min-height: 390px; }
  .ag-paper-item { grid-template-columns: 42px minmax(0, 1fr); }
  .ag-paper-item > .type-badge { grid-column: 2; justify-self: start; }
  .ag-paper-table th:nth-child(3), .ag-paper-table td:nth-child(3),
  .ag-paper-table th:nth-child(5), .ag-paper-table td:nth-child(5) { display: none; }
  .ag-detail-metrics { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-publication-edges, .ag-publication-edge, .ag-citation-edges, .ag-citation-edge, .ag-node, .ag-node-shape { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-status-loading .ag-status-icon { animation: none; }
  .ag-switch-track, .ag-switch-track::after, .ag-node-shape, .ag-paper-item { transition: none; }
}
