Files

189 lines
15 KiB
CSS

.timeline {
overflow: hidden;
color: #333c34;
background: #fffefb;
border: 1px solid #e5e8dd;
border-radius: 16px;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 18px 22px 15px;
}
.toolbarTitle, .tools, .zoom, .bottomBar, .timeReadout {
display: flex;
align-items: center;
}
.toolbarTitle { gap: 14px; }
.title { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.duration { color: #6c776b; font-family: var(--font-geist-mono, monospace); font-size: 12px; }
.duration > span { margin-left: 5px; font-family: inherit; font-size: 10px; color: #90978d; }
.tools { gap: 13px; }
.tools button { font: inherit; cursor: pointer; }
.tools button:disabled { opacity: .35; cursor: default; }
.locate { display: flex; align-items: center; gap: 5px; border: 0; background: none; color: #728064; font-size: 11px !important; }
.locate > span { font-size: 20px; line-height: 1; }
.zoom { height: 28px; gap: 3px; border: 1px solid #e7e9e0; border-radius: 7px; background: #fafbf5; }
.zoom button { display: grid; place-items: center; width: 28px; height: 26px; border: 0; background: none; color: #606b57; font-size: 17px; }
.zoom button:not(:disabled):hover { background: #edf0e6; }
.zoom > span { width: 30px; text-align: center; font-size: 11px; color: #646d5c; }
.trackLayout { display: grid; grid-template-columns: 98px minmax(0, 1fr); border-block: 1px solid #ecede5; }
.trackNames { background: #fbfcf7; border-right: 1px solid #e9ebe2; font-size: 11px; color: #828b7b; user-select: none; }
.trackNames > div { padding-left: 21px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #eceee6; }
.rulerName { height: 32px; font-size: 10px; }
.waveName { height: 76px; }
.speechName { height: 64px; }
.markerName { height: 44px; border-bottom: 0 !important; }
.agentDot, .userDot, .playheadDot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; }
.agentDot { background: #b2bca8; }
.userDot { background: #d2b48d; }
.playheadDot { background: #566653; }
.viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #cbd1c0 #f8faf2; }
.viewport::-webkit-scrollbar { height: 7px; }
.viewport::-webkit-scrollbar-thumb { background: #cbd1c0; border-radius: 4px; }
.viewport::-webkit-scrollbar-track { background: #f8faf2; }
.canvas { width: var(--timeline-width); position: relative; outline: none; touch-action: pan-y; cursor: crosshair; }
.canvas:focus-visible { box-shadow: inset 0 0 0 2px #9aa987; }
.ruler { position: relative; height: 32px; background: #fbfcf7; border-bottom: 1px solid #eceee6; overflow: hidden; }
.tick { position: absolute; top: 0; height: 32px; padding-top: 8px; padding-left: 6px; color: #8b9384; font-family: var(--font-geist-mono, monospace); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tick::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 5px; background: #cbd1c1; }
.waveTrack { height: 76px; position: relative; background: #fdfef9; border-bottom: 1px solid #eceee6; }
.waveform { display: block; width: 100%; height: 76px; color: inherit; pointer-events: none; }
.waveEmpty { position: sticky; left: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; color: #929b88; font-size: 11px; }
.waveEmpty svg { color: #b2baa9; }
.speechTrack { position: relative; height: 64px; border-bottom: 1px solid #eceee6; background: #fffefb; }
.speechBlock { position: absolute; top: 10px; height: 44px; border: 1px solid; border-radius: 5px; transition: filter .12s; }
.speechBlock:hover { filter: brightness(.96); }
.blockBody { width: 100%; height: 100%; padding: 0 5px; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.blockBody > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 15px; }
.resizeHandle { position: absolute; z-index: 4; top: 0; bottom: 0; width: 9px; padding: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: none; }
.resizeHandle::after { content: ""; position: absolute; width: 2px; top: 8px; bottom: 8px; left: 3px; border-radius: 2px; background: currentColor; opacity: .6; }
.startHandle { left: -4px; }
.endHandle { right: -4px; }
.resizeHandle:hover::after, .resizeHandle:focus-visible::after { opacity: 1; width: 3px; }
.resizeHandle:focus-visible { outline: 2px solid #758962; border-radius: 4px; }
.resizingBlock, .editingBlock { box-shadow: 0 0 0 2px #96a983; z-index: 5; }
.resizeReadout { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 4px 6px; color: #fff; background: #526a42; border-radius: 4px; font-size: 10px; white-space: nowrap; pointer-events: none; }
.agentBlock { background: #eef2e5; border-color: #dfe6d2; color: #697854; }
.userBlock { background: #f8f0e5; border-color: #eadcc6; color: #8d7353; }
.annotationTrack { height: 44px; position: relative; background: #fbfcf7; }
.annotationTrack:focus-visible, .speechBlock:focus-visible { outline: 2px solid #758962; outline-offset: -2px; }
.annotation { z-index: 4; position: absolute; top: 13px; transform: translateX(-50%); display: grid; place-items: center; width: 22px; height: 23px; border-radius: 5px; border: 1px solid; cursor: ew-resize; touch-action: none; font-family: var(--font-geist-mono, monospace); font-size: 11px; font-weight: 650; }
.annotation:hover { filter: brightness(.94); }
.annotationStem { position: absolute; width: 1px; height: 11px; top: -12px; left: 50%; background: currentColor; opacity: .4; }
.positive { background: #e8efdb; color: #62764a; border-color: #d4dfc2; }
.negative { background: #f6e4d9; color: #ab7150; border-color: #edcfbc; }
.pending { background: #f0f1eb; color: #87917c; border-color: #dce0d3; }
.selectedLabel { position: absolute; z-index: 3; top: 13px; transform: translateX(-50%); padding: 4px 9px; border: 1px solid #efc7b4; border-radius: 5px; background: #fcf0e8; color: #b86038; font-size: 10px; white-space: nowrap; cursor: ew-resize; touch-action: none; }
.playhead { position: absolute; z-index: 7; top: 25px; bottom: 0; width: 1px; background: #6b7a5c; pointer-events: none; }
.playheadHandle { position: absolute; top: -6px; left: -10px; width: 21px; height: 18px; padding: 0; border: 0; background: transparent; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.playheadHandle > span { display: block; margin: auto; width: 10px; height: 9px; background: #526a42; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.playheadHandle:focus-visible { outline: 2px solid #526a42; border-radius: 3px; }
.snapGuide { position: absolute; z-index: 5; top: 32px; bottom: 0; width: 2px; background: #78aa88; box-shadow: 0 0 0 2px #78aa8820; pointer-events: none; }
.decisionMarker { position: absolute; z-index: 6; top: 0; bottom: 0; width: 0; pointer-events: none; }
.decisionLine { position: absolute; top: 23px; bottom: 0; left: -1px; border-left: 1.5px dashed #d66d40; }
.annotation:focus-visible, .selectedLabel:focus-visible, .tools button:focus-visible { outline: 2px solid #758962; outline-offset: 3px; }
.bottomBar { justify-content: space-between; gap: 12px; padding: 11px 22px 14px; }
.timeReadout { gap: 6px; color: #8b9382; font-size: 10px; }
.timeReadout strong { margin-left: 3px; font-family: var(--font-geist-mono, monospace); color: #66735b; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.help { font-size: 10px; color: #9aa18f; }
@media (max-width: 640px) {
.toolbar { gap: 7px; padding: 14px 12px 12px; }
.toolbarTitle { align-items: flex-start; flex-direction: column; gap: 3px; }
.title { font-size: 12px; }
.duration { font-size: 10px; }
.tools { gap: 6px; }
.locate { padding: 0; font-size: 10px !important; }
.trackLayout { grid-template-columns: 82px minmax(0, 1fr); }
.trackNames > div { padding-left: 10px; gap: 5px; font-size: 10px; }
.bottomBar { padding-inline: 12px; }
.help { max-width: 160px; text-align: right; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
.speechBlock { transition: none; }
}
.leftChannel { color: #6c917c; background: #f6faf5; }
.rightChannel { color: #658cab; background: #f4f8fb; }
.leftDot, .rightDot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; }
.leftDot { background: #6c917c; }
.rightDot { background: #658cab; }
.scorePanelHeader { padding: 0 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scoreToggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; background: none; border: 0; color: #67775b; cursor: pointer; font: inherit; font-size: 11px; }
.scoreToggle strong { font-size: 12px; font-weight: 600; color: #45553e; }
.scoreToggle > span:last-child { color: #929b89; font-size: 10px; }
.chevron, .chevronOpen { display: inline-block; width: 12px; font-size: 23px; line-height: 16px; text-align: center; }
.chevronOpen { transform: rotate(90deg); }
.scoreControls { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.scoreDescription { padding: 0 22px 10px; font-size: 10px; line-height: 1.7; color: #88927f; }
.scoreDescription button { border: 0; background: none; color: #536f40; cursor: pointer; text-decoration: underline; font-size: inherit; }
.trackNames > .scoreAxis { padding: 12px 8px; flex-direction: column; justify-content: space-between; font-size: 10px; color: #929a87; border-top: 1px solid #e7e9e0; }
.scoreAxis span:first-child, .scoreAxis span:last-child { font-family: monospace; align-self: flex-end; }
.scoreAxis span:nth-child(2) { color: #647759; }
.scoreTrack { position: relative; height: 172px; background: #fdfefb; border-top: 1px solid #e7e9e0; }
.scoreTrack > svg { display: block; overflow: hidden; }
.scoreTrack circle { cursor: pointer; }
.scoreTrack circle:hover, .scoreTrack circle:focus-visible { stroke-width: 3; outline: none; r: 5; }
.scoreInspection { position: sticky; left: 10px; margin-top: -26px; width: max-content; max-width: 100%; display: flex; gap: 12px; padding: 4px 7px; border-radius: 4px; color: #8c9682; background: #fffefbe8; font: 10px monospace; pointer-events: none; }
.scoreInspection b { font-weight: 500; }
.scoreEmpty { position: sticky; left: 0; display: grid; place-items: center; color: #929b88; font-size: 11px; background: #fdfefb; border-top: 1px solid #e7e9e0; }
.scoreFootnote { margin: 0; padding: 9px 22px 0; color: #8c9583; font-size: 10px; line-height: 1.7; }
.scoreToggle:focus-visible, .modelPickerButton:focus-visible, .legendName:focus-visible { outline: 2px solid #758962; outline-offset: 3px; border-radius: 3px; }
@media (max-width: 640px) {
.scorePanelHeader { padding-inline: 12px; gap: 5px; }
.scoreDescription, .scoreFootnote { padding-inline: 12px; }
.scoreControls { gap: 5px; }
}
.modelPickerBar { display: flex; align-items: center; gap: 9px; }
.modelPickerButton { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #dfe5d7; background: #f8faf3; border-radius: 6px; font: inherit; font-size: 11px; color: #526448; cursor: pointer; white-space: nowrap; }
.modelPickerButton > span:first-child { padding: 1px 5px; border-radius: 4px; background: #e9efdf; color: #69775f; font: 10px monospace; }
.restoreSelection { border: 0; background: none; color: #647d50; font: inherit; font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.modelLegend { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; min-width: 0; }
.legendItem { transition: opacity .12s; }
.legendName { display: flex; align-items: center; gap: 5px; border: 0; border-radius: 5px; padding: 5px 2px; background: none; color: inherit; font-size: 10px; cursor: pointer; }
.legendName:hover, .legendName[aria-expanded="true"] { background: #f0f3e9; }
.legendName output { font: 10px monospace; font-variant-numeric: tabular-nums; min-width: 32px; }
.legendMore { color: #9aa18e; font-size: 15px; line-height: 10px; }
.modelColor { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
.noModels { color: #929b88; font-size: 10px; }
.modelPopover { position: fixed; z-index: 100; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 14px; border: 1px solid #dfe4d6; border-radius: 12px; background: #fffefb; box-shadow: 0 12px 40px #33402a26, 0 2px 8px #33402a0d; color: #46563e; font-family: inherit; font-size: 12px; }
.popoverHeading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.popoverHeading strong { font-size: 13px; font-weight: 600; }
.popoverHeading button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 5px; background: #f4f6ee; font-size: 19px; color: #7c8872; cursor: pointer; }
.modelSearch { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid #dfe5d7; border-radius: 7px; color: #526448; background: #fbfcf7; font: inherit; font-size: 12px; }
.modelSearch:focus-visible { outline: 2px solid #9aac87; outline-offset: 1px; }
.pickerActions { display: flex; align-items: center; gap: 9px; padding: 11px 0 7px; font-size: 10px; color: #8b9580; }
.pickerActions > span { margin-right: auto; }
.pickerActions button { padding: 2px 0; border: 0; background: none; color: #637e4d; cursor: pointer; font: inherit; }
.pickerActions button:disabled { opacity: .4; cursor: default; }
.modelOptions { max-height: min(360px, 50vh); overflow-y: auto; scrollbar-width: thin; }
.modelOptions fieldset { border: 0; margin: 6px 0 0; padding: 0; min-width: 0; }
.modelOptions legend { padding: 5px 0; color: #8c9781; font-size: 10px; }
.modelOption { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 6px; cursor: pointer; }
.modelOption:hover { background: #f4f7ed; }
.modelOption:has(input:disabled) { opacity: .55; cursor: default; }
.modelOption input { accent-color: #748c5f; margin: 0; width: 14px; height: 14px; }
.modelOption > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.modelOption strong { font-size: 11px; font-weight: 550; }
.modelOption small { font-size: 10px; color: #8c9781; }
.pickerHint { margin: 12px 0 0; border-top: 1px solid #ecede5; padding-top: 10px; color: #929b88; font-size: 10px; }
.noSearchResults { padding: 18px 0; text-align: center; color: #929b88; }
.modelExplanation { margin: 0 0 14px; line-height: 1.8; color: #839175; font-size: 11px; }
.thresholdSetting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; color: #66775a; font-size: 11px; }
.thresholdSetting select { border: 1px solid #dfe5d7; border-radius: 6px; padding: 6px 8px; background: #f9fbf4; color: #526448; font: inherit; }
.modelMenuAction { display: block; width: 100%; padding: 9px 6px; text-align: left; border: 0; border-top: 1px solid #eef0e6; color: #637a50; background: none; cursor: pointer; font: inherit; font-size: 11px; }
.modelMenuAction:hover { background: #f4f7ed; }
.modelPopover button:focus-visible, .modelPopover select:focus-visible { outline: 2px solid #91a67c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .legendItem { transition: none; } }