/* RecordingsView (js/recording/recordings-view.js) — the Recordings home:
   the list and the selected recording's preview; only they scroll. */
.main-content.recordings-active {
    overflow: hidden;
    height: calc(100vh - 24px);
}

.recordings-view.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recordings-header {
    margin-bottom: var(--space-3);
}

.recordings-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    max-width: 560px;
    height: 36px;
    padding: 0 var(--space-3);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.recordings-search:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.recordings-search svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.recordings-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    -webkit-appearance: none;
    color: var(--text-primary);
    font: inherit;
    font-size: var(--font-size-14);
}

.recordings-split {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: var(--space-5);
}

.recordings-list {
    width: 380px;
    flex: none;
    overflow-y: auto;
    padding-bottom: var(--space-6);
    outline: none;
}

.recordings-group {
    margin: var(--space-4) 0 6px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recordings-group:first-child {
    margin-top: 0;
}

.recordings-empty {
    padding: var(--space-4) 0;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.45;
}

.recordings-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 10px var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-in-out);
}

.recordings-row:hover {
    background: var(--bg-secondary);
}

.recordings-row.is-selected {
    background: rgba(74, 144, 217, 0.1);
}

.recordings-list:focus-visible .recordings-row.is-selected {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset-inset);
}

.recordings-row-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: var(--radius-md);
    background: rgba(74, 144, 217, 0.1);
    color: var(--accent-blue);
}

.recordings-row-icon svg {
    width: 15px;
    height: 15px;
}

.recordings-row-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.recordings-row-title {
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--font-size-14);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recordings-row-meta {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 12.5px;
}

.recordings-row-status {
    padding-top: 2px;
    color: var(--text-secondary);
    font-size: var(--font-size-12);
    white-space: nowrap;
}

.recordings-row-status.amber {
    color: var(--color-amber-text);
}

.recordings-row-status.red {
    color: var(--color-red-text);
}

.recordings-rename {
    width: 100%;
    padding: 2px 6px;
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font: inherit;
}

.recordings-moment {
    display: block;
    margin-top: 4px;
    padding: 2px 0;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.recordings-moment:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.recordings-moment mark {
    padding: 0 2px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.25);
    color: var(--text-primary);
}

.recordings-preview {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    align-self: flex-start;
    max-height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.recordings-preview-empty,
.recordings-preview-status,
.recordings-preview-loading {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

.recordings-preview-title {
    margin: 0 0 4px;
    font-size: var(--font-size-md);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.recordings-preview-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: 12.5px;
}

.recordings-chip {
    padding: 1px 7px;
    border-radius: var(--radius-lg);
    background: rgba(74, 144, 217, 0.12);
    color: #357ABD;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.recordings-preview-summary {
    margin: var(--space-3) 0;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

.recordings-preview-heading {
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 600;
}

.recordings-preview-items {
    margin: 4px 0 var(--space-3);
    padding-left: 18px;
    list-style: disc;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

.recordings-preview-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.transcript-full-segment.transcript-moment {
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.16);
    transition: background-color 600ms var(--ease-in-out);
}

.recordings-preview-items li {
    display: list-item;
}
