.au-recovery { margin:20px 0; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface-1,var(--bg)); overflow-wrap:anywhere; }
.au-recovery[hidden], .au-recovery button[hidden] { display:none !important; }
.au-recovery h2 { font-size:18px; margin:0 0 8px; }
.au-recovery-actions { display:flex; flex-wrap:wrap; gap:8px; }
.au-recovery-actions button { min-height:44px; }
#audience-col { display:none; grid-column:2 / -1; grid-row:1; min-width:0; min-height:0; flex-direction:column; background:var(--bg); color:var(--text); }
body[data-session="audience"] #audience-col { display:flex; }
body[data-session="audience"] #thread-col, body[data-session="audience"] #canvas-col, body[data-session="audience"] #today-col, body[data-session="audience"] #tasks-col, body[data-session="audience"] #projects-col { display:none; }
body[data-session="audience"] #body { grid-template-columns:var(--sidebar-w,280px) minmax(0,1fr) 0; }
body[data-session="audience"].sidebar-collapsed #body { grid-template-columns:0 minmax(0,1fr) 0; }
#audienceScroll { overflow:auto; flex:1; min-height:0; padding:24px clamp(16px,3vw,36px) 48px; }
#audienceView, #companyAudienceView, .au-tabs { max-width:1440px; margin:0 auto; overflow-wrap:anywhere; }
.au-tabs { display:flex; gap:20px; margin-bottom:20px; flex-wrap:wrap; border-bottom:1px solid var(--line-soft); }
.au-tabs .au-button { border:0; border-bottom:2px solid transparent; border-radius:0; padding:10px 0; font-size:13px; color:var(--text-3); background:transparent; }
.au-tabs [aria-current="page"] { background:transparent; border-color:var(--accent-text); color:var(--text); font-weight:600; }
.au-tabs :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
:root[data-skin="calm"] body.sidebar-collapsed[data-session="audience"] #audience-col { padding-top:60px; box-sizing:border-box; }
:root[data-skin="calm"] body.sidebar-collapsed[data-session="audience"] .calm-flead { display:inline-flex; }
:root[data-skin="calm"] body[data-session="audience"] .calm-flead .calm-hb { min-width:44px; min-height:44px; }
.au-heading { margin:8px 0 24px; }
.au-heading h1 { margin:4px 0 8px; font-size:28px; line-height:1.25; letter-spacing:-.025em; }
.au-eyebrow, .au-caption { font-size:13px; color:var(--text-2,var(--text)); line-height:1.6; }
.au-eyebrow { font-size:11px; color:var(--text-3); }
.au-heading .au-muted { font-size:13px; color:var(--text-3); }
.au-search-help { position:relative; flex:0 0 auto; margin:0; font-size:12px; color:var(--text-3); }
.au-search-help summary { width:fit-content; min-height:44px; display:flex; align-items:center; gap:8px; cursor:pointer; }
.au-search-help summary::before { content:'+'; font-size:14px; }
.au-search-help[open] summary::before { content:'−'; }
.au-search-help .au-caption { position:absolute; top:48px; right:0; width:min(340px,calc(100vw - 64px)); padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface-1); box-shadow:0 8px 24px color-mix(in srgb,var(--text) 8%,transparent); z-index:6; font-size:12px; }
.au-muted { font-size:14px; color:var(--text-2,var(--text)); line-height:1.55; margin:6px 0; }
.au-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.au-field { display:flex; flex-direction:column; gap:6px; min-width:0; flex:1 1 150px; font-size:13px; color:var(--text-2,var(--text)); }
.au-field:first-child { flex:2 1 250px; }
:is(#audienceView,#companyAudienceView) input:not([type=checkbox]), :is(#audienceView,#companyAudienceView) select, .au-button { box-sizing:border-box; min-width:44px; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; color:var(--text); background:var(--surface,var(--bg)); font:inherit; }
:is(#audienceView,#companyAudienceView) select { appearance:none; -webkit-appearance:none; padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23828a96' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size:16px; background-repeat:no-repeat; background-position:right 12px center; }
.au-button { cursor:pointer; text-align:left; }
.au-filters .au-button { font-size:13px; }
.au-button:hover { background:var(--hover,var(--bg)); }
.au-button.au-primary { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
:is(#audienceView,#companyAudienceView) :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
:is(#audienceView,#companyAudienceView) :disabled { opacity:.55; cursor:default; }
.au-selection, .au-paging { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0; }
.au-selection { border:1px solid var(--line-soft); border-radius:10px; padding:8px 12px; background:var(--surface-1,var(--bg)); }
.au-selection .au-button { font-size:13px; }
.au-selection:not(.has-selection) { border:0; padding:0; background:transparent; }
.au-selection[hidden] { display:none !important; }
.au-selection.has-selection { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 6%,var(--bg)); }
.au-selection p { flex:1 1 200px; font-size:13px; line-height:1.5; margin:0; }
.au-paging { justify-content:flex-end; font-size:13px; }
.au-paging .au-muted { margin:0 8px; font-variant-numeric:tabular-nums; }
.au-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; }
.au-layout.has-panel { grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr); }
.au-results { min-width:0; }
.au-table-wrap { overflow:auto; max-height: min(68vh,760px); border:1px solid var(--line); border-radius:10px; scrollbar-width:thin; scroll-padding-top:48px; background:var(--bg); }
.au-table { width:100%; min-width:820px; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:13px; }
.au-table-caption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.au-table th { position:sticky; top:0; z-index:3; text-align:left; color:var(--text-2,var(--text)); font-weight:500; background:var(--surface-1,var(--bg)); height:42px; box-sizing:border-box; }
.au-table th, .au-table td { padding:6px 12px; border-bottom:1px solid var(--line-soft); border-right:0; vertical-align:middle; line-height:1.45; overflow-wrap:anywhere; }
.au-table th { font-size:12px; color:var(--text-3); }
.au-table th:last-child, .au-table td:last-child { border-right:0; }
.au-table tbody tr:last-child td { border-bottom:0; }
.au-table th:first-child, .au-table td:first-child { width:56px; padding:4px 6px; }
.au-table th:nth-child(2) { width:32%; }
.au-table th:nth-child(3) { width:23%; }
.au-table th:nth-child(4) { width:20%; }
.au-table th:last-child { width:auto; }
.au-table tbody tr { --au-row-bg:var(--bg); }
.au-table tbody tr:hover, .au-table tbody tr:focus-within { --au-row-bg:color-mix(in srgb,var(--accent) 4%,var(--bg)); }
.au-table tbody tr.is-selected { --au-row-bg:color-mix(in srgb,var(--accent) 8%,var(--bg)); }
.au-table td { background:var(--au-row-bg); }
.au-table :is(th,td):first-child { position:sticky; left:0; z-index:2; }
.au-table :is(th,td):nth-child(2) { position:sticky; left:56px; z-index:2; }
.au-table thead th:first-child, .au-table thead th:nth-child(2) { z-index:4; }
.au-check { display:flex; width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; }
.au-check input { width:17px; height:17px; accent-color:var(--accent); margin:0; }
.au-name { display:flex; align-items:center; gap:10px; border:0; padding:0; background:transparent; font-weight:600; width:100%; border-radius:6px; }
.au-name:hover { background:transparent; color:var(--accent); }
.au-avatar { display:flex; align-items:center; justify-content:center; width:30px; height:30px; flex:0 0 30px; border:1px solid var(--line); border-radius:50%; color:var(--text-2,var(--text)); background:var(--surface-1,var(--bg)); font-size:11px; font-weight:600; letter-spacing:.02em; }
.au-avatar-company { border-radius:8px; }
.au-identity { min-width:0; display:block; }
.au-title, .au-cell-title { display:block; color:var(--text); font-size:13px; font-weight:600; }
.au-subtitle { display:block; color:var(--text-2,var(--text)); font-weight:400; font-size:12px; margin-top:2px; line-height:1.45; }
.au-source-chip { display:inline-block; max-width:100%; box-sizing:border-box; padding:3px 7px; margin:2px 4px 2px 0; border:1px solid var(--line-soft); border-radius:5px; background:var(--surface-1,var(--bg)); font-size:11px; line-height:1.4; }
.au-date-cell { color:var(--text-2,var(--text)); font-variant-numeric:tabular-nums; }
.au-number-cell { text-align:right; font-variant-numeric:tabular-nums; }
.nico-audience-context { border:1px solid var(--line); border-radius:14px; padding:16px; margin:12px 0 24px; background:var(--surface-1,var(--bg)); color:var(--text); max-width:100%; min-width:0; overflow-wrap:anywhere; font-size:14px; line-height:1.55; }
.nico-audience-context h3 { margin:0 0 8px; font-size:16px; }
.nico-audience-context p { margin:8px 0; }
.nico-audience-context summary { min-height:44px; padding:10px 0; box-sizing:border-box; cursor:pointer; font-weight:600; }
.nico-audience-context ul { padding:0; margin:0; list-style:none; }
.nico-audience-context li { padding:12px 0; border-top:1px solid var(--line); }
.nico-audience-context .auc-meta { color:var(--text-2,var(--text)); }
.nico-audience-context .auc-actions { display:flex; flex-wrap:wrap; gap:8px; }
.nico-audience-context button { min-height:44px; min-width:44px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; color:var(--text); background:var(--surface,var(--bg)); font:inherit; cursor:pointer; margin-top:8px; white-space:normal; }
.nico-audience-context :is(button,summary):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.au-panel { border:1px solid var(--line); border-radius:12px; padding:20px; min-width:0; background:var(--surface-1,var(--bg)); }
.au-panel[hidden] { display:none; }
.au-panel h2 { font-size:20px; line-height:1.35; margin:20px 0 16px; }
.au-panel h3 { font-size:16px; margin:12px 0; }
.co-panel-header { display:flex; align-items:start; gap:16px; justify-content:space-between; padding-bottom:16px; border-bottom:1px solid var(--line-soft); margin-bottom:16px; }
.co-panel-header h2 { margin:6px 0; font-size:22px; letter-spacing:-.02em; min-width:0; }
.co-panel-header .au-button { flex:0 0 auto; font-size:13px; color:var(--text-2); }
.co-observation-actions { display:flex; flex-wrap:wrap; gap:8px; padding:4px 0; }
.co-observation-actions .au-button { font-size:13px; }
.co-action-note { margin:4px 0 16px; }
.au-facts .co-fact-wide { grid-column:1 / -1; }
.au-facts dt.co-fact-wide { margin-top:6px; }
.au-panel > .au-button { margin:4px 8px 4px 0; }
.au-review-actions { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0 16px; }
.au-review-actions .au-button { white-space:normal; }
.au-work-links { display:grid; gap:8px; margin-bottom:12px; }
.au-work-links:empty { display:none; }
.au-source { padding:12px 0; border-top:1px solid var(--line); }
.au-facts { display:grid; grid-template-columns:minmax(80px,.6fr) minmax(0,1fr); gap:10px 16px; font-size:14px; line-height:1.55; }
.au-facts dt { color:var(--text-2,var(--text)); }
.au-facts dd { margin:0; white-space:pre-wrap; }
.au-error, .au-warning { font-size:14px; line-height:1.6; border-left:3px solid var(--accent); padding:12px; background:var(--surface,var(--bg)); }
.au-empty { padding:24px 0; font-size:16px; line-height:1.6; }
.co-coverage { margin:8px 0 16px; padding:10px 14px; border:1px solid var(--line-soft); border-radius:8px; background:var(--surface-1); }
.co-coverage > p { margin:2px 0; font-size:12px; }
.co-coverage > .au-button, .au-source > .au-button { margin:4px 8px 4px 0; }
#companyAudienceView summary { box-sizing:border-box; min-height:44px; padding:12px 0; cursor:pointer; font-size:14px; line-height:1.5; }
.co-evidence-link { display:inline-flex; min-width:44px; min-height:44px; align-items:center; margin-right:12px; color:var(--accent); overflow-wrap:anywhere; }
.co-table { min-width:950px; }
.co-table th:nth-child(2) { width:28%; }
.co-table th:nth-child(3) { width:18%; }
.co-table th:nth-child(4) { width:16%; }
.co-table th:last-child { width:90px; text-align:right; }
@media(max-width:1100px) { .au-layout.has-panel { grid-template-columns:minmax(0,1fr); } .au-layout.has-panel .au-results { display:none; } }
@media(max-width:650px) {
  .au-heading h1 { font-size:24px; }
  :is(#audienceView,#companyAudienceView) input:not([type=checkbox]), :is(#audienceView,#companyAudienceView) select { font-size:16px; }
  .au-table-wrap { max-height:none; overflow:visible; border:0; border-radius:0; }
  .au-table, .au-table tbody { display:block; min-width:0; }
  .au-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .au-table tr { display:grid; grid-template-columns:44px minmax(0,1fr); padding:12px 8px; border:1px solid var(--line); border-radius:12px; margin-bottom:10px; background:var(--au-row-bg); }
  .au-table td { display:block; border:0; padding:4px 8px; min-width:0; font-size:14px; }
  .au-table :is(th,td):first-child, .au-table :is(th,td):nth-child(2) { position:static; width:auto; padding:4px 0; }
  .au-table .au-name { padding:0 8px; }
  .au-title, .au-cell-title { font-size:14px; }
  .au-subtitle { font-size:13px; }
  .au-table .au-number-cell { text-align:left; }
  .au-table td:nth-child(n+3) { grid-column:2; }
  .au-table td[data-label]::before { content:attr(data-label) ': '; color:var(--text-2,var(--text)); }
  .au-table caption { display:block; }
  .co-table tr { grid-template-columns:44px minmax(0,1fr); }
  .co-table td:nth-child(n+3) { grid-column:2; }
}
