/* Targeting inherits the match log's compact ledgers and native game imagery. */
.targeting-view { display:grid; gap:12px; min-width:0; font:14px/1.5 var(--font-sans); }
.targeting-view>* { min-width:0; }
.report-shell.battle-chronicle .targeting-view .panel { margin:0; padding:0; border:1px solid var(--color-border); border-radius:5px; box-shadow:none; overflow:visible; }
.targeting-view button { min-height:32px; border:1px solid var(--color-border-strong); border-radius:4px; padding:4px 10px; background:var(--color-canvas-raised); color:var(--color-text); font:500 12px/1.4 var(--font-sans); cursor:pointer; }
.targeting-view button:hover:not(:disabled) { background:var(--color-surface-hover); border-color:var(--color-brand-strong); }
.report-shell.battle-chronicle .targeting-view button:hover:not(:disabled) { color:var(--color-text); }
.report-shell.battle-chronicle .targeting-view button[aria-pressed="true"]:hover:not(:disabled) { color:var(--color-brand-strong); }
.targeting-view button:disabled { opacity:.45; cursor:default; }
.targeting-view :is(button,summary,[tabindex]):focus-visible { outline:2px solid var(--focus-color); outline-offset:3px; }
.targeting-section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:8px 12px; border-bottom:1px solid var(--color-border); }
.targeting-section-head h3 { margin:0; font-size:16px; font-weight:600; }
.targeting-switch { display:flex; flex-shrink:0; }
.targeting-switch button { border-radius:0; }
.targeting-switch button:first-child { border-radius:4px 0 0 4px; }
.targeting-switch button:last-child { border-radius:0 4px 4px 0; margin-left:-1px; }
.targeting-switch [aria-pressed="true"] { color:var(--color-brand-strong); background:var(--color-brand-soft); border-color:var(--color-brand-border); position:relative; }
.targeting-tables { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.targeting-table-section { min-width:0; }
.targeting-table-section+* { border-left:1px solid var(--color-border-strong); }
.targeting-table-section h4 { display:flex; justify-content:space-between; margin:0; padding:8px 10px; font-size:14px; font-weight:600; border-bottom:1px solid var(--color-border); }
.targeting-table-section h4>span { color:var(--color-text-secondary); font-size:12px; font-weight:400; font-variant-numeric:tabular-nums; }
.targeting-tables[data-grouping="skills"] { grid-template-columns:minmax(0,1fr); }
.targeting-tables[data-grouping="skills"]>.targeting-table-section+* { border-left:0; border-top:1px solid var(--color-border-strong); }
.targeting-table-wrap { overflow-x:auto; scrollbar-color:var(--color-border-strong) var(--color-canvas-raised); scrollbar-width:thin; }
.targeting-view table { width:100%; border-collapse:collapse; margin:0; font-size:13px; font-variant-numeric:tabular-nums; }
.targeting-view th,.targeting-view td { padding:5px 8px; vertical-align:middle; border-bottom:1px solid var(--color-border); background:transparent; }
.targeting-view thead th { text-align:left; color:var(--color-text-secondary); font:400 12px/1.3 var(--font-sans); text-transform:none; letter-spacing:normal; white-space:normal; background:transparent; }
.targeting-view tbody th { text-align:left; font-weight:400; text-transform:none; letter-spacing:normal; white-space:normal; background:transparent; }
.targeting-view tbody tr:not(.targeting-team-row):hover { background:color-mix(in srgb,var(--color-surface-hover) 55%,transparent); }
.targeting-opponent-table { table-layout:fixed; }
.targeting-opponent-table thead th:nth-child(2) { text-align:right; }
.targeting-view .targeting-team-row th { padding-block:4px; color:var(--color-text-secondary); font-size:11px; border-bottom:0; }
.targeting-identity { display:flex; align-items:center; gap:6px; min-width:0; }
.targeting-identity strong { min-width:0; font-size:12px; line-height:15px; font-weight:500; overflow-wrap:anywhere; }
.targeting-identity small,.targeting-number small { display:block; color:var(--color-text-secondary); font-size:10px; line-height:14px; font-weight:400; }
.targeting-number { text-align:right; }
.targeting-share { font-size:14px; font-weight:650; white-space:nowrap; }
.targeting-opponent-table .targeting-number small { font-size:11px; white-space:nowrap; }
.targeting-skill-list { display:grid; grid-template-columns:repeat(auto-fill,32px); gap:4px; align-items:center; }
.targeting-counted-skill { display:inline-flex; position:relative; isolation:isolate; z-index:1; align-items:center; width:32px; height:32px; }
.targeting-counted-skill:has(.skill-token[aria-expanded="true"]) { z-index:40; }
.targeting-counted-skill b { position:absolute; z-index:2; right:0; bottom:0; min-width:14px; padding-inline:2px; text-align:center; border-radius:2px; background:var(--color-canvas-raised); color:var(--color-text); font:600 10px/13px var(--font-sans); pointer-events:none; }
.targeting-view .skill-token { display:inline-flex; align-items:center; justify-content:flex-start; background:none; border:0; box-shadow:none; border-radius:0; padding:0; min-height:32px; gap:8px; }
.targeting-view .skill-token.icon-only { justify-content:center; width:32px; height:32px; min-width:32px; }
.targeting-view .skill-token-icon,.targeting-view .skill-token-icon img { width:28px; height:28px; max-width:none; border-radius:2px; flex-shrink:0; }
.targeting-view .skill-token-label { font-size:13px; font-weight:500; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.targeting-skill-table { table-layout:fixed; min-width:700px; }
.targeting-skill-table th,.targeting-skill-table td { padding-inline:4px; }
.targeting-skill-table th:first-child { padding-left:8px; }
.targeting-skill-table .skill-token { display:grid; grid-template-columns:28px minmax(0,1fr); justify-content:start; gap:8px; width:100%; text-align:left; }
.targeting-skill-table tbody th,.targeting-skill-table tbody td { height:36px; padding-block:3px; }
.targeting-skill-table .skill-token-label { line-height:16px; }
.targeting-skill-table th:not(:first-child),.targeting-skill-table td { text-align:center; }
.targeting-matrix-player { display:grid; grid-template-rows:30px auto; align-content:start; gap:4px; text-wrap:balance; line-height:14px; }
.targeting-skill-table thead th { padding-block:8px; vertical-align:top; }
.targeting-skill-table thead th:nth-child(-n+2) { vertical-align:bottom; padding-bottom:10px; }
.targeting-matrix-player>span:last-child { min-height:28px; }
.targeting-matrix-identity { display:flex; justify-content:center; align-items:center; }
.targeting-zero,.targeting-matrix-player small { color:var(--color-text-secondary); }
.report-shell.battle-chronicle .targeting-view .targeting-chart { margin:0; inline-size:100%; min-block-size:0; border:0; border-radius:0; background:transparent; background-image:none; box-shadow:none; }
.targeting-outcome-legend { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px 14px; padding:4px 12px 10px; font-size:11px; color:var(--color-text-secondary); }
.targeting-outcome { color:var(--color-text-secondary); }
.targeting-outcome.interrupted { color:#d1ab68; }
.targeting-outcome.knockdown { color:#d9c0ff; }
.targeting-outcome-legend>span { display:inline-flex; align-items:center; gap:4px; }
.targeting-outcome-legend svg,.targeting-scroll-controls svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; }
.targeting-evidence { color:var(--color-text-secondary); font-size:12px; }
.targeting-evidence>summary { cursor:pointer; min-height:44px; padding:8px 0; color:var(--color-brand-strong); }
.targeting-use-ledger { min-width:620px; }
.targeting-use-ledger time { white-space:nowrap; }
.targeting-empty { margin:0; padding:20px; color:var(--color-text-secondary); }
.targeting-tooltip-entry { padding:8px 0; border-bottom:1px solid var(--color-border); }
.targeting-tooltip-entry:last-child { border-bottom:0; }
.targeting-tooltip time { font-size:12px; color:var(--color-text-secondary); }
.targeting-tooltip p { margin:5px 0 0; font-size:12px; }
.targeting-tooltip-skill { display:flex; gap:8px; align-items:center; margin-top:5px; }
.targeting-tooltip-skill img { border-radius:2px; }
.targeting-selected-player { display:flex; align-items:center; gap:10px; min-width:0; }
.targeting-tab .targeting-avatar { display:inline-block; position:relative; flex:none; width:28px; height:28px; vertical-align:middle; }
.targeting-tab .targeting-elite { display:block; width:28px; height:28px; border:1px solid var(--color-brand-border); border-radius:2px; }
.targeting-tab .targeting-primary { position:absolute; right:1px; bottom:1px; display:block; width:13px; height:13px; border:1px solid var(--color-border-strong); border-radius:2px; background:var(--color-canvas); }
.targeting-elite-missing { display:grid; place-items:center; width:28px; height:28px; background:var(--color-canvas-raised); border:1px dashed var(--color-border-strong); color:var(--color-text-secondary); font-size:13px; }
.targeting-timeline-title { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.targeting-full-range { color:var(--color-text-secondary); font-size:12px; font-variant-numeric:tabular-nums; }
.targeting-scroll-controls { display:flex; gap:4px; }
.targeting-scroll-controls button { display:inline-flex; align-items:center; justify-content:center; }
.targeting-plot { display:grid; grid-template-columns:190px minmax(0,1fr); min-width:0; }
.targeting-lane-labels { padding:10px 8px 30px; min-width:0; }
.targeting-lane-labels>div { display:flex; align-items:center; gap:8px; height:44px; min-width:0; font-size:12px; line-height:14px; }
.targeting-lane-labels>div>span:last-child { min-width:0; overflow-wrap:anywhere; }
.targeting-lane-labels small { display:block; color:var(--color-text-secondary); font-size:10px; line-height:11px; }
.targeting-lane-labels .targeting-avatar,.targeting-lane-labels .targeting-elite { width:24px; height:24px; }
.targeting-chart-column { min-width:0; }
@media(min-width:701px) { .targeting-skill-table { min-width:0; } }
@media(max-width:760px) {
  .targeting-tables { grid-template-columns:minmax(0,1fr); }
  .targeting-table-section+* { border-left:0; border-top:1px solid var(--color-border-strong); }
}
@media(max-width:640px) {
  .targeting-plot { grid-template-columns:132px minmax(0,1fr); }
  .targeting-lane-labels>div { gap:5px; font-size:11px; }
  .targeting-lane-labels { padding-inline:6px; }
}
@media(pointer:coarse) {
  .targeting-view button,.targeting-skill-table .skill-token { min-height:44px; }
  .targeting-view .skill-token.icon-only { min-width:44px; width:44px; height:44px; }
  .targeting-counted-skill { width:44px; height:44px; }
  .targeting-skill-list { grid-template-columns:repeat(auto-fill,44px); }
}

.targeting-canvas-scroll { min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--color-brand) var(--color-canvas-raised); }
.targeting-time-navigation { padding:4px 14px 8px; }
.targeting-time-navigation input { display:block;appearance:none;width:100%;height:24px;min-height:24px;padding:0;border:0;border-radius:0;box-shadow:none;margin:0;cursor:ew-resize;background:transparent;accent-color:var(--color-brand-strong); }
.targeting-time-navigation input::-webkit-slider-runnable-track { height:6px;background:var(--color-brand-soft);border:1px solid var(--color-border-strong);border-radius:3px; }
.targeting-time-navigation input::-webkit-slider-thumb { appearance:none;width:22px;height:16px;margin-top:-6px;border:1px solid var(--color-brand-strong);border-radius:3px;background:var(--color-brand); }
.targeting-time-navigation input::-moz-range-track { height:6px;background:var(--color-brand-soft);border:1px solid var(--color-border-strong);border-radius:3px; }
.targeting-time-navigation input::-moz-range-thumb { width:22px;height:16px;border:1px solid var(--color-brand-strong);border-radius:3px;background:var(--color-brand); }
.targeting-time-navigation input:focus-visible { outline:2px solid var(--focus-color);outline-offset:3px; }
.targeting-time-navigation>div { display:flex;justify-content:space-between;gap:8px;color:var(--color-text-secondary);font-size:11px;font-variant-numeric:tabular-nums; }
@media(pointer:coarse) { .targeting-time-navigation input { height:44px; } }

.targeting-weapon-missing { display:grid;place-items:center;width:28px;height:28px;border:1px dashed var(--color-border-strong);color:var(--color-text-secondary);font-size:13px; }

.targeting-weapon-popover .weapon-item-stat-line { font-size:13px !important;line-height:1.45 !important; }
.targeting-weapon-popover { --gw-item-color:#a0f5f8;gap:8px;white-space:normal; }
.targeting-weapon-stats .weapon-item-stat-lines { display:grid;gap:3px;list-style:none;padding:0;margin:8px 0; }
.targeting-weapon-stats .weapon-item-stat-line { font-size:12px;line-height:1.4;color:#a0f5f8; }
.targeting-weapon-stats .weapon-item-stat-segment.basic { color:#fff; }
.targeting-weapon-stats .weapon-item-stat-segment.dull { color:#aaa393; }
