/* Presentation only: existing controls, permissions and document behavior are retained. */
body.home-page{background:radial-gradient(ellipse at 50% 0,#f0f1f8 0,transparent 65%),#f8fafc}
.home-page .site-header{position:relative;top:6px;width:calc(100% - 24px);max-width:1450px;margin:0 auto;padding:0 24px;background:linear-gradient(120deg,#fff,#fafafd);border:1px solid #e5e7ef;border-radius:16px;box-shadow:0 5px 18px #1f29370a}
.home-page .brand{gap:12px;letter-spacing:-.6px}
.home-page .brand small{letter-spacing:.1px}
.home-page .brand-mark{box-shadow:0 3px 8px #c820321a}
.home-page nav{gap:22px}
.home-page .workspace-switch{border:1px solid #f6dce2;background:#fff6f8;border-radius:24px;padding:3px 10px;gap:4px}
.home-page .workspace-switch select{background:transparent;border:0;box-shadow:none;padding:7px 22px 7px 4px;font-weight:600;max-width:180px}
.home-page .plan-link{border-color:#f7c7d0;background:#fff1f4;font-weight:600}
.home-page .hero h1{color:#111827;font-weight:750}
.home-page .shortcuts{gap:10px}
.home-page .shortcut{background:linear-gradient(#fff,#fafbfe);border-color:#e5e7ef;box-shadow:0 3px 7px #18223006;font-weight:600}
.home-page .shortcut.selected{background:linear-gradient(#fff6f8,#ffeef2);border-color:#f4a8b7;color:#ba132b;box-shadow:0 3px 9px #c8203210}
.home-page .home-source,.home-page .home-target{background:linear-gradient(135deg,#fff,#fdfdff);border:1px solid #e7e9f1;border-radius:18px;box-shadow:0 5px 18px #18223008;min-width:0}
.home-page .home-source{padding:18px}
.home-page .source-heading{display:flex;align-items:center;gap:12px;font-size:19px;line-height:28px;font-weight:700;margin:0 0 14px;color:#182230}
.home-page .source-heading::before,.home-page .home-target>.card>.card-heading h2::before,.home-page .automatic-matching>strong::before{display:inline-grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:linear-gradient(135deg,#e5223c,#c82032);color:#fff;font-size:16px;font-weight:700;line-height:1}
.home-page .source-heading::before{content:"1"}
.home-page .home-target>.card>.card-heading h2{display:flex;align-items:center;gap:10px;font-weight:700}
.home-page .home-target>.card>.card-heading h2::before{content:"2"}
.home-page .dropzone{background:linear-gradient(135deg,#ffe0e6,#fff1f2);border:1.5px dashed #e77d92;border-radius:13px}
.home-page .dropzone p{color:#5d6575}
.home-page .dropzone small{color:#775361}
.home-page .dropzone.dragging{background:#ffd2dc;border-color:#c82032;box-shadow:inset 0 0 0 1px #c82032}
.home-page #select-files,.home-page #connect-site{box-shadow:0 3px 7px #c8203218;border-radius:10px}
.home-page .upload-symbol{background:transparent;color:#cf1932}
.home-page .documents-heading{padding-top:13px;border-top:1px solid #e6e9f0}
.home-page #view-documents{background:transparent;border:0;box-shadow:none;color:#c82032;font-weight:600}
.home-page #recent-documents .document-item{background:#fcfcfe;border-color:#e0e4ed;border-radius:12px}
.home-page #recent-documents .document-item:has(input:checked){background:#fffafb;border-color:#edb0bb;box-shadow:0 0 0 1px #c8203205}
.home-page #recent-documents [data-preview]{border:1px solid #f0aebb;border-radius:8px;padding:4px 9px;background:#fff;color:#c82032}
.home-page #recent-documents [data-delete]{color:#667085}
.home-page #recent-documents [data-delete]:hover{color:#c82032;background:#fff1f2}
.home-page .home-target select,.home-page #website-url{background-color:#fcfcff;border-color:#dce1eb;border-radius:9px}
.home-page #runtime-state[data-ready=true]{background:#eafaf0;color:#168043;border:1px solid #d9f4e3}
.home-page #connection-status{padding:10px 12px;background:#f4f6fd;border:1px solid #e2e6f4;border-radius:9px}
.home-page .automatic-matching:not(.matching-settings){gap:8px;padding:14px 0 12px;margin-top:12px;border-bottom:0}
.home-page .automatic-matching>strong{flex-basis:100%;display:flex;align-items:center;gap:10px;font-size:16px!important;color:#182230}
.home-page .automatic-matching>strong::before{content:"3"}
.home-page .automatic-matching .ai-privacy-link{margin-left:0!important;padding:6px 12px;border:1px solid #edc4cd;border-radius:8px;background:#fff8fa;color:#b71931}
.home-page .automatic-matching .matching-mode{margin-left:auto;padding:6px 12px;border:1px solid #e1e5ee;background:#f8f9fc;border-radius:8px;font-size:12px}
.home-page .automatic-matching[data-assistance=automatic] .matching-mode{color:#24764b;background:#f1fbf5;border-color:#dcefe3}
.home-page .automatic-matching #configure-assistance{margin-left:auto!important;font-weight:600}
.home-page :is(button,a,input,select):focus-visible{outline:2px solid #c82032;outline-offset:3px}
@media(min-width:1000px){
 .home-page .home-layout{grid-template-columns:minmax(0,1.45fr) minmax(350px,1fr);gap:18px}
 .home-page .home-source{min-height:0}
 .home-page .home-target{padding:18px}
 .home-page .home-target #website-controls:not([hidden]){justify-content:flex-start;gap:8px}
 .home-page .home-target #website-controls>label{margin-top:6px}
 .home-page .home-target #connection-status{margin-top:auto;margin-bottom:0}
 .home-page .home-target #on-page-status{margin-top:4px}
 .home-page #documents{margin-top:0}
}
@media(min-width:1000px) and (min-height:850px){
 .home-page .dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:190px;padding:16px}
 .home-page .dropzone .upload-symbol{flex:none;width:44px;height:44px}
 .home-page .dropzone .upload-symbol svg{width:42px;height:42px}
 .home-page .dropzone h2,.home-page .dropzone p{margin:0}
 .home-page .dropzone #select-files{margin-top:5px;min-width:145px}
 .home-page .dropzone small{margin-top:3px}
}
@media(min-width:1000px) and (max-height:849px){
 .home-page .home-source{padding:14px}
 .home-page .source-heading{font-size:17px;margin-bottom:10px;line-height:24px}
 .home-page .home-target{padding:14px}
 .home-page .home-target #website-controls:not([hidden]){gap:0}
 .home-page .automatic-matching:not(.matching-settings){padding:9px 0;gap:6px;margin-top:8px}
 .home-page .automatic-matching>strong{flex-basis:auto;flex:1;font-size:12px!important;gap:7px}
 .home-page .automatic-matching .ai-privacy-link{padding:3px 5px}
 .home-page .automatic-matching .matching-mode{padding:3px 6px}
 .home-page .source-heading::before,.home-page .home-target>.card>.card-heading h2::before,.home-page .automatic-matching>strong::before{width:23px;height:23px;flex-basis:23px;font-size:13px}
 .home-page #connection-status{padding:7px 9px}
 .home-page .home-target .hint{font-size:12px}
}
@media(max-width:1100px) and (min-width:701px){
 .home-page .site-header{padding:0 16px}
 .home-page nav{gap:12px}
 .home-page .workspace-switch{font-size:11px;padding-inline:6px}
 .home-page .workspace-switch select{max-width:125px}
}
@media(max-width:999px){
 .home-page .home-source{padding:16px}
 .home-page .home-target{padding:18px}
 .home-page .source-heading{font-size:18px}
}
@media(max-width:700px){
 .home-page .site-header{width:100%;top:0;border-radius:0;border-width:0 0 1px;box-shadow:none;padding:0 14px}
 .home-page nav{gap:8px}
 .home-page .workspace-switch{padding:0 4px;border-radius:10px}
 .home-page .workspace-switch select{padding:5px 14px 5px 2px;max-width:100px}
 .home-page .home-source{padding:12px}
 .home-page .home-target{padding:16px}
 .home-page .automatic-matching>strong{font-size:14px!important}
}
@media(max-width:600px){
 .home-page #recent-documents [data-preview]{padding:3px;border-radius:7px}
 .home-page .source-heading{font-size:17px;margin-bottom:12px}
}
@media(prefers-reduced-motion:reduce){.home-page *{scroll-behavior:auto}}

.home-page nav>a::before{content:"";display:inline-block;width:17px;height:17px;margin-right:6px;vertical-align:-3px;background:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain}
.home-page nav>a[href="/information/tutorials"]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8 6 4-6 4Z'/%3E%3C/svg%3E")}
.home-page nav>a[href="/history"]::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E")}
.home-page nav>a[href="/settings"]::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%203-1%203-3%201-2%203%202%202-1%203%203%202%201%203h4l1-3%203-1%202-3-2-2%201-3-3-2-1-3Z%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2211%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
.home-page nav>a[href="/plans"]::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%204%204%205-7%205%207%204-4-2%2013H5Z%22%2F%3E%3C%2Fsvg%3E")}

.home-page nav>a:not([href="/information/tutorials"]):not([href="/history"]):not([href="/settings"]):not([href="/plans"])::before{display:none}
.home-page #recent-documents [data-preview]{display:inline-flex;align-items:center;gap:5px}
.home-page #recent-documents .document-preview-icon{display:block;width:14px;height:14px;flex:none}
@media(max-width:1100px){.home-page nav>a::before{display:none}}
@media(max-width:999px){
 .home-page .site-header{height:auto;min-height:76px;padding-top:8px;padding-bottom:8px;gap:12px}
 .home-page .site-header nav{flex-wrap:wrap;justify-content:flex-end}
}
@media(max-width:700px){
 .home-page .site-header{min-height:90px;align-items:center;gap:8px}
 .home-page .brand{font-size:19px;gap:8px}
 .home-page .brand-mark{width:34px;height:34px;border-radius:10px}
 .home-page .brand small{font-size:8px;letter-spacing:0}
 .home-page .site-header nav{flex:1;min-width:0;gap:6px 9px;max-width:58%;font-size:11px}
 .home-page .site-header nav>a{font-size:11px}
 .home-page .workspace-switch{margin-left:auto}
 .home-page .plan-link{padding:4px 7px}
}
@media(max-width:600px){.home-page #recent-documents .document-preview-icon{width:20px;height:20px}}

/* Stable source area: document count never changes the upload box height. */
.home-page .home-source{--source-box-border:1.5px dashed #e77d92;--source-box-radius:13px}
.home-page .dropzone,.home-page #documents{border:var(--source-box-border);border-radius:var(--source-box-radius)}
.home-page #documents{display:flex;flex-direction:column;gap:0;margin:16px 0 0;padding:14px;min-width:0;box-sizing:border-box}
.home-page #documents .documents-heading{border:0;padding:0;margin:0 0 12px;flex:none;min-width:0}
.home-page #recent-documents{min-height:0;overflow:auto;align-content:start;overscroll-behavior:contain;scrollbar-gutter:stable}
@media(min-width:1000px){
 .home-page .home-source{overflow:hidden}
 .home-page .dropzone{flex:0 0 auto;height:clamp(148px,24vh,250px);min-height:148px;box-sizing:border-box;display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:14px;row-gap:0;align-content:center;align-items:center;justify-content:normal;text-align:left;padding:20px}
 .home-page .dropzone .upload-symbol{grid-column:1;grid-row:1/3;width:42px;height:42px}
 .home-page .dropzone .upload-symbol svg{width:32px;height:32px}
 .home-page .dropzone h2{grid-column:2;grid-row:1;margin:0 0 4px}
 .home-page .dropzone p{grid-column:2;grid-row:2;margin:0}
 .home-page .dropzone #select-files{grid-column:3;grid-row:1/3;margin:0;min-width:0}
 .home-page .dropzone small{grid-column:1/-1;margin:12px 0 0}
 .home-page #documents{flex:1 1 0;min-height:0}
 .home-page #recent-documents{flex:1 1 0;grid-auto-rows:68px}
}
@media(max-width:999px){
 .home-page #documents{min-height:260px}
 .home-page #recent-documents{max-height:360px}
}
@media(max-width:600px){
 .home-page #documents{padding:10px;margin-top:12px}
 .home-page #documents .documents-heading{gap:8px}
}
