/* Nakama analysis components share the application's established tokens. */
/* Primary-intent rhythm: one reading path from recipe to time to evidence. */
.rhythm-overview{min-width:0;margin-top:24px}
.analysis-center .an-header .an-intro{margin-bottom:12px}
.analysis-center .an-header .an-eyebrow{display:none}
.analysis-center .an-view-toolbar{margin:16px 0}
.analysis-center .an-job{margin:16px 0}
.analysis-center .an-filters label{color:#565c65}
.analysis-center .an-stat>span,.analysis-center .an-stat small{color:#626872}
.analysis-center .an-stat small{font-size:11px}
.rhythm-overview .an-footnote{color:#626872;font-size:12px}
@media(min-width:1350px){.analysis-center .an-filters{grid-template-columns:1.1fr .75fr 1fr 1fr 1.7fr auto;gap:10px;padding:14px}.analysis-center .an-session-select,.analysis-center .an-filter-actions{grid-column:auto}.analysis-center .an-filter-actions{gap:8px}.analysis-center .an-filters>small{font-size:11px}}
.rhythm-scope{margin:0 0 18px;color:var(--muted);font-size:12px}
.rhythm-subheading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:26px 0 14px}
.rhythm-subheading h3{margin:0;font-size:14px;font-weight:600}
.rhythm-subheading span,.rhythm-subheading small{font-size:12px;color:var(--muted)}
.rhythm-recipe{padding:0 0 18px;border-bottom:1px solid var(--line)}
.rhythm-recipe-bar{display:flex;overflow:hidden;height:14px;border-radius:5px;background:var(--soft)}
.rhythm-recipe-bar span{display:block;min-width:0}
.rhythm-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 20px;margin-top:16px}
.rhythm-legend button{display:flex;align-items:center;gap:8px;background:transparent;border:1px solid transparent;border-radius:8px;min-height:38px;padding:6px 8px;text-align:left;font-size:12px;color:var(--ink)}
.rhythm-legend button:hover,.rhythm-legend button.active{background:var(--soft);border-color:var(--line)}
.rhythm-legend i,.rhythm-intent i{display:inline-block;flex:0 0 8px;width:8px;height:8px;border-radius:50%}
.rhythm-legend strong{margin-left:auto;font-weight:600;white-space:nowrap}
.rhythm-legend small{font-size:11px;color:var(--muted);white-space:nowrap}
.rhythm-window .button{min-height:32px;font-size:12px;padding:4px 10px}
.rhythm-track{position:relative;height:32px;border-radius:6px;background:var(--soft);overflow:hidden}
.rhythm-track>button,.rhythm-track>span{position:absolute;top:0;height:100%;border:0;border-right:1px solid #fff8;border-radius:0;padding:0;min-width:0}
.rhythm-track>span{background:repeating-linear-gradient(135deg,#edeef1,#edeef1 4px,#e0e2e7 4px,#e0e2e7 6px)}
.rhythm-track>button:hover{filter:brightness(1.2);box-shadow:inset 0 0 0 2px var(--ink);z-index:1}
.rhythm-track>button:focus-visible{outline:1px solid var(--ui-focus-line);outline-offset:-1px;z-index:2}
.rhythm-chain{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.rhythm-chain>li{display:flex;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);min-width:0}
.rhythm-time{border:0;background:transparent;display:flex;align-items:flex-start;gap:7px;text-align:left;flex:0 0 96px;font-variant-numeric:tabular-nums;font-size:12px;padding:4px;color:var(--ink);border-radius:6px}
.rhythm-time svg{width:14px;height:14px;margin-top:2px;flex-shrink:0}
.rhythm-time small{display:block;color:var(--muted);font-size:11px}
.rhythm-time:hover{background:var(--soft)}
.rhythm-passage{min-width:0;flex:1;font-size:13px;line-height:1.7}
.rhythm-passage>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.rhythm-intent{display:inline-flex;align-items:center;gap:7px;font-weight:600}
.rhythm-passage small{color:var(--muted);font-size:11px}
.rhythm-passage details{margin:0}
.rhythm-passage summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;list-style:none;cursor:pointer;color:var(--ink)}
.rhythm-passage summary::after{content:' 展开';font-size:11px;color:var(--muted)}
.rhythm-passage details[open] summary{display:block;-webkit-line-clamp:unset}
.rhythm-passage details[open] summary::after{content:' 收起'}
.rhythm-passage blockquote{white-space:pre-line;margin:10px 0 0;padding:10px 14px;background:var(--soft);border-left:2px solid var(--line);border-radius:4px}
.rhythm-chain>li>.text-button{flex-shrink:0;min-height:36px;font-size:12px}
.rhythm-empty{color:var(--muted);font-size:13px}
@media(max-width:1050px){.rhythm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rhythm-chain>li{gap:10px}.rhythm-time{flex-basis:84px}.rhythm-legend{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}
@media(max-width:600px){.rhythm-chain>li{flex-wrap:wrap}.rhythm-time{flex-basis:auto}.rhythm-passage{flex-basis:calc(100% - 104px)}.rhythm-chain>li>.text-button{margin-left:auto}.rhythm-legend{grid-template-columns:1fr}.rhythm-window .button-row{flex-wrap:wrap}.rhythm-window .button{min-height:44px}.rhythm-legend button,.rhythm-chain>li>.text-button{min-height:44px}}
.analysis-center {--an-muted:#69717c; font-variant-numeric:tabular-nums;}
.an-header h1 {font-size:27px;line-height:1.3;letter-spacing:-.6px;}
.an-eyebrow {margin:0 0 6px;color:var(--accent-text);font-size:10px;font-weight:650;letter-spacing:1.8px;}
.an-header .an-intro {font-size:13px;color:var(--an-muted);margin:9px 0 22px;}
.an-body {padding-top:22px;}
.an-filters {display:grid;grid-template-columns:minmax(130px,1.25fr) minmax(110px,.8fr) minmax(130px,1fr) minmax(130px,1fr);gap:14px 16px;padding:18px;background:#f8f9fb;border:1px solid var(--line);border-radius:12px;}
.an-filters label {display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:#59616e;}
.an-filters select,.an-filters input {width:100%;min-width:0;height:36px;font-size:12px;padding:6px 10px;background:#fff;}
.an-session-select {grid-column:span 2;}
.an-filter-actions {grid-column:span 2;display:flex;justify-content:flex-end;align-items:flex-end;gap:12px;}
.an-filter-actions .button {min-height:36px;font-size:12px;}
.an-filters>small {grid-column:1/-1;color:var(--an-muted);font-size:11px;line-height:1.6;}
.an-view-toolbar {display:flex;justify-content:space-between;align-items:center;gap:14px;margin:24px 0 20px;flex-wrap:wrap;}
.an-view-tabs {display:flex;gap:4px;background:#f1f2f5;padding:4px;border-radius:9px;}
.an-view-tabs button {border:0;background:transparent;padding:7px 13px;border-radius:6px;font-size:12px;color:#5d6673;font-weight:500;}
.an-view-tabs button.active {background:#fff;color:var(--ink);box-shadow:0 1px 4px #242a3514;}
.an-view-tabs button:hover {color:var(--accent-text);}
.an-export {display:flex;align-items:center;gap:10px;font-size:11px;color:var(--an-muted);}
.an-export .button {min-height:32px;padding:5px 10px;font-size:12px;}
.an-export svg {width:15px;height:15px;}
.an-workspace {display:block;}
.an-workspace.has-player {display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,36%);gap:20px;align-items:start;}
.an-results {min-width:0;}
.an-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:28px;}
.an-stat {padding:17px 16px;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:5px;min-width:0;}
.an-stat>span {color:var(--an-muted);font-size:11px;}
.an-stat strong {font-size:21px;line-height:1.6;font-weight:620;letter-spacing:-.4px;overflow-wrap:anywhere;}
.an-stat small {color:var(--an-muted);font-size:10px;}
.an-stats-three {grid-template-columns:repeat(3,minmax(0,1fr));}
.an-section-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 16px;}
.an-section-heading h2,.an-section-heading h3 {font-size:16px;font-weight:620;line-height:1.5;margin:0;}
.an-section-heading p {font-size:12px;color:var(--an-muted);line-height:1.7;margin:4px 0 0;}
.an-section-heading .button,.an-current-session .button {font-size:12px;min-height:34px;padding:6px 11px;flex-shrink:0;}
.an-section-heading .button svg,.an-current-session .button svg {width:16px;height:16px;}
.an-sort-label {display:flex;align-items:center;gap:8px;color:var(--an-muted);font-size:11px;white-space:nowrap;}
.an-sort-label select {min-height:32px;padding:4px 8px;font-size:12px;width:112px;}
.an-table-wrap {max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px;}
.an-table {width:100%;border-collapse:collapse;text-align:left;min-width:680px;font-size:12px;}
.an-table th {background:#f8f9fb;color:#59616d;padding:12px 14px;white-space:nowrap;font-size:11px;font-weight:550;}
.an-table td {padding:15px 14px;border-top:1px solid #eef0f3;vertical-align:top;line-height:1.65;font-size:12px;}
.an-table td small,.an-table th small {display:block;color:var(--an-muted);font-size:10px;line-height:1.7;margin-top:4px;}
.an-table tr.is-selected td {background:var(--accent-soft);}
.an-table td:first-child input {width:15px;height:15px;min-height:15px;padding:0;accent-color:var(--accent);}
.an-table td strong {font-weight:550;}
.an-table .text-button {padding:0;min-height:24px;font-size:11px;}
.an-table .text-button svg {width:13px;height:13px;}
.an-cell-link {border:0;background:none;color:var(--accent-text);padding:0;font-size:inherit;text-align:left;line-height:1.65;display:inline-flex;align-items:center;gap:6px;}
.an-cell-link:hover {text-decoration:underline;}
.an-cell-link svg {width:14px;height:14px;flex-shrink:0;}
.an-session-detail {margin-top:26px;padding:20px;border:1px solid var(--line);border-radius:12px;}
.an-session-detail>.an-section-heading {margin-top:0;}
.an-detail-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 16px;margin:24px 0;}
.an-detail-grid dt {font-size:11px;color:var(--an-muted);margin-bottom:4px;}
.an-detail-grid dd {margin:0;font-size:13px;font-weight:500;}
.an-detail-links {display:flex;gap:16px;flex-wrap:wrap;margin:14px 0;}
.an-detail-links .text-button {font-size:12px;padding:0;}
.an-detail-links svg {width:14px;height:14px;}
.an-coverage {margin:18px 0 20px;}
.an-coverage-track {height:12px;border-radius:4px;position:relative;background:repeating-linear-gradient(135deg,#eff0f3,#eff0f3 4px,#f9fafb 4px,#f9fafb 8px);overflow:hidden;}
.an-coverage-track button {position:absolute;top:0;height:12px;border:0;background:var(--accent);padding:0;min-width:1px;border-right:1px solid #fff6;}
.an-coverage-track button:hover {background:var(--accent-strong);}
.an-coverage-legend {display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:10px;color:var(--an-muted);}
.an-coverage-legend i {display:inline-block;width:8px;height:8px;background:var(--accent);margin-right:4px;border-radius:2px;}
.an-gap-key {display:inline-block;width:8px;height:8px;background:#e9ebef;border-radius:2px;}
.an-source-note {display:flex;align-items:flex-start;gap:9px;border-radius:8px;padding:12px 14px;background:#f7f8fa;color:#616977;font-size:11px;line-height:1.8;margin-top:18px;}
.an-source-note svg {width:15px;height:15px;flex-shrink:0;margin-top:2px;}
.an-source-note strong {font-weight:550;color:#47505d;}
.an-footnote {font-size:11px;color:var(--an-muted);line-height:1.8;margin:12px 0;}
.an-method {margin-top:26px;border-top:1px solid var(--line);padding-top:18px;font-size:12px;color:#5c6673;}
.an-method summary {display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;}
.an-method summary:after {content:'⌄';margin-left:auto;}
.an-method[open] summary:after {transform:rotate(180deg);}
.an-method summary>span {font-size:10px;color:var(--an-muted);margin-left:8px;}
.an-method summary>svg {width:15px;height:15px;}
.an-method-body {font-size:11px;line-height:1.8;padding-top:12px;}
.an-method-body p {margin-top:0;}
.an-current-session {display:flex;gap:10px;align-items:center;background:#f9fafb;border:1px solid var(--line);padding:10px 12px;border-radius:9px;margin-bottom:24px;}
.an-current-session label {font-size:11px;color:var(--an-muted);white-space:nowrap;}
.an-current-session select {border:0;background:transparent;min-width:0;flex:1;font-size:12px;min-height:32px;padding:4px;}
.an-empty,.an-chart-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #dce0e6;border-radius:12px;padding:42px 22px;min-height:220px;}
.an-empty>svg,.an-chart-empty>svg {width:27px;height:27px;color:#959da8;margin-bottom:13px;}
.an-empty h3 {font-size:15px;font-weight:550;margin:0 0 8px;}
.an-empty p {max-width:440px;font-size:12px;line-height:1.9;color:var(--an-muted);margin:0 0 18px;}
.an-empty .button {min-height:34px;font-size:12px;}
.an-chart-empty {min-height:210px;background:#fafbfc;border-style:solid;margin:18px 0;}
.an-chart-empty strong {font-size:14px;font-weight:550;}
.an-chart-empty span {font-size:12px;color:var(--an-muted);margin-top:8px;}
.an-chart {border:1px solid var(--line);padding:18px;border-radius:10px;}
.an-chart-heading,.an-chart-labels {display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--an-muted);}
.an-chart-heading strong {color:var(--ink);font-size:12px;font-weight:550;}
.an-chart svg {display:block;width:100%;height:auto;fill:none;stroke:none;}
.an-chart-line {stroke:var(--accent);stroke-width:2;stroke-linejoin:round;}
.an-chart-point {fill:var(--accent);stroke:#fff;stroke-width:1.5;}
.an-chart-axis {stroke:#e3e6eb;stroke-width:1;}
.an-segmented {display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;flex-shrink:0;}
.an-segmented button {border:0;border-right:1px solid var(--line);font-size:11px;background:#fff;padding:6px 10px;color:var(--an-muted);}
.an-segmented button:last-child {border:0;}
.an-segmented button.active {background:var(--accent-soft);color:var(--accent-text);}
.an-tag {display:inline-flex;font-size:10px;border-radius:5px;padding:3px 6px;line-height:1.4;background:#f1f3f6;color:#596473;vertical-align:middle;}
.an-tag.confirmed {background:#edf6f0;color:#276546;}
.an-tag.category {background:var(--accent-soft);color:var(--accent-text);}
.an-event {font-size:10px;border:0;border-radius:4px;padding:3px 6px;background:var(--accent-soft);color:var(--accent-text);}
.an-event-list {margin-top:15px;}
.an-annotation-row {display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;}
.an-annotation-row small {color:var(--an-muted);flex:1;}
.an-job {display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f8f9fc;border:1px solid #e7eaf0;border-radius:10px;padding:16px;}
.an-job>div {display:flex;gap:12px;align-items:center;min-width:0;}
.an-job>div>svg {color:var(--accent-text);width:20px;height:20px;flex-shrink:0;}
.an-job strong {display:block;font-size:13px;font-weight:550;}
.an-job small {display:block;color:var(--an-muted);font-size:11px;margin-top:4px;line-height:1.7;}
.an-job .button {min-height:32px;font-size:11px;padding:6px 12px;flex-shrink:0;}
.an-job progress {width:100px;height:6px;accent-color:var(--accent);}
.an-job.failed {border-color:#e9bbbc;background:#fff5f5;}
.an-category-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.an-category-grid>div {border:1px solid var(--line);border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:4px;}
.an-category-grid span {font-size:11px;color:#5b6573;}
.an-category-grid strong {font-size:19px;font-weight:600;}
.an-category-grid strong small {font-weight:400;}
.an-category-grid small {font-size:10px;color:var(--an-muted);}
.an-speech-list {display:grid;gap:14px;margin-top:18px;}
.an-speech-card {padding:18px;border:1px solid var(--line);border-radius:10px;}
.an-speech-card header {display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.an-speech-card header>div {display:flex;gap:5px;flex-wrap:wrap;}
.an-speech-card header .text-button {font-size:10px;padding:0;min-height:24px;white-space:nowrap;}
.an-speech-card blockquote {margin:16px 0;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#303842;}
.an-speech-meta {display:flex;flex-wrap:wrap;gap:9px 15px;align-items:center;font-size:10px;color:var(--an-muted);}
.an-speech-card footer {display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eef0f4;margin-top:14px;padding-top:9px;}
.an-speech-card footer small {font-size:10px;color:var(--an-muted);}
.an-speech-card footer>div {display:flex;gap:10px;}
.an-speech-card footer .text-button {font-size:11px;padding:0;}
.an-speech-card footer svg {width:13px;height:13px;}
.an-player {min-width:0;border:1px solid #e0e4ea;background:#fff;border-radius:12px;overflow:hidden;position:sticky;top:16px;box-shadow:0 3px 12px #2d354706;}
.an-player>header {display:flex;justify-content:space-between;align-items:center;padding:14px 15px;gap:10px;}
.an-player>header strong {font-size:13px;font-weight:600;}
.an-player>header small {font-size:10px;display:block;color:var(--an-muted);max-width:260px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:3px;}
.an-player .icon-button {width:28px;height:28px;min-height:28px;}
.an-video-frame {background:#15171c;position:relative;min-height:180px;}
.an-video-frame video {display:block;width:100%;height:232px;object-fit:contain;background:#15171c;}
.an-player-message {padding:16px;font-size:12px;line-height:1.8;background:var(--soft);color:var(--muted);}
.an-player-time {padding:10px 14px 3px;display:flex;align-items:center;gap:8px;font-size:10px;color:var(--an-muted);}
.an-player-time>span:first-child {font-size:13px;font-weight:550;color:var(--ink);}
.an-player-time>span:last-child {margin-left:auto;}
.an-player-controls {display:flex;gap:8px;align-items:center;padding:0 12px 8px;}
.an-player-controls .text-button {font-size:10px;min-height:26px;padding:0 2px;}
.an-player-controls .text-button:last-child {margin-left:auto;}
.an-player-gap-note {font-size:11px;color:#815721;background:#fff7e9;margin:0;padding:9px 14px;}
.an-cue-heading {display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:12px 14px;font-size:11px;}
.an-cue-heading strong {font-weight:550;}
.an-cue-heading label {display:flex;gap:5px;color:var(--an-muted);align-items:center;font-size:10px;}
.an-cue-heading input {min-height:13px;width:13px;height:13px;padding:0;accent-color:var(--accent);}
.an-cues {max-height:280px;overflow:auto;position:relative;overscroll-behavior:contain;padding:0 6px 10px;scroll-behavior:smooth;}
.an-cue {display:flex;align-items:flex-start;gap:9px;width:100%;background:none;border:0;border-radius:6px;padding:9px 8px;text-align:left;font-size:11px;line-height:1.9;color:#5b6572;}
.an-cue time {font-size:9px;color:#818a96;white-space:nowrap;flex-shrink:0;padding-top:2px;}
.an-cue.active {background:var(--accent-soft);color:var(--accent-text);}
.an-cue:hover {background:#f5f6f9;}
.an-cue.active:hover {background:var(--accent-soft);}
.an-player-context {border-top:1px solid var(--line);padding:12px 14px;font-size:10px;color:var(--an-muted);background:#fbfcfd;}
.an-player-context>span {color:#4b5563;font-weight:550;}
.an-player-context p {margin:5px 0;line-height:1.9;}
.an-player-context small {display:block;font-size:10px;margin-top:4px;}
.an-player>footer {display:flex;justify-content:space-between;padding:7px 13px;border-top:1px solid var(--line);gap:8px;}
.an-player>footer .text-button {font-size:10px;padding:0;}
.an-player>footer svg {width:13px;height:13px;}
.an-compare-dialog {max-width:1000px;width:calc(100vw - 60px);}
.an-annotation-dialog {max-width:620px;}
.an-labels {border:0;margin:16px 0;padding:0;display:flex;gap:10px 14px;flex-wrap:wrap;}
.an-labels legend {font-size:12px;font-weight:550;margin-bottom:10px;}
.an-labels label {display:flex;gap:6px;align-items:center;font-size:12px;}
.an-labels input {width:14px;height:14px;min-height:14px;accent-color:var(--accent);}
.an-annotation-quote {border-left:3px solid var(--accent-line);margin:12px 0;padding:8px 14px;background:var(--soft);line-height:1.8;font-size:13px;max-height:180px;overflow:auto;}
.an-error {border:1px solid #edc6c5;background:#fff4f3;color:#9d3734;padding:12px 15px;border-radius:8px;margin-top:14px;font-size:12px;display:flex;gap:12px;align-items:center;justify-content:space-between;}
.an-error .button {min-height:30px;font-size:11px;}
.an-loading {display:flex;gap:12px;align-items:center;justify-content:center;min-height:260px;font-size:13px;color:var(--an-muted);}
.an-spinner {width:20px;height:20px;border:2px solid #e5e7ed;border-top-color:var(--accent);border-radius:50%;animation:an-spin .8s linear infinite;}
@keyframes an-spin {to{transform:rotate(360deg)}}
.has-player .an-stats,.has-player .an-detail-grid,.has-player .an-category-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.has-player .an-section-heading {flex-wrap:wrap;}
.has-player .an-current-session {flex-wrap:wrap;}
.has-player .an-current-session select {min-width:180px;}
.has-player .an-speech-card header,.has-player .an-speech-card footer {flex-wrap:wrap;}
@media(min-width:1500px) {.analysis-center .an-video-frame video {height:280px;}}
@media(max-width:1100px) {.an-workspace.has-player {display:flex;flex-direction:column;}.an-player{width:100%;position:relative;top:auto;order:-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.an-player>header,.an-player>footer{grid-column:1/-1;}.an-video-frame{grid-row:2/6;}.an-cue-heading,.an-cues{grid-column:2;}.an-cues{grid-row:3/6;max-height:270px;}.an-player-time,.an-player-controls,.an-player-context,.an-player-gap-note{grid-column:1/-1;}.an-filters{grid-template-columns:repeat(2,minmax(0,1fr));}.an-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.an-section-heading{flex-wrap:wrap;}.an-method summary>span{display:none;}.an-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px) {.an-body{padding:18px 16px 22px;}.an-header{padding:22px 16px 0;}.an-header h1{font-size:24px;}.an-filters{padding:12px;gap:12px;}.an-session-select,.an-filter-actions{grid-column:1/-1;}.an-filter-actions{justify-content:flex-start;}.an-view-tabs{width:100%;}.an-view-tabs button{flex:1;padding:7px 5px;font-size:11px;}.an-view-toolbar{gap:12px;}.an-export{width:100%;justify-content:flex-end;}.an-export>span{margin-right:auto;}.an-current-session{flex-wrap:wrap;}.an-current-session select{min-width:160px;}.an-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.an-stat{padding:12px;}.an-stat strong{font-size:19px;}.an-session-detail{padding:15px;}.an-player{display:block;}.an-video-frame video{height:260px;}.an-cues{max-height:260px;}.an-job{align-items:flex-start;flex-wrap:wrap;}.an-speech-card{padding:14px;}.an-speech-card header,.an-speech-card footer{flex-wrap:wrap;}.an-method{margin-top:20px;}.an-compare-dialog{width:calc(100vw - 24px);}.an-annotation-row{flex-wrap:wrap;}.an-chart-labels span:nth-child(2){display:none;}}
@media(max-width:1100px){.an-workspace.has-player>.an-results{width:100%;max-width:100%;}.an-player{display:block;}.an-cues{max-height:260px;}}
@media(prefers-reduced-motion:reduce){.an-spinner{animation:none;}.an-cues{scroll-behavior:auto;}}

.analysis-center .an-coverage-track button.unavailable{background:var(--line,#dce0e7)}
.an-intervals{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:6px}.an-table details{margin-top:6px;font-size:11px}.an-table details summary{cursor:pointer;color:var(--accent)}.an-table details p{margin:6px 0}
.an-category-choice{border:1px solid var(--line);border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:4px;background:#fff;text-align:left;cursor:pointer;color:var(--text)}
.an-category-choice>span{font-size:11px;color:#5b6573}.an-category-choice strong{font-size:19px;font-weight:600}.an-category-choice small{font-size:10px;color:var(--an-muted)}
.an-category-choice:hover{background:var(--soft);border-color:var(--accent-line)}.an-category-choice.active{background:var(--accent-soft);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.an-speech-filter{display:grid;grid-template-columns:minmax(100px,1fr) minmax(110px,1fr) minmax(180px,2fr) auto;align-items:end;gap:10px;padding:14px 0;border-top:1px solid var(--line)}
.an-speech-filter>label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--an-muted);min-width:0}.an-speech-filter input,.an-speech-filter select{width:100%;min-width:0;min-height:34px;font-size:12px;padding:7px 9px}
.an-speech-filter>div{display:flex;gap:7px;align-items:center}.an-speech-filter .button{min-height:34px;font-size:11px}.an-speech-filter .text-button{font-size:11px;padding:5px}
.an-speech-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 8px}.an-speech-result-heading p{font-size:10px;line-height:1.7;color:var(--an-muted);margin:0}.an-speech-result-heading .text-button{font-size:11px}
.an-speech-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--an-muted);padding:12px 0}.an-speech-pagination>div{display:flex;align-items:center;gap:11px}.an-speech-pagination .button{min-height:30px;padding:5px 10px;font-size:11px}
.an-speech-card footer .an-speech-source{display:flex;flex-direction:column;gap:4px}.an-speech-source small{font-size:10px;line-height:1.6;color:var(--an-muted)}
.has-player .an-speech-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.an-speech-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.an-speech-filter .an-speech-search{grid-column:1/-1}.an-speech-filter>div{grid-column:1/-1}.an-speech-pagination{font-size:10px}}

/* Semantic passages retain the original transcript; generated titles are separate. */
.an-selection-toolbar{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:12px 14px;margin:8px 0 2px;background:#f8f9fb;border:1px solid var(--line);border-radius:9px;font-size:12px}
.an-selection-toolbar .button{min-height:32px;font-size:11px;padding:5px 11px;margin-left:auto}
.an-selection-toolbar .text-button{font-size:11px;min-height:28px;padding:3px}
.an-selection-toolbar>small{flex-basis:100%;font-size:10px;color:var(--an-muted);line-height:1.6}
.an-passage-card{transition:border-color .15s;min-width:0;background:#fff}
.an-passage-card.is-selected{border-color:var(--ui-focus-line);box-shadow:none}
.an-passage-card h3{font-size:15px;font-weight:600;line-height:1.65;letter-spacing:.05px;overflow-wrap:anywhere;margin:13px 0 2px;color:var(--text)}
.an-passage-card .an-passage-title-note{font-size:10px;line-height:1.6;color:var(--an-muted);margin:0 0 10px}
.an-passage-labels{align-items:center;min-width:0}
.an-passage-labels input{width:15px;height:15px;min-height:15px;margin:0 5px 0 0;accent-color:var(--accent);cursor:pointer}
.an-passage-time{display:flex;align-items:center;flex-wrap:wrap;gap:7px 15px;font-size:11px;color:var(--an-muted);font-variant-numeric:tabular-nums}
.an-passage-time .an-cell-link{display:inline-flex;align-items:center;gap:5px;font-size:11px;min-height:28px}
.an-passage-time svg{width:13px;height:13px}
.an-passage-original{margin:12px 0;background:#fafbfc;border-radius:8px;padding:12px 14px}
.an-passage-original summary{list-style:none;cursor:pointer;line-height:1.9;color:#303842;overflow-wrap:anywhere}
.an-passage-original summary::-webkit-details-marker{display:none}
.an-passage-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:13px;white-space:pre-wrap}
.an-expand-label,.an-collapse-label{display:block;font-size:11px;color:var(--accent);margin-top:6px}
.an-collapse-label,.an-passage-original[open] .an-passage-preview,.an-passage-original[open] .an-expand-label{display:none}
.an-passage-original[open] .an-collapse-label{display:block;margin-top:0}
.an-passage-original blockquote{margin:8px 0 0;max-height:420px;overflow:auto;overscroll-behavior:contain;padding-right:6px}
.an-passage-card footer{align-items:flex-start;flex-wrap:wrap}
.an-passage-card footer .an-passage-actions{display:flex;gap:6px 14px;flex-wrap:wrap;margin-left:auto}
.an-passage-card footer .an-passage-actions .text-button{min-height:30px;white-space:nowrap}
.an-passage-card .an-relations{font-size:11px;line-height:1.8;overflow-wrap:anywhere;color:var(--an-muted)}
.an-clip-range{padding:12px 14px;border-bottom:1px solid var(--line);background:var(--soft);font-size:11px;color:var(--an-muted);line-height:1.7}
.an-clip-range[hidden]{display:none}
.an-clip-range strong{display:block;font-size:12px;color:var(--text);font-weight:600;overflow-wrap:anywhere}
.an-clip-range>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:5px}
.an-clip-range .text-button{font-size:10px;min-height:26px;padding:2px 0}
.an-observation-coverage{border:1px solid var(--line);border-radius:9px;padding:14px 16px;margin:18px 0;background:#fbfcfd}
.an-observation-coverage .an-section-heading{margin:0 0 10px}
.an-observation-coverage h3{font-size:13px;margin:0}
.an-observation-coverage .an-section-heading p{font-size:10px;line-height:1.7;margin:4px 0 0}
.an-observation-coverage>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.an-observation-coverage dt{color:var(--an-muted);font-size:10px;line-height:1.6}
.an-observation-coverage dd{font-size:14px;line-height:1.8;font-weight:550;margin:3px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.an-observation-coverage details{font-size:11px;margin-top:10px}
.an-observation-coverage summary{cursor:pointer;color:var(--accent);line-height:1.8}
.an-collection-events{margin:24px 0}
.an-collection-events h3{font-size:14px;margin:0 0 7px}
.analysis-center :is(button,input,select,a,summary,[tabindex]):focus-visible,.an-annotation-dialog :is(button,input,select,textarea,summary):focus-visible{outline:1px solid var(--ui-focus-line);outline-offset:-1px}
.an-selection-toolbar button:disabled,.an-passage-actions button:disabled{cursor:not-allowed;opacity:.45}
@media(max-width:760px){.an-selection-toolbar .button{margin-left:0}.an-passage-card footer .an-passage-actions{margin-left:0;flex-basis:100%}.an-observation-coverage>dl{grid-template-columns:1fr 1fr}.an-observation-coverage{padding:12px}.an-passage-original{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.an-passage-card{transition:none}}
