.cab-embed-enrichment{border-top:1px solid rgba(127,127,127,.22);background:var(--bs-body-bg,#fff)}
.cab-embed-enrichment-tabs{display:flex;align-items:center;gap:.35rem;padding:.55rem .7rem;overflow-x:auto;scrollbar-width:thin}
.cab-embed-tab,.cab-embed-enrich-edit{border:0;border-radius:999px;padding:.42rem .72rem;background:transparent;color:var(--bs-secondary-color,#5e6672);font-weight:700;white-space:nowrap;cursor:pointer}
.cab-embed-tab:hover,.cab-embed-tab:focus-visible,.cab-embed-enrich-edit:hover,.cab-embed-enrich-edit:focus-visible{background:rgba(13,110,253,.09);color:var(--bs-primary,#0d6efd);outline:none}
.cab-embed-tab.is-active{background:rgba(13,110,253,.14);color:var(--bs-primary,#0d6efd)}
.cab-embed-enrich-edit{margin-left:auto;border:1px solid rgba(13,110,253,.28);color:var(--bs-primary,#0d6efd)}
.cab-embed-panel{padding:.8rem 1rem 1rem;max-height:30rem;overflow:auto}
.cab-embed-summary{margin:0 0 .8rem;white-space:pre-line;line-height:1.55}
.cab-embed-key-points{margin:0;padding-left:1.25rem;display:grid;gap:.45rem}
.cab-embed-chapters{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.cab-embed-seek,.cab-embed-transcript-line{width:100%;display:grid;grid-template-columns:4.9rem minmax(0,1fr);gap:.65rem;align-items:start;border:0;border-radius:.65rem;padding:.55rem .65rem;background:transparent;text-align:left;color:inherit;cursor:pointer}
.cab-embed-seek:hover,.cab-embed-transcript-line:hover,.cab-embed-seek:focus-visible,.cab-embed-transcript-line:focus-visible{background:rgba(13,110,253,.09);outline:none}
.cab-embed-seek time,.cab-embed-transcript-line time{font-variant-numeric:tabular-nums;color:var(--bs-primary,#0d6efd);font-weight:800}
.cab-embed-transcript-segments{display:grid;gap:.2rem}
.cab-embed-transcript-line span{line-height:1.45}
.cab-embed-transcript-text{white-space:pre-wrap;line-height:1.55}
.cab-embed-enrichment-meta{padding:.2rem 1rem .7rem;color:var(--bs-secondary-color,#687386);font-size:.78rem;text-align:right}
.cab-enrichment-export-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:0 0 .65rem;color:var(--bs-secondary-color,#687386);font-size:.82rem}
.cab-enrichment-export{border:1px solid rgba(127,127,127,.35);border-radius:.45rem;padding:.2rem .48rem;background:transparent;color:inherit;font-size:.76rem;font-weight:800;cursor:pointer}
.cab-enrichment-export:hover,.cab-enrichment-export:focus-visible{border-color:var(--bs-primary,#0d6efd);color:var(--bs-primary,#0d6efd);outline:none}
.cab-enrichment-dialog{width:min(850px,calc(100vw - 2rem));max-height:min(940px,calc(100vh - 2rem));border:0;border-radius:1rem;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.32);background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#1e293b)}
.cab-enrichment-dialog::backdrop{background:rgba(15,23,42,.62);backdrop-filter:blur(2px)}
.cab-enrichment-dialog-shell{position:relative;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;max-height:inherit}
.cab-enrichment-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid rgba(127,127,127,.25)}
.cab-enrichment-dialog h2{margin:.12rem 0 0;font-size:1.35rem}.cab-enrichment-kicker{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--bs-primary,#0d6efd);font-weight:800}
.cab-enrichment-save-state{display:block;min-height:1.1rem;margin-top:.2rem;color:var(--bs-secondary-color,#687386);font-size:.78rem}
.cab-enrichment-close{width:2.35rem;height:2.35rem;border:0;border-radius:50%;font-size:1.65rem;line-height:1;background:rgba(127,127,127,.14);color:inherit;cursor:pointer}
.cab-enrichment-close:hover,.cab-enrichment-close:focus-visible{background:rgba(127,127,127,.25);outline:3px solid rgba(13,110,253,.18)}
.cab-enrichment-restore,.cab-enrichment-import-confirm{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1.2rem;border-bottom:1px solid rgba(127,127,127,.2);background:rgba(13,110,253,.08)}
.cab-enrichment-restore[hidden],.cab-enrichment-import-confirm[hidden]{display:none}
.cab-enrichment-restore>div,.cab-enrichment-import-confirm>div{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.cab-enrichment-restore span{margin-left:.35rem;color:var(--bs-secondary-color,#687386);font-size:.82rem}
.cab-enrichment-import-confirm{background:rgba(255,193,7,.14)}
.cab-enrichment-scroll{overflow:auto;padding:1rem 1.2rem;display:grid;gap:1rem}
.cab-enrichment-scroll label{display:grid;gap:.4rem;font-weight:750}.cab-enrichment-scroll textarea,.cab-enrichment-scroll input[type=text],.cab-enrichment-scroll input:not([type]){width:100%;border:1px solid rgba(127,127,127,.4);border-radius:.7rem;padding:.7rem .8rem;background:var(--bs-body-bg,#fff);color:inherit;font:inherit;font-weight:400;resize:vertical}
.cab-enrichment-scroll textarea:focus,.cab-enrichment-scroll input:focus{outline:3px solid rgba(13,110,253,.2);border-color:var(--bs-primary,#0d6efd)}
.cab-enrichment-scroll small,.cab-enrichment-import-status{font-weight:400;color:var(--bs-secondary-color,#687386)}
.cab-enrichment-import{padding:.85rem;border:1px dashed rgba(13,110,253,.45);border-radius:.8rem;display:grid;gap:.45rem}.cab-enrichment-import input{display:block;margin-top:.4rem;font-weight:400}
.cab-enrichment-language{max-width:11rem}
.cab-enrichment-segment-editor{border:1px solid rgba(127,127,127,.28);border-radius:.8rem;padding:.75rem .85rem}.cab-enrichment-segment-editor summary{cursor:pointer;font-weight:800}.cab-enrichment-segment-editor p{margin:.7rem 0;color:var(--bs-secondary-color,#687386);font-size:.86rem}.cab-enrichment-segment-editor code{font-size:.8rem}.cab-enrichment-segment-editor textarea{min-height:12rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.84rem;line-height:1.45}
.cab-enrichment-inline-actions,.cab-enrichment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.55rem;flex-wrap:wrap;margin-top:.65rem}.cab-enrichment-toolbar{margin-top:0;padding:.75rem;border-radius:.8rem;background:rgba(127,127,127,.08)}.cab-enrichment-toolbar .cab-enrichment-export-tools{margin:0}
.cab-enrichment-preview{border:1px solid rgba(13,110,253,.28);border-radius:.85rem;padding:1rem;background:rgba(13,110,253,.045)}.cab-enrichment-preview[hidden]{display:none}.cab-enrichment-preview h3{margin:0 0 .85rem;font-size:1.08rem}.cab-enrichment-preview h4{margin:1rem 0 .5rem;font-size:.95rem}.cab-enrichment-preview-line{padding:.25rem 0}.cab-enrichment-preview-transcript{max-height:18rem;overflow:auto;white-space:pre-wrap;margin:0;padding:.75rem;border-radius:.65rem;background:rgba(15,23,42,.06);font:inherit;font-size:.87rem;line-height:1.45}
.cab-enrichment-error{padding:.7rem .8rem;border-radius:.65rem;background:#fff0f1;color:#b4232c;font-weight:700}
.cab-enrichment-dialog footer{display:flex;align-items:center;gap:.65rem;padding:1rem 1.2rem;border-top:1px solid rgba(127,127,127,.25);background:var(--bs-body-bg,#fff)}.cab-enrichment-footer-spacer{flex:1}
.cab-enrichment-confirm{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1rem;padding:2rem;text-align:center;background:color-mix(in srgb,var(--bs-body-bg,#fff) 92%,transparent);backdrop-filter:blur(4px)}.cab-enrichment-confirm[hidden]{display:none}.cab-enrichment-confirm p{margin:.35rem 0 0;color:var(--bs-secondary-color,#687386)}.cab-enrichment-confirm>div:last-child{display:flex;gap:.65rem;flex-wrap:wrap;justify-content:center}
.cab-embed-seek-notice{position:fixed;left:50%;bottom:1rem;z-index:2147483647;transform:translate(-50%,1rem);opacity:0;pointer-events:none;background:#111827;color:#fff;border-radius:.65rem;padding:.7rem 1rem;transition:.2s}.cab-embed-seek-notice.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:680px){.cab-embed-enrichment-tabs{padding:.5rem}.cab-embed-enrich-edit{margin-left:0}.cab-embed-panel{padding:.7rem}.cab-embed-seek,.cab-embed-transcript-line{grid-template-columns:4rem minmax(0,1fr);padding:.5rem}.cab-enrichment-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0}.cab-enrichment-dialog-shell{height:100dvh;max-height:100dvh}.cab-enrichment-dialog footer{position:sticky;bottom:0}.cab-enrichment-restore,.cab-enrichment-import-confirm{align-items:flex-start;flex-direction:column}.cab-enrichment-toolbar{align-items:flex-start;flex-direction:column}.cab-enrichment-dialog footer{flex-wrap:wrap}.cab-enrichment-footer-spacer{display:none}.cab-enrichment-dialog footer .btn{flex:1 1 calc(50% - .4rem)}.cab-enrichment-dialog footer .js-enrichment-delete{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.cab-embed-seek-notice{transition:none}}
