@charset "UTF-8";
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1f2937;background:#f8fafc;--red:#c82032;--dark:#991b2b;--light:#fff1f2;--border:#e5e7eb;--muted:#667085}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}a{color:var(--red);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:0;border-radius:10px;background:var(--red);color:#fff;padding:12px 22px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.5}button:hover,.button:hover{background:var(--dark);text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}button.secondary,.button.secondary{background:#fff;color:#344054;border:1px solid var(--border)}button.secondary:hover{background:#f9fafb}button.danger{color:var(--red);background:var(--light)}button.small{padding:6px 12px;font-size:14px}button.link{background:transparent;color:var(--red);padding:4px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}:focus-visible{outline:3px solid #ef9da6;outline-offset:3px}.site-header{height:104px;padding:0 5%;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #edf0f3}.brand{display:flex;align-items:center;gap:13px;color:#9e1d2d;font-size:26px;font-weight:600;letter-spacing:-.7px}.brand:hover{text-decoration:none}.brand b{font-weight:400}.brand small{display:block;font-size:12px;letter-spacing:.5px;color:#7b8491;font-weight:400}.brand-mark{width:48px;height:48px;border-radius:15px;background:var(--red);color:#fff;display:grid;place-items:center}.brand-mark svg{width:27px;height:27px;stroke-width:2.2}nav{display:flex;gap:28px;align-items:center}nav a{color:#59616f;font-size:15px}main#app{max-width:1080px;margin:0 auto;padding:40px 28px 48px;min-height:calc(100vh - 175px)}.hero{text-align:center;margin-bottom:30px}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:700;color:var(--red);display:block}.hero h1{font-size:40px;letter-spacing:-1.3px;font-weight:650;line-height:1.2;margin:11px 0 13px}.hero p{color:var(--muted);margin:0;font-size:18px}.workflow{display:flex;justify-content:center;gap:30px;margin:22px auto 30px;color:#8a94a3;font-size:13px}.workflow span{display:flex;align-items:center;gap:8px}.workflow b{display:grid;place-items:center;width:22px;height:22px;border:1px solid #d9dfe7;border-radius:50%;font-size:11px}.workflow .active{color:var(--red)}.workflow .active b{background:var(--red);color:#fff;border-color:var(--red)}.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.shortcut{min-height:92px;padding:16px;background:#fff;border:1px solid var(--border);color:#485366;font-size:14px;flex-direction:column;gap:8px;box-shadow:0 2px 4px #10182803;font-weight:500}.shortcut svg{color:var(--red)}.shortcut:hover,.shortcut.selected{background:#fff6f7;border-color:#edb4bc;color:var(--dark)}.dropzone{background:#fff;border:2px dashed #e9a0aa;border-radius:18px;text-align:center;padding:27px 20px 25px}.dropzone.dragging{background:var(--light);border-color:var(--red)}.upload-symbol{width:52px;height:52px;background:var(--light);color:var(--red);display:grid;place-items:center;margin:0 auto 12px;border-radius:16px}.upload-symbol svg{width:29px;height:29px}.dropzone h2{font-size:21px;letter-spacing:-.4px;margin:0 0 6px;font-weight:600}.dropzone p{font-size:14px;color:var(--muted);margin:0 0 17px}.dropzone small{display:block;color:#89919e;font-size:12px;margin-top:12px}.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px 24px;margin-top:18px;box-shadow:0 3px 10px #10182803}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.card-heading h2{font-size:16px;margin:0;font-weight:600}.pill{font-size:12px;border-radius:20px;padding:4px 10px;display:inline-block;background:#eef2f6;color:#596575;font-weight:500;white-space:nowrap}.pill.Ready,.pill.Completed{background:#e9f8ee;color:#15783b}.pill.Failed,.pill.Cancelled{background:#fff1f2;color:var(--dark)}.pill.review{background:#fff7df;color:#946200}.target-row{display:flex;gap:13px;align-items:center}.target-icon{background:#f5f6f8;padding:12px;border-radius:10px;display:flex;color:#6c7584}.target-row select{flex:1}.target-actions{display:flex;gap:16px;margin-top:14px;font-size:13px}.hint{color:var(--muted);font-size:13px;margin:10px 0 0}.consent{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:#697384;margin:16px 2px}.consent input{margin:3px 0 0;width:16px;height:16px;accent-color:var(--red)}.start-button{width:100%;font-size:18px;padding:15px;border-radius:12px}.trust-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#87909d;font-size:12px;margin-top:13px}.trust-note svg{width:15px;height:15px}input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid #dce1e7;border-radius:9px;padding:11px 12px;width:100%;color:#344054;background:#fff;min-width:0}select{appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}textarea{min-height:90px;resize:vertical}input[type=checkbox],input[type=radio]{accent-color:var(--red);width:17px;height:17px}label{font-size:14px}.document-list{display:grid;gap:10px;margin:15px 0}.document-item{display:flex;gap:12px;align-items:center;padding:12px 15px;border:1px solid var(--border);border-radius:11px;background:#fff}.document-item input{flex-shrink:0}.document-icon{background:var(--light);color:var(--red);font-size:11px;letter-spacing:.5px;font-weight:700;padding:11px 7px;border-radius:8px}.document-info{flex:1;min-width:0}.document-info strong{font-size:14px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis}.document-info small{font-size:12px;color:#87909d}.preview{margin:12px 0;background:#f8fafc;border-radius:10px;padding:14px;max-height:260px;overflow:auto;font-size:13px}.preview dl{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px;margin:0}.preview dt{color:#77808e}.preview dd{margin:0;overflow-wrap:anywhere}.warning{color:#946200;background:#fffaeb;border:1px solid #f4e3ac;border-radius:9px;font-size:13px;padding:12px;margin:12px 0}.page-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.page-title h1{font-size:28px;letter-spacing:-.7px;margin:4px 0}.page-title p{font-size:14px;color:var(--muted);margin:4px 0}.back-link{font-size:14px;color:#6b7280;display:block;margin-bottom:18px}.empty-state{text-align:center;padding:55px 20px;color:var(--muted)}.empty-state h2{color:#344054;font-size:20px}.progress-track{height:8px;border-radius:10px;background:#f0f2f5;overflow:hidden;margin:20px 0 9px}.progress-track div{height:100%;background:var(--red);transition:width .3s}.progress-meta{display:flex;justify-content:space-between;color:#7b8492;font-size:13px}.controls{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.processing-icon{height:65px;width:65px;border-radius:18px;background:var(--light);color:var(--red);display:grid;place-items:center;margin:4px auto 18px}.processing-icon svg{height:32px;width:32px}.status-panel{text-align:center;padding:32px}.status-panel h2{margin:8px 0;font-size:24px}.status-panel p{color:var(--muted);font-size:14px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#7b8492;background:#fafbfc;font-weight:600}th,td{padding:14px 16px;border-bottom:1px solid #edf0f3;vertical-align:top}tr:last-child td{border-bottom:0}.mapping-table td input:not([type=checkbox]),.mapping-table td select{min-width:150px;padding:8px 10px;font-size:14px}.mapping-table td small{display:block;color:#8490a0;margin-top:5px;font-size:12px;max-width:260px}.mapping-table td:nth-child(3){width:34%}.mapping-table .unmatched{background:#fffcf5}.sticky-actions{position:sticky;bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:15px 20px;box-shadow:0 6px 25px #10182810;margin-top:18px}.sticky-actions p{font-size:13px;color:var(--muted);margin:0}.settings-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.settings-grid .card{margin:0}.form-field{margin:0 0 18px}.form-field label{display:block;font-weight:500;margin-bottom:7px}.form-field .radio-option{display:inline-flex;gap:7px;margin-right:20px;align-items:center}.form-field fieldset{border:1px solid var(--border);border-radius:9px;padding:10px}legend{font-size:13px;color:#7b8492}.settings-grid h2{font-size:18px;margin:0 0 22px}.settings-grid .consent{margin:12px 0 22px}.settings-grid p{font-size:14px;color:var(--muted)}.settings-grid li{font-size:14px;margin-bottom:12px;color:#667085}.settings-grid code{font-size:12px}footer{border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:1120px;margin:auto;padding:20px 24px;font-size:12px;color:#8a93a0}.local-badge{display:flex;align-items:center;gap:6px}.local-badge span{width:6px;height:6px;background:#16a34a;border-radius:50%}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 24px;background:#273142;color:#fff;border-radius:10px;font-size:14px;box-shadow:0 5px 20px #0002;max-width:90vw;z-index:20}#toast.error{background:#991b2b}.loading-state{padding:70px;text-align:center;color:var(--muted)}.playground{padding:30px}.form-sheet{max-width:1000px;background:white;border:1px solid var(--border);border-radius:16px;padding:35px;margin:auto}.form-sheet>.eyebrow{margin-top:24px}.form-sheet h1{font-size:32px;margin:10px 0}.form-sheet>p{color:var(--muted);font-size:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;padding-top:15px}.form-grid h2{grid-column:1/-1}.submit-area{border-top:1px solid var(--border);padding-top:25px;margin-top:25px}.submit-area p{font-size:13px;color:var(--muted)}[hidden]{display:none!important}@media(min-width:1440px){main#app{padding-top:52px}.dropzone{padding:40px 20px}}@media(max-width:700px){.site-header{height:82px;padding:0 20px}.brand{font-size:21px}.brand-mark{width:40px;height:40px;border-radius:12px}.brand small{font-size:10px}nav{gap:15px}nav a{font-size:13px}main#app{padding:28px 16px}.hero h1{font-size:30px}.hero p{font-size:15px}.workflow{gap:15px;font-size:12px}.shortcuts{grid-template-columns:repeat(2,1fr);gap:9px}.shortcut{min-height:78px;padding:10px}.dropzone h2{font-size:19px}.card{padding:18px}.settings-grid{grid-template-columns:1fr}.target-icon{display:none}.page-title h1{font-size:24px}.sticky-actions{position:static;flex-direction:column;gap:12px}footer{flex-direction:column;gap:5px;text-align:center}.form-grid{grid-template-columns:1fr}.playground{padding:12px}.form-sheet{padding:20px}.document-info strong{max-width:180px}}

/* Recent uploads and the searchable local document library. */
#documents{display:block}.documents-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 10px}.documents-heading h2{font-size:16px;margin:0}.documents-heading p{font-size:13px;color:var(--muted);margin:2px 0 0}#recent-documents{margin:0}.selected-source{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--light);border:1px solid #f5ccd1;border-radius:10px;padding:12px 16px;margin-top:10px}.selected-source span{display:block;font-size:12px;color:var(--dark)}.selected-source strong{display:block;font-size:14px;overflow-wrap:anywhere}.selected-source>div{min-width:0}.selected-source button{flex-shrink:0}.document-library{width:min(960px,calc(100vw - 32px));max-height:85vh;border:1px solid var(--border);border-radius:18px;padding:26px;background:#f8fafc;color:#1f2937;box-shadow:0 20px 80px #10182830;overflow:auto}.document-library::backdrop{background:#10182866}.library-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.library-header h2{margin:5px 0;font-size:25px;letter-spacing:-.5px}.library-header p{margin:0;color:var(--muted);font-size:14px}.library-filters{display:grid;grid-template-columns:1fr 170px;gap:14px;margin-top:22px}.library-filters label{display:block;margin-bottom:6px}.library-footer{border-top:1px solid var(--border);padding-top:15px;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted);gap:12px}.library-footer>div{display:flex;gap:8px}.library-empty{padding:24px 8px;text-align:center;color:var(--muted)}.document-item:has(input:checked){border-color:#e6a4ad}.document-info strong{white-space:nowrap}.document-library .document-info strong{max-width:100%}@media(max-width:700px){.documents-heading{align-items:flex-start}.documents-heading>button{font-size:12px;padding:7px 9px}.document-library{padding:16px}.library-filters{grid-template-columns:1fr}.document-library .document-item,#recent-documents .document-item{display:grid;grid-template-columns:20px 42px minmax(0,1fr) auto;gap:8px}.document-item .document-info strong{max-width:100%}.document-library [data-preview],#recent-documents [data-preview]{grid-column:3;justify-self:start}.document-library [data-delete],#recent-documents [data-delete]{grid-column:4;grid-row:2;justify-self:end}.document-library .pill,#recent-documents .pill{font-size:11px;padding:3px 7px}.library-header h2{font-size:22px}.library-footer{align-items:flex-start}.selected-source{align-items:flex-start}}


/* Compact task-first Home. Other pages retain their existing layouts. */
.home-page .site-header{height:64px;flex-shrink:0}
.home-page .brand{font-size:23px}.home-page .brand-mark{width:40px;height:40px;border-radius:12px}
.home-page main#app{max-width:1220px;width:100%;padding:18px 28px;min-height:0}
.home-page .hero{margin:0 0 14px}.home-page .hero>.eyebrow{display:none}
.home-page .hero h1{font-size:30px;margin:0 0 5px;letter-spacing:-.8px}.home-page .hero p{font-size:16px}
.home-page #app>.workflow{display:none}
.home-page .shortcuts{gap:8px;margin-bottom:14px}
.home-page .shortcut{min-height:40px;padding:8px 12px;flex-direction:row;font-size:14px;border-radius:9px}
.home-page .shortcut svg{height:19px;width:19px}
.home-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:22px;align-items:start}
.home-source{min-width:0}.home-target{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px;min-width:0;box-shadow:0 3px 10px #10182803}
.home-page .dropzone{padding:16px 18px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:14px;align-items:center;text-align:left;border-radius:13px}
.home-page .upload-symbol{grid-column:1;grid-row:1/3;width:40px;height:40px;border-radius:12px;margin:0}
.home-page .upload-symbol svg{width:25px;height:25px}
.home-page .dropzone h2{grid-column:2;grid-row:1;font-size:18px;margin:0 0 4px}
.home-page .dropzone p{grid-column:2;grid-row:2;font-size:13px;margin:0}
.home-page .dropzone #select-files{grid-column:3;grid-row:1/3;padding:10px 15px;font-size:14px}
.home-page .dropzone small{grid-column:1/-1;font-size:12px;margin-top:12px}
.home-page #documents{margin:0}
.home-page .documents-heading{margin:14px 0 9px;gap:8px}.home-page .documents-heading p{display:none}
.home-page .documents-heading>button{padding:6px 10px;font-size:13px}
.home-page #recent-documents{gap:8px}
.home-page #recent-documents .document-item{padding:10px;gap:10px;min-height:60px}
.home-page #recent-documents .document-icon{padding:9px 6px;font-size:10px}
.home-page #recent-documents .document-info strong{font-size:14px;max-width:100%}
.home-page #recent-documents .document-info small{font-size:12px}
.home-page #recent-documents button.link{font-size:14px}
.home-page .selected-source{padding:8px 12px;margin-top:8px}
.home-page .home-target .card{border:0;box-shadow:none;border-radius:0;padding:0;margin:0}
.home-page .home-target .card-heading{flex-wrap:wrap;margin-bottom:16px}
.home-page .home-target .card-heading h2{font-size:17px}
.home-page .home-target .target-icon{display:none}
.home-page .home-target .target-row select{font-size:14px;padding:11px 34px 11px 11px}
.home-page .home-target .target-actions{margin-top:12px}
.home-page .home-target .hint{font-size:13px;line-height:1.6;margin-top:12px}
.home-page .home-target .consent{margin:20px 0 16px;font-size:13px;line-height:1.6}
.home-page .home-target .start-button{padding:12px 15px;font-size:16px}
.home-page .home-target .trust-note{font-size:12px;line-height:1.5;text-align:center;margin-top:12px}
.home-page footer{width:100%;max-width:1220px;padding:12px 28px;font-size:12px}
@media(min-width:1000px){body.home-page{min-height:100dvh;display:flex;flex-direction:column}.home-page main#app{flex:1}.home-page footer{flex-shrink:0}}
@media(min-width:1000px) and (max-height:720px){.home-page main#app{padding-top:12px;padding-bottom:12px}.home-page .hero{margin-bottom:10px}.home-page .hero h1{font-size:27px}.home-page .shortcuts{margin-bottom:12px}.home-page .home-target{padding:18px}.home-page footer{padding-top:8px;padding-bottom:8px}}
@media(max-width:999px){.home-layout{grid-template-columns:1fr;gap:18px}.home-page main#app{max-width:780px}.home-page .home-target{padding:20px}}
@media(max-width:600px){.home-page .site-header{height:64px;padding:0 16px}.home-page .brand{font-size:20px}.home-page main#app{padding:20px 16px}.home-page .hero h1{font-size:26px}.home-page .hero p{font-size:14px}.home-page .shortcuts{grid-template-columns:repeat(2,1fr)}.home-page .shortcut{font-size:13px;padding:9px 7px}.home-page .dropzone{grid-template-columns:36px minmax(0,1fr);gap:8px}.home-page .dropzone h2{font-size:17px}.home-page .dropzone p{font-size:12px}.home-page .dropzone #select-files{grid-column:1/-1;grid-row:3;justify-self:start;margin-top:6px}.home-page .dropzone small{margin-top:4px}.home-page #recent-documents .document-item{gap:8px}.home-page footer{padding:14px 16px}}


/* Let desktop work areas use the available window height without adding content. */
@media(min-width:1000px){
 body.home-page{height:100dvh;min-height:640px}
 .home-page main#app{display:flex;flex-direction:column;min-height:0;padding-top:clamp(12px,2.2vh,24px);padding-bottom:clamp(16px,2.5vh,28px)}
 .home-page .hero,.home-page .shortcuts{flex-shrink:0}
 .home-page .hero h1{font-size:clamp(27px,3.5vh,38px)}
 .home-page .shortcuts .shortcut{min-height:clamp(40px,5vh,48px)}
 .home-page .home-layout{flex:1;min-height:0;align-items:start}
 .home-page .home-source{display:flex;flex-direction:column;min-height:0}
 .home-page .dropzone{flex:0 0 auto;min-height:148px;align-content:center;padding-top:clamp(16px,3vh,32px);padding-bottom:clamp(16px,3vh,32px)}
 .home-page #documents{display:flex;flex-direction:column;flex:0 0 auto;min-height:auto}
 .home-page .documents-heading{flex-shrink:0;margin-top:16px;margin-bottom:10px}
 .home-page #recent-documents{flex:none;grid-auto-rows:clamp(60px,9vh,100px);gap:10px}
 .home-page #recent-documents .document-entry{display:flex;flex-direction:column;min-width:0}
 .home-page #recent-documents .document-item{flex:1;padding:12px;gap:12px}
 .home-page .selected-source{flex-shrink:0}
 .home-page .home-target{display:flex;flex-direction:column;padding:clamp(18px,2.6vh,28px)}
 .home-page .home-target .card-heading{margin-bottom:clamp(16px,2.5vh,26px)}
 .home-page .home-target .consent{margin-top:auto;padding-top:20px}
 .home-page .home-target .start-button{flex-shrink:0;min-height:48px}
 .home-page .home-target .trust-note{flex-shrink:0;margin-top:14px}
}
@media(min-width:1000px) and (min-height:800px){
 .home-page .hero{margin-bottom:20px}
 .home-page .shortcuts{margin-bottom:20px}
 .home-page .home-target .hint{font-size:14px;line-height:1.75;margin-top:18px}
 .home-page .home-target .consent{font-size:14px;line-height:1.7;margin-bottom:20px}
 .home-page .home-target .target-row select{font-size:15px;min-height:50px}
 .home-page .home-target .start-button{font-size:17px;min-height:52px}
 .home-page #recent-documents .document-info strong{font-size:15px}
}


/* Word shares the existing DOCX parser and automation workflow. */
.home-page .shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}

@media(max-width:600px){.home-page .shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.account-page{max-width:460px;margin:8vh auto;padding:20px}.account-page .card{padding:28px}.workspace-switch{display:flex;align-items:center;gap:8px;font-size:13px}.workspace-switch select{max-width:200px;padding:8px}.member-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}#account-settings,#organization-admin{margin-top:20px}#account-settings label,#organization-admin label,#settings-form label,#provider-form label{display:block;margin:12px 0}#account-settings input,#organization-admin input,#settings-form input,#settings-form select,#provider-form input,#provider-form select{max-width:100%}

@media(max-width:700px){.site-header nav{flex-wrap:wrap;gap:8px;justify-content:flex-end}.workspace-switch{font-size:11px}.workspace-switch select{max-width:130px}.site-header{gap:10px}.site-header .brand{flex-shrink:0}}

.account-page{margin:clamp(16px,4vh,40px) auto}.account-page .card{padding:24px}.account-page h1{margin:0 0 12px}.account-page p{margin:12px 0}.account-page .form-field{margin:12px 0}

.plan-link{border:1px solid #f4b7bf;border-radius:20px;padding:6px 12px;color:#991B2B;background:#FFF1F2;white-space:nowrap}
.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.plans-grid .card{display:flex;flex-direction:column;align-items:flex-start}.plans-grid p{line-height:1.6}.usage-summary,#payments{margin-top:20px}#paid-options button{margin-top:8px}#orders button{margin:8px}.trial-note{font-size:12px}
@media(max-width:850px){.plans-grid{grid-template-columns:1fr}.site-header nav{flex-wrap:wrap}}

/* Account entry: two fields, one primary action, and a clear free-trial exit. */
.account-screen{min-height:100dvh;height:auto;display:grid;place-items:center;padding:24px 16px}
.account-screen .account-page{width:100%;max-width:420px;margin:0;padding:0;flex:none}
.account-screen .account-brand{justify-content:center;margin:0 auto 24px;font-size:24px}
.account-screen .account-brand .brand-mark{width:42px;height:42px}
.account-screen .account-brand small{font-size:11px;font-weight:400;margin-top:4px}
.account-screen .account-card{padding:28px;border-radius:18px}
.account-screen h1{font-size:27px;line-height:1.2;margin:0 0 8px}
.account-screen #account-description{color:#64748b;font-size:14px;line-height:1.6;margin:0 0 22px}
.account-screen .form-field{margin:16px 0}
.account-screen label{font-size:14px;font-weight:600}
.account-screen input{width:100%;min-height:46px;font-size:16px;margin-top:7px}
.account-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.account-screen .link{padding:0;background:none;border:0;box-shadow:none;border-radius:4px;font-size:13px;font-weight:600;min-height:24px}
.account-password{position:relative}.account-screen .account-password input{padding-right:64px}
.account-screen #show-password{position:absolute;right:12px;top:7px;bottom:0;margin:auto 0;height:32px;min-width:40px}
.account-screen #password-hint{display:block;line-height:1.5;margin-top:6px;font-size:12px}
.account-screen #password-hint[hidden]{display:none}
.account-screen .account-primary{width:100%;min-height:46px;margin-top:4px}
.account-screen .account-alternative{text-align:center;font-size:13px;color:#64748b;margin:20px 0 0}
.account-screen .account-guest{display:block;text-align:center;padding:16px 8px 6px;font-weight:600;font-size:14px;color:#991B2B}
.account-screen .account-note{text-align:center;font-size:12px;line-height:1.6;margin:4px 12px 0}
.account-screen #account-status{font-size:13px;line-height:1.5;padding:10px 12px;border-radius:8px;background:#f1f5f9;overflow-wrap:anywhere}
.account-screen #account-status.account-error{color:#991B2B;background:#FFF1F2}
@media(max-width:420px){.account-screen{padding:18px 12px}.account-screen .account-card{padding:22px}.account-screen .account-brand{margin-bottom:18px}}

.account-screen [hidden]{display:none!important}

.home-target #target-mode{width:100%;margin:0 0 10px;padding:8px 10px;min-height:36px;font-size:13px}
#website-controls label{font-size:12px;font-weight:600}.website-address{display:flex;gap:6px;margin:5px 0 10px}.website-address input{min-width:0;flex:1;padding:9px 10px;font-size:13px}.website-address button{font-size:12px;white-space:nowrap;padding:8px 10px}
.connection-choice{display:flex;gap:6px;align-items:center}.connection-choice select{flex:1;min-width:0;font-size:12px;padding:8px 9px}.connection-choice button{font-size:12px}
.home-target #connection-status{font-size:12px;line-height:1.5;margin:10px 0}.home-target .ai-job-consent{font-size:12px;line-height:1.5;margin:12px 0 0;padding-top:0!important;align-items:flex-start}
.home-target [hidden]{display:none!important}#test-controls .card-heading{display:none}.home-target #test-controls .hint{font-size:12px;margin:8px 0}
@media(min-width:1000px){.home-page .home-target .consent{padding-top:12px;font-size:12px;line-height:1.5;margin-bottom:12px}.home-page .home-target .card-heading{margin-bottom:12px}.home-page .home-target .card-heading h2{font-size:18px}.home-page .home-target .trust-note{font-size:10px;margin-top:10px}}

.save-workflow-panel{margin-top:20px}.save-workflow-panel select{width:100%;max-width:600px;margin:8px 0 16px}.save-workflow-panel [hidden]{display:none!important}.save-workflow-panel button{display:block;margin-top:14px}

.write-policy-controls{margin-bottom:18px}.write-policy-controls select{max-width:480px;width:100%;margin:8px 0}.write-policy-controls p{font-size:13px}.current-target-value{max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere}

.write-policy-controls~.sticky-actions{position:static;margin-top:18px}

/* Shared public directory and compact workspace footer. */
.autofill-footer{display:block;padding:24px 5%;border-top:1px solid var(--border);background:#fff;color:var(--muted);font-size:14px}.footer-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:18px 0 26px}.footer-columns h2{font-size:15px;color:#344054;margin:0 0 12px}.footer-columns a{display:block;margin:8px 0;color:#59616f}.footer-columns a:hover{color:var(--red)}.footer-directory summary{cursor:pointer;color:var(--red);font-weight:600}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.language-picker{display:flex;align-items:center;gap:10px}.language-picker select{width:240px!important}.autofill-footer>small{display:block;margin-top:12px}.google-sign-in{width:100%;margin-bottom:8px}.google-sign-in>span:first-child{font-weight:800;color:#4285f4}.information-page{max-width:900px;margin:32px auto;padding:24px}.information-page article{background:#fff;padding:24px;border:1px solid var(--border);border-radius:14px}.information-page p{max-width:75ch}.account-screen{display:block!important}.account-page{margin:0 auto}.compact-footer .footer-directory:not([open]){margin-bottom:14px}@media(max-width:640px){.footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-bottom{align-items:flex-start}.language-picker{width:100%;flex-wrap:wrap}.language-picker select{max-width:100%}.information-page{padding:12px;margin:12px auto}}

.autofill-footer{text-align:left}

/* Language chooser: native popover, with a native select fallback. */
.language-widget{position:relative}.language-widget.is-enhanced .language-fallback{display:none}.language-trigger[hidden]{display:none}.language-trigger{min-width:230px;justify-content:flex-start;background:#fff;gap:12px;border-color:#cbd1db!important}.language-trigger .language-chevron{margin-left:auto;width:18px;height:18px;transition:transform .15s}.language-trigger[aria-expanded=true] .language-chevron{transform:rotate(180deg)}.language-panel{position:fixed;inset:auto;margin:0;padding:22px;border:1px solid var(--border);border-radius:18px;background:#fff;color:#1f2937;box-shadow:0 12px 45px #10182829;overflow:auto}.language-panel::backdrop{background:transparent}.language-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.language-panel-heading h2{margin:0;font-size:17px}.language-panel .language-close{font-size:26px;padding:0 8px}.language-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.language-panel .language-option{display:flex;align-items:center;justify-content:flex-start;text-align:left;background:transparent;color:#202124;border-radius:8px;padding:12px 10px;font-weight:500;min-height:48px;gap:8px}.language-panel .language-option:hover{background:#fff1f2;color:var(--red)}.language-option[aria-pressed=true]{font-weight:750;color:var(--red)}.language-check{width:18px;flex:none;visibility:hidden}.language-option[aria-pressed=true] .language-check{visibility:visible}.language-auto{border-top:1px solid var(--border);border-radius:0!important;margin-top:12px;width:100%}.language-panel .hint{font-size:12px;line-height:1.5;margin:10px 10px 0}.language-panel :focus-visible{outline:2px solid var(--red);outline-offset:1px}@media(max-width:480px){.language-options{grid-template-columns:1fr}.language-panel{padding:16px}.language-trigger{min-width:220px;max-width:100%}.language-widget{max-width:100%}}

/* Full footer follows the first-screen desktop work area in normal document flow. */
@media(min-width:1000px){
 body.home-page{height:auto;min-height:100dvh}
 .home-page main#app{flex:0 0 auto;height:calc(100dvh - 64px);min-height:576px}
 .home-page footer.autofill-footer{max-width:none;padding:32px max(28px,calc((100% - 1164px)/2));font-size:14px}
}
.autofill-footer .footer-columns{margin-top:0}

/* IsiField wordmark colors. */
.wordmark-isi{color:#111111}.wordmark-field{color:#c82032}

.brand-mark img{display:block;width:100%;height:100%;border-radius:inherit}

/* Keep document names and metadata on two lines in side-by-side windows. */
.document-library .document-item,#recent-documents .document-item{grid-template-columns:18px 34px minmax(0,1fr) auto auto 24px;column-gap:8px;row-gap:0;align-items:center}
.document-library .document-item>input,#recent-documents .document-item>input{grid-column:1;grid-row:1;margin:0}
.document-library .document-icon,#recent-documents .document-icon{grid-column:2;grid-row:1;text-align:center;padding:8px 3px;font-size:10px}
.document-library .document-info,#recent-documents .document-info{grid-column:3;grid-row:1;min-width:0}
.document-library .document-item>.pill,#recent-documents .document-item>.pill{grid-column:4;grid-row:1;font-size:11px;padding:3px 7px}
.document-library [data-preview],#recent-documents [data-preview]{grid-column:5;grid-row:1;justify-self:center;font-size:12px;white-space:nowrap;min-height:32px}
.document-library [data-delete],#recent-documents [data-delete]{grid-column:6;grid-row:1;min-height:32px;min-width:24px}
.document-meta{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap;overflow:hidden}
.document-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.document-meta .document-stats{flex:0 1 auto}
.document-meta .document-upload-time{flex:0 1 auto}
.document-meta .document-upload-time:before{content:"·";margin-right:6px}
.document-upload-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.document-preview-icon{display:none}
.home-page #recent-documents .document-item{padding:8px 10px;gap:8px;min-height:60px}
@media(min-width:1000px){.home-page #recent-documents{grid-auto-rows:64px}}
@media(max-width:800px){.home-page #recent-documents .document-info small,.document-library .document-info small{font-size:11px}}
@media(max-width:600px){
 .document-library .document-item,#recent-documents .document-item{grid-template-columns:16px 28px minmax(0,1fr) auto 28px 24px;column-gap:6px}
 .document-library [data-preview] span,#recent-documents [data-preview] span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .document-preview-icon{display:block;width:20px;height:20px}
 .document-library .document-info strong,.home-page #recent-documents .document-info strong{font-size:13px}
}

/* Local tutorial players: no autoplay, external embeds or tracking. */
.tutorial-videos{display:grid;gap:28px;margin-top:24px}.tutorial-card{min-width:0;border-top:1px solid var(--border);padding-top:20px}.tutorial-card h2{font-size:21px;margin-bottom:8px}.tutorial-card video{display:block;width:100%;max-width:100%;aspect-ratio:16/9;background:#17191e;border-radius:10px}.tutorial-card>p{font-size:15px}.tutorial-download{margin-top:28px}.tutorial-download a{display:inline-block;max-width:100%;white-space:normal}

.automatic-matching{margin:16px 0;font-size:14px}.automatic-matching .hint{margin:5px 0}.automatic-matching .link{margin-left:12px}
.assistance-dialog{max-width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e0e4ea;border-radius:16px;padding:24px;color:#202731;background:white}
.assistance-dialog::backdrop{background:#11182788}.assistance-dialog p{line-height:1.6}.assistance-dialog .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

.automatic-matching:not(.matching-settings){display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:8px 0;font-size:12px;line-height:1.3}
.automatic-matching:not(.matching-settings) strong{font-size:12px}.automatic-matching:not(.matching-settings) .link{margin:0;padding:0;min-height:0;font-size:12px}
.matching-mode{font-size:11px;color:#667085}.automatic-matching:not(.matching-settings) .ai-privacy-link{margin-left:auto}

/* Balanced workspace: compact upload and independent target card. */
.home-page .home-target{align-self:start}
.home-page .home-target #on-page-status{margin:14px 0 0;font-size:12px;line-height:1.55}
.home-page .automatic-matching:not(.matching-settings){padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:12px 0 0}
.home-page .automatic-matching:not(.matching-settings) strong{font-weight:600}
.home-page .automatic-matching:not(.matching-settings) #configure-assistance{flex-basis:auto}
@media(min-width:1000px){
 .home-page .home-layout{grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr);gap:24px}
 .home-page .dropzone{padding:22px 20px}
 .home-page #recent-documents{grid-auto-rows:clamp(60px,8vh,82px)}
 .home-page .home-target{padding:22px}
 .home-page .home-target .hint{margin-top:12px;font-size:12px;line-height:1.55}
}
@media(max-width:999px){
 .home-page .dropzone{min-height:140px;align-content:center}
 .home-page .home-target{width:100%}
}

/* One balanced desktop stage; the footer always starts after that stage. */
@media(min-width:1000px){
 .home-page main#app{max-width:1400px;justify-content:flex-start;padding:20px 32px;overflow:visible}
 .home-page .home-layout{flex:1;align-items:stretch;gap:20px}
 .home-page .home-source{display:flex;flex-direction:column;gap:0}
 .home-page #documents{margin-top:auto}
 .home-page .home-target #on-page-status{margin-top:auto;padding-top:14px}
 .home-page .dropzone{flex:1 0 148px;min-height:148px;max-height:none;padding:20px}
 .home-page .home-target{align-self:stretch;padding:20px}
 .home-page .home-target .trust-note{margin-bottom:0}
 .home-page #recent-documents{grid-auto-rows:68px}
 .home-page .documents-heading{margin-top:14px}
 .home-page footer.autofill-footer{position:static;clear:both;margin-top:0}
}
@media(min-width:1000px) and (max-height:780px){
 .home-page main#app{padding-top:12px;padding-bottom:16px}
 .home-page .hero{margin-bottom:12px}
 .home-page .shortcuts{margin-bottom:14px}
 .home-page .home-target{padding:18px}
}

@media(min-width:1200px) and (min-height:850px){
 .home-page .hero h1{font-size:clamp(32px,4vh,42px)}
 .home-page .hero p{font-size:18px}
 .home-page .hero{margin-bottom:22px}
 .home-page .shortcuts{margin-bottom:22px}
 .home-page .shortcut{font-size:16px;min-height:50px}
 .home-page #recent-documents{grid-auto-rows:clamp(76px,9vh,96px)}
 .home-page .home-target{padding:26px}
 .home-page .home-target .card-heading h2{font-size:22px}
 .home-page .home-target .target-row select,.home-page #target-mode{font-size:15px;min-height:46px}
 .home-page .home-target .hint,.home-page .home-target #on-page-status{font-size:14px}
 .home-page .dropzone h2{font-size:21px}
 .home-page .dropzone p{font-size:15px}
}

@media(min-width:1000px){
 .home-page .home-target>.card{display:flex;flex-direction:column;flex:1;min-height:0}
 .home-page .home-target #website-controls:not([hidden]){display:flex;flex-direction:column;justify-content:space-evenly;gap:8px;flex:1}
 .home-page .home-target #connection-status{margin-bottom:4px}
 .home-page .home-target #on-page-status{margin-top:12px;padding-top:0}
 .home-page .home-target .consent{margin-top:16px}
}

@media(min-width:1000px) and (max-height:780px){
 .home-page .home-target{padding:16px}
 .home-page .home-target #website-controls:not([hidden]){gap:0}
 .home-page .home-target>.card{flex:1 1 auto}
 .home-page .home-target .consent{margin-top:10px;margin-bottom:10px}
 .home-page .automatic-matching:not(.matching-settings){padding:8px 0;margin-top:8px}
 .home-page .home-target .hint{margin-top:8px}
}

/* Returning a source to Home changes document order only. */
.history-documents{margin:0 0 24px}.history-jobs-heading{font-size:18px;margin:24px 0 12px}.history-document-name{display:block;max-width:240px;overflow-wrap:anywhere}.history-document-name+small{display:block;color:var(--muted);margin-top:4px}.history-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:135px}.document-library .library-activate{grid-column:3 / -1;grid-row:2;justify-self:start;margin-top:8px}

.online-status{max-width:1200px;margin:20px auto;padding:20px;border:1px solid #f2bcc3}.online-status p{margin:8px 0 0}.account-page .online-status{max-width:100%;margin:0 0 20px}
