/* A quiet, searchable home for real translation sessions. Theme colors come from the shared palette. */
.records-main{width:100%;max-width:none}
.records-heading{margin-bottom:28px}
.records-heading h1{font-size:30px}
.records-heading>.button{flex-shrink:0;font-size:12px;padding:11px 15px}
.records-root{min-width:0}
.records-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.records-sources{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.records-sources .records-source{min-height:39px;padding:8px 18px;border-radius:8px;font-size:12px;font-weight:500;color:var(--muted);transform:none}
.records-sources .records-source[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 2px 6px color-mix(in srgb,var(--text) 7%,transparent);font-weight:650}
.records-sources .records-source:hover{color:var(--text);transform:none}
.records-top-actions{display:flex;align-items:center;gap:6px}
.records-top-actions button{font-size:12px;padding:9px 12px;min-height:40px}
.records-filters{display:flex;align-items:flex-end;gap:16px;margin-bottom:21px}
.records-filters label{min-width:0;font-size:11px;color:var(--muted);font-weight:500}
.records-search{display:grid;gap:7px;flex:1;min-width:180px}
.records-search input{width:100%;height:42px;margin:0;font-size:13px;background:var(--surface);border-radius:10px}
.records-search input::placeholder{color:var(--muted);opacity:.85}
.records-search input:focus{border-color:var(--accent)}
.records-sort{display:grid;gap:7px;min-width:138px}
.records-sort select{width:100%;max-width:none;height:42px;margin:0;padding:9px 30px 9px 12px;border-radius:10px;background:var(--surface);font-size:12px}
.records-course-filter{min-width:164px;max-width:220px;flex:0 1 190px}
.records-course-filter .course-filter{display:block;margin:0}
.records-course-filter .course-filter>label{display:grid;gap:7px;font-weight:500}
.records-course-filter .course-filter select{height:42px;width:100%;max-width:none;margin:0;font-size:12px;border-radius:10px}
.records-course-filter .course-filter>button{display:none}
.records-layout{display:grid;grid-template-columns:minmax(270px,.84fr) minmax(0,1.65fr);min-height:600px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}
.records-list-pane{min-width:0;border-right:1px solid var(--line);padding:0 13px 15px;background:color-mix(in srgb,var(--surface) 80%,var(--bg))}
.records-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:18px 10px 14px}
.records-list-heading h2{margin:0;font-size:14px;letter-spacing:0;font-weight:650}
.records-list-heading>span{font-size:11px;color:var(--muted)}
.records-list-status{font-size:11px;line-height:1.8;color:var(--muted);margin:0 10px 12px;overflow-wrap:anywhere}
.records-list-status:empty{display:none}
.records-retry{margin:0 10px 15px;font-size:12px}
.records-list{display:grid;align-content:start;gap:6px;max-height:calc(100dvh - 385px);min-height:180px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}
.records-list:empty{display:none}
.records-list .records-row{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;width:100%;min-width:0;min-height:103px;padding:15px 14px;border:1px solid transparent;border-radius:12px;text-align:left;color:var(--text);background:transparent;font-size:13px;font-weight:400;transform:none;transition:background .15s,border-color .15s}
.records-list .records-row:hover{background:var(--surface-2);transform:none}
.records-list .records-row:is([aria-selected=true],[aria-current=true],[aria-current=page],.is-selected){background:var(--soft);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.records-row-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650;line-height:1.6}
.records-row-meta{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:10px;color:var(--muted);font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.records-row-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;font-weight:400;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
.records-detail-pane{min-width:0;padding:0 27px 26px}
.records-detail{min-width:0;outline:none;overflow-wrap:anywhere}
.records-detail-header{padding-top:25px;margin-bottom:18px}
.records-detail-header h2{font-size:23px;line-height:1.45;letter-spacing:-.025em;margin:0 0 9px;overflow-wrap:anywhere}
.records-detail-header>p,.records-detail-header .records-row-meta{color:var(--muted);font-size:11px;line-height:1.8;margin:0}
.records-detail-header>.records-detail-source{font-size:10px;letter-spacing:.08em;margin-bottom:10px}
.records-rename-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.records-rename-form label{flex-basis:100%;font-size:11px;color:var(--muted)}
.records-rename-form input{flex:1;min-width:150px;padding:9px 12px;background:var(--bg);font-size:14px}
.records-rename-form button{padding:9px 12px;font-size:11px;min-height:40px}
.records-detail-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-bottom:15px;margin-bottom:2px}
.records-detail-tools button,.records-detail-tools .button{font-size:11px;padding:9px 11px;min-height:37px;gap:6px}
.records-detail-tools .icon{width:16px;height:16px}
.records-detail-tools [data-record-action=delete]{margin-left:auto;color:var(--muted)}
.records-detail-tools [data-record-action=delete]:hover{background:var(--surface-2);color:var(--text)}
.records-course-label{font-size:11px;color:var(--muted)}
.records-detail .course-record{margin:3px 0 12px;padding-top:15px}
.records-detail .course-record select{max-width:230px;font-size:12px;background:var(--bg)}
.records-detail .course-record .courses-status{font-size:10px}
.records-action-status{font-size:11px;color:var(--muted);line-height:1.8;min-height:1em;margin:0 0 13px}
.records-action-status:empty{display:none}
.records-page .is-error{color:#b14858}
[data-theme=dark] .records-page .is-error{color:#eea4b2}
.records-detail-tabs{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);margin:8px 0 22px;overflow-x:auto;scrollbar-width:none}
.records-detail-tabs button{position:relative;padding:13px 1px 14px;border:0;border-radius:0;color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap;transform:none}
.records-detail-tabs button:hover{background:transparent;color:var(--text);transform:none}
.records-detail-tabs button[aria-selected=true]{color:var(--text);font-weight:650}
.records-detail-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
.records-detail-tabs button:focus-visible{outline-offset:-3px}
.records-tab-count{display:inline-block;min-width:18px;padding:1px 5px;border-radius:5px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:500;line-height:1.5}
.records-detail-panel{min-width:0;max-height:calc(100dvh - 465px);min-height:260px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px 4px 0;outline:none}
.records-detail-panel h3{font-size:14px;letter-spacing:0;margin:0 0 12px}
.records-detail-panel p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.records-detail-panel>p:last-child{margin-bottom:0}
.records-segment{border-bottom:1px solid var(--line);padding:0 0 19px;margin:0 0 19px;min-width:0}
.records-segment:last-child{border-bottom:0;margin-bottom:0}
.records-segment-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:10px;font-size:10px;color:var(--muted);font-weight:500;line-height:1.6}
.records-bilingual{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-width:0}
.records-bilingual>*{min-width:0}
.records-bilingual>*+*{border-left:1px solid var(--line);padding-left:20px}
.records-bilingual p,.records-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;margin:0}
.records-bilingual h3,.records-bilingual h4,.records-bilingual small{display:block;color:var(--muted);font-size:10px;line-height:1.5;font-weight:500;letter-spacing:0;margin:0 0 8px}
.records-message{padding:17px 18px;background:var(--bg);border:1px solid var(--line);border-radius:12px;margin:0 0 12px;min-width:0}
.records-message-user{background:var(--soft);border-color:color-mix(in srgb,var(--accent) 18%,var(--line))}
.records-message .records-segment-meta{margin-bottom:7px}
.records-message h4{margin:0 0 7px;font-size:11px;font-weight:600;line-height:1.5;color:var(--muted)}
.records-message p:last-child{margin-bottom:0}
.records-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:var(--muted)}
.records-state h2,.records-state h3{font-size:18px;line-height:1.5;color:var(--text);letter-spacing:-.02em;margin:16px 0 10px;font-weight:550}
.records-state p,.records-empty-copy{font-size:12px;line-height:1.9;margin:0 0 18px;color:var(--muted);overflow-wrap:anywhere}
.records-state .button,.records-state button{font-size:12px}
.records-list-empty{min-height:280px;padding:35px 12px}
.records-list-empty h2,.records-list-empty h3{font-size:16px}
.records-detail-empty{min-height:540px;padding:45px 25px}
.records-detail>.records-state{min-height:540px;font-size:13px;line-height:1.8}
.records-empty-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid var(--line);border-radius:17px;background:var(--bg)}
.records-empty-icon .icon{width:27px;height:27px;opacity:.6}
.records-storage-note{display:flex;align-items:flex-start;gap:7px;font-size:10px;color:var(--muted);line-height:1.8;margin:15px 2px 0}
.records-storage-note .icon{width:14px;height:14px;margin-top:2px;opacity:.7}
.records-noscript{margin:24px 0;padding:17px;border:1px solid var(--line);border-radius:12px;color:var(--muted)}
.records-back{display:none}
@media(min-width:1600px){.records-layout{grid-template-columns:minmax(300px,.72fr) minmax(0,1.65fr)}.records-detail-pane{padding-inline:34px}}
@media(max-width:1200px){.records-main{padding-inline:24px}.records-layout{grid-template-columns:minmax(250px,.85fr) minmax(0,1.3fr)}.records-detail-pane{padding-inline:20px}.records-filters{gap:12px}.records-course-filter{min-width:145px;flex-basis:165px}.records-detail-tools{gap:5px}.records-detail-tools button,.records-detail-tools .button{padding-inline:9px}.records-bilingual{grid-template-columns:1fr;gap:11px}.records-bilingual>*+*{border-left:0;padding-left:0}.records-bilingual>*+* .records-text{color:var(--text)}}
@media(max-width:980px){.records-main{padding:25px 26px}.records-heading h1{font-size:28px}.records-layout{grid-template-columns:minmax(250px,.8fr) minmax(0,1.25fr)}.records-list{max-height:calc(100dvh - 430px)}.records-detail-panel{max-height:calc(100dvh - 470px)}}
@media(max-width:760px){
 .records-main{padding:22px 16px 25px}
 .records-heading{align-items:center;margin-bottom:23px}
 .records-heading h1{font-size:25px;line-height:1.3;margin-bottom:8px}
 .records-heading .eyebrow{font-size:9px}
 .records-heading p:last-child{max-width:240px;line-height:1.7;font-size:11px}
 .records-heading>.button{min-height:42px;padding:10px 11px;font-size:11px;gap:6px}
 .records-heading>.button .icon{width:16px;height:16px}
 .records-topbar{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:17px}
 .records-sources{flex:1;min-width:210px}
 .records-sources .records-source{flex:1;min-height:39px;padding-inline:12px;font-size:12px}
 .records-top-actions{margin-left:auto}
 .records-top-actions button{padding:10px;font-size:11px;gap:5px;min-height:44px}
 .records-top-actions .icon{width:16px;height:16px}
 .records-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px 12px;margin-bottom:18px}
 .records-search{grid-column:1/-1;min-width:0}
 .records-search input{height:46px;font-size:14px}
 .records-course-filter{min-width:0;max-width:none}
 .records-sort{min-width:0}
 .records-sort select,.records-course-filter .course-filter select{height:44px;font-size:12px}
 .records-layout{display:block;min-height:420px;border-radius:14px}
 .records-list-pane{border-right:0;padding:0 10px 13px}
 .records-list{max-height:none;overflow:visible;min-height:0}
 .records-list .records-row{min-height:105px;padding:16px 13px}
 .records-row-title{font-size:14px}
 .records-row-meta{font-size:11px}
 .records-row-preview{font-size:12px}
 .records-list-heading{min-height:61px;padding:16px 11px}
 .records-detail-pane{display:none;padding:12px 18px 24px}
 .records-root[data-detail-open=true] .records-list-pane{display:none}
 .records-root[data-detail-open=true] .records-detail-pane{display:block}
 .records-root[data-detail-open=true] .records-filters{display:none}
 .records-root[data-detail-open=true] .records-back{display:inline-flex;min-height:44px;padding:9px 2px;gap:8px;font-size:12px}
 .records-back .icon{transform:rotate(180deg)}
 .records-detail-header{padding-top:13px;margin-bottom:16px}
 .records-detail-header h2{font-size:22px}
 .records-detail-header>p{font-size:11px}
 .records-detail-tools{gap:7px}
 .records-detail-tools button,.records-detail-tools .button{min-height:42px;font-size:11px;padding:10px 11px}
 .records-detail-tools [data-record-action=delete]{margin-left:0}
 .records-rename-form input{min-height:44px;font-size:16px}
 .records-rename-form button{min-height:44px}
 .records-detail .course-record select{min-height:42px;max-width:100%}
 .records-detail-tabs{justify-content:space-between;gap:8px;margin-bottom:21px}
 .records-detail-tabs button{font-size:12px;padding:13px 3px 14px;min-height:44px}
 .records-detail-panel{min-height:240px;max-height:none;overflow:visible;padding:0}
 .records-segment-meta{font-size:11px}
 .records-bilingual{gap:13px}
 .records-bilingual p,.records-text,.records-detail-panel p{font-size:14px;line-height:1.95}
 .records-bilingual h3,.records-bilingual h4,.records-bilingual small{font-size:11px}
 .records-message{padding:15px;border-radius:11px}
 .records-detail-empty,.records-detail>.records-state{min-height:340px;padding:30px 15px}
 .records-storage-note{margin-top:14px;font-size:10px}
}
@media(max-width:390px){.records-heading>.button .icon{display:none}.records-top-actions{width:100%;justify-content:flex-end}.records-topbar{gap:7px}.records-top-actions button{padding-block:8px}.records-detail-pane{padding-inline:14px}.records-detail-tabs button{font-size:11px}.records-sort select{padding-left:9px}}
@media(prefers-reduced-motion:reduce){.records-list .records-row{transition:none}}

/* The workspace supplies navigation while the live document keeps recording. */
html.records-embedded{scroll-padding-top:20px}
.records-embedded .records-page{min-height:100dvh}
.records-embedded .site-header,.records-embedded .app-sidebar,.records-embedded .workspace-nav-toolbar,.records-embedded .workspace-nav-backdrop,.records-embedded .skip{display:none!important}
.records-embedded .app-frame{display:block;min-height:0;margin:0}
.records-embedded .records-main{max-width:none;width:100%;padding:24px}
.records-embedded .records-heading{margin-bottom:20px}
.records-embedded .records-heading h1{font-size:27px}
.records-embedded .records-heading .eyebrow{margin-bottom:10px}
.records-embedded .records-layout{min-height:520px}
.records-embedded .records-list{max-height:calc(100dvh - 285px)}
.records-embedded .records-detail-panel{max-height:calc(100dvh - 365px)}
.records-embedded .records-detail-empty,.records-embedded .records-detail>.records-state{min-height:460px}
.records-live-state{margin:-7px 0 18px;font-size:11px;line-height:1.8;color:var(--muted)}
@media(max-width:760px){
 .records-embedded .records-main{padding:20px 16px}
 .records-embedded .records-heading h1{font-size:25px}
 .records-embedded .records-heading>.button{white-space:nowrap}
 .records-embedded .records-layout{min-height:420px}
 .records-embedded .records-list,.records-embedded .records-detail-panel{max-height:none}
 .records-embedded .records-detail-empty,.records-embedded .records-detail>.records-state{min-height:340px}
}

/* Read, find evidence and continue working without leaving the saved session. */
.records-search-mark{background:color-mix(in srgb,var(--accent) 20%,var(--surface));color:var(--text);border-radius:3px;padding:0 1px}
.records-match-kind{color:var(--accent);font-size:10px}
.records-citation{display:inline-flex;vertical-align:baseline;align-items:center;border:1px solid var(--line);border-radius:5px;background:var(--soft);color:var(--accent);font-size:10px;font-weight:500;padding:2px 5px;margin:0 3px;line-height:1.5;white-space:nowrap;transform:none}
.records-citation:hover{background:var(--surface-2);transform:none}
.is-record-target{outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:5px;border-radius:5px;scroll-margin:14px}
.records-find{display:flex;align-items:center;gap:7px;padding:10px 0;margin:0 0 4px;min-width:0}
.records-find input{flex:1;min-width:0;width:100%;height:36px;border-radius:8px;padding:8px 10px;margin:0;font-size:12px;background:var(--bg)}
.records-find-count{flex-shrink:0;min-width:35px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:center}
.records-find button{font-size:10px;min-height:34px;padding:7px 8px;white-space:nowrap}
.records-answer-scope{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:12px}
.records-export-menu{position:relative}
.records-export-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;font-size:11px;padding:9px 11px;min-height:37px}
.records-export-menu>summary::-webkit-details-marker{display:none}
.records-export-menu>summary::after{content:'';display:block;width:13px;height:13px;background:currentColor;mask:url('/vendor/lucide/chevron-right.svg') center/contain no-repeat;transform:rotate(90deg)}
.records-export-menu[open]>summary{background:var(--soft);color:var(--accent)}
.records-export-choices{position:absolute;z-index:20;top:calc(100% + 5px);left:0;display:grid;gap:3px;min-width:155px;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--surface);box-shadow:var(--shadow)}
.records-export-choices button{text-align:left;justify-content:flex-start;border:0;background:transparent;border-radius:6px;white-space:nowrap}
.records-export-choices button:hover{background:var(--surface-2)}
.records-review{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:18px 0 4px;min-width:0}
.records-review textarea{display:block;width:100%;min-height:90px;resize:vertical;background:var(--bg);font-size:13px;line-height:1.8;padding:12px;border-radius:9px;margin:8px 0 10px}
.records-review label{font-size:12px;font-weight:500;line-height:1.6}
.records-review button,.records-review .button{font-size:11px;padding:8px 11px;min-height:36px}
.records-review p,.records-review small{font-size:11px;line-height:1.8;color:var(--muted)}
.records-review p:empty{display:none}
.records-review [role=status]{margin:10px 0;white-space:pre-wrap}
.records-review .is-error{color:#b14858}
[data-theme=dark] .records-review .is-error{color:#eea4b2}
.records-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.records-review-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;padding:14px;border-radius:9px;background:var(--bg);margin-top:14px}
.records-review-preview p{font-size:13px;color:var(--text)}
.records-detail-panel:has(.records-review){padding-right:8px}
.records-detail-panel .records-state{min-height:0;padding:20px 10px}
.records-detail-panel .records-state p{margin-bottom:0}
@media(max-width:760px){
 .records-find{flex-wrap:wrap;gap:6px}.records-find input{min-width:150px;min-height:42px;font-size:14px}.records-find button{min-height:40px}
 .records-review{padding:14px}.records-review textarea{font-size:16px;min-height:100px}.records-review button,.records-review .button{min-height:42px;font-size:12px}
 .records-export-menu>summary{min-height:42px}.records-citation{font-size:11px;padding:3px 6px}
}
.records-review-form-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.records-review-count{margin-left:auto;font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}
.records-review-hint{font-size:10px;color:var(--muted);line-height:1.8}
.records-review-note-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.records-review-stream{margin:15px 0;border-top:1px solid var(--line);padding-top:15px}
.records-review-stream h4{font-size:11px;line-height:1.7;margin:0 0 9px;color:var(--muted);font-weight:500}
.records-review-output{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;color:var(--text)}
.records-review .records-review-question{color:var(--text);font-size:12px;padding:9px 11px;background:var(--soft);border-radius:7px}
.records-review-draft{margin:10px 0;font-size:11px}
.records-review-draft>summary{cursor:pointer;padding:7px 0;color:var(--muted)}
.records-review-draft .records-review-output{padding:11px;background:var(--bg);border-radius:8px;margin-top:5px}
.records-review-login{padding:6px 0}
.records-review-login .button{display:inline-flex}
