:root{--green:#205a45;--bg:#f6f5f0;--paper:#fffefb;--ink:#24382f;--line:#dadfd6}
.topbar{padding:22px 38px;gap:24px}.brand{font-size:20px;letter-spacing:-.6px}.brand-icon{width:43px;height:43px;font:700 13px system-ui;letter-spacing:-1px}.brand small{display:block;margin:4px 0 0;font-size:11px;letter-spacing:.3px}.topbar nav,.site-footer nav{display:flex;gap:25px;align-items:center}.topbar nav a,.site-footer a{text-decoration:none;font-size:13px}.topbar nav a:hover,.site-footer a:hover{text-decoration:underline}.topbar nav [aria-current]{color:var(--green);font-weight:650}
.hero{padding:36px 0 28px;gap:30px}.hero h1{font-size:clamp(35px,3.6vw,51px);letter-spacing:-1.8px;line-height:1.08}.hero .eyebrow{font-size:9px;letter-spacing:1.8px}.hero .intro{margin-top:17px;font-size:15px;line-height:1.55}.hero-actions{display:flex;flex-direction:column;gap:18px;align-items:flex-end}.hero-actions .local-badge{padding:9px 14px;border-radius:30px;border:1px solid #d4e2d5;background:#edf3e9}.hero-actions .button{padding:13px 19px}.source-card{border:1px solid #dce3d7;background:#eaf0e5;padding:20px}.source-card:nth-child(2){background:#f0ece3;border-color:#e5dfd4}.dropzone{min-height:151px;background:#fffefbcc}.dropzone:hover{border-color:var(--green);background:#fff}.source-heading h2{font-weight:550}.letter{height:32px;min-width:32px;font-size:14px}.workspace-layout{gap:23px}.office-panel{background:#fffefb}.site-footer{display:flex;justify-content:space-between;gap:20px;padding:28px 0;margin-top:42px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.footer-dot{padding:0 10px}
.info-page{max-width:1160px}.back-link{display:inline-block;margin-top:32px;font-size:13px;text-decoration:none}.info-heading{padding:42px 0 35px}.info-heading h1{font-size:clamp(36px,4.6vw,57px)}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.install-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:30px}.step-number{font-size:12px;color:var(--green);letter-spacing:2px;display:block;margin-bottom:20px}.install-card h2{font-size:26px}.install-card p{font-size:14px;color:var(--muted);line-height:1.7;margin:12px 0 20px}.install-card .button{display:inline-block;text-decoration:none}.install-card ol{padding-left:20px;margin-top:26px;font-size:14px;line-height:1.75}.install-card li{padding-left:4px;margin-bottom:12px}.install-card code{overflow-wrap:anywhere;font-size:12px;background:#f0f1eb;padding:2px 5px}.plain-section{padding:38px 0}.plain-section p{max-width:760px;line-height:1.8;margin:15px 0;font-size:15px}.plain-section a{font-size:14px}.privacy-copy{max-width:740px}.privacy-copy section{border-top:1px solid var(--line);padding:25px 0}.privacy-copy h2{font-size:23px}.privacy-copy p{line-height:1.8;font-size:15px;margin-top:12px}
@media(max-width:800px){.topbar{padding:18px 22px}.brand{font-size:17px}.brand small{display:none}.topbar nav{gap:16px}.topbar nav a{font-size:12px}.hero-actions{align-items:flex-start}.hero{flex-wrap:wrap}.hero-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.install-grid{grid-template-columns:1fr}.site-footer{flex-direction:column}.info-page{padding:0 22px}}
@media(max-width:480px){.topbar{flex-wrap:wrap;gap:17px}.topbar nav{width:100%;justify-content:space-between}.hero{padding-top:26px}.hero .intro br{display:none}.site-footer nav{gap:18px;flex-wrap:wrap}.install-card{padding:22px}}

.brand-icon{font:750 14px system-ui;letter-spacing:-.6px}.office-avatar{font:700 11px system-ui}.hero .eyebrow{font-size:12px;letter-spacing:1.3px}.hero .intro{font-size:16px}.topbar nav a,.button,.dropzone strong,.source-heading h2{font-size:14px}.local-badge{font-size:13px}.brand small{font-size:12px}.hero h1{letter-spacing:-1.3px}

/* Center the complete introduction; keep the desktop headline on one line. */
.hero{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:20px}
.hero>div:first-child{width:100%;min-width:0}
.hero h1{white-space:nowrap}
.hero .hint{max-width:900px;margin-inline:auto}
.hero-actions{flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap}
.review-mode .hero h1 span::before{content:none}
@media(max-width:700px){.hero h1{white-space:normal;text-wrap:balance}}

/* Staged PDF block replacement */
.pdf-block-overlay{position:fixed;inset:0;z-index:1000;background:#12241db8;display:grid;place-items:center;padding:20px;overflow:auto}
.pdf-block-dialog{background:var(--paper,#fff);color:var(--ink,#18362a);border-radius:18px;padding:24px;width:min(100%,1000px);max-height:94vh;overflow:auto;box-shadow:0 24px 80px #0005}
.pdf-block-dialog h2{margin:0 0 8px}.pdf-block-dialog>p{margin:0 0 18px}
.pdf-block-body{display:grid;grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:24px}
.pdf-block-controls{display:flex;flex-direction:column;gap:14px}.pdf-block-controls label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.pdf-block-controls textarea,.pdf-block-controls input{font:inherit;border:1px solid #b9cbc2;border-radius:8px;padding:10px;width:100%;box-sizing:border-box}.pdf-block-controls textarea{resize:vertical}.pdf-block-controls small{line-height:1.5;color:#52685d}
.pdf-block-stage{max-height:58vh;overflow:auto;background:#e5ebe7;padding:12px;border-radius:10px}
.pdf-block-paper{position:relative;width:100%;background:white}.pdf-block-paper canvas{display:block;width:100%;height:auto}
.pdf-block-outline{position:absolute;box-sizing:border-box;border:2px solid #16804c;pointer-events:none;background:#16804c0a}
.pdf-block-resize{pointer-events:auto;position:absolute;right:-12px;bottom:-12px;width:26px;height:26px;border:2px solid white;border-radius:6px;background:#16804c;color:white;cursor:nwse-resize;touch-action:none}
.pdf-block-status{margin:18px 0!important;min-height:24px;line-height:1.5}.pdf-block-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:650px){.pdf-block-overlay{padding:8px}.pdf-block-dialog{padding:16px}.pdf-block-body{grid-template-columns:1fr}.pdf-block-stage{max-height:40vh}.pdf-block-controls{gap:8px}}
.pdf-block-controls .pdf-block-auto{flex-direction:row;align-items:center;font-weight:400}.pdf-block-auto input{width:auto}
.document-download-format{font:inherit;font-size:.82rem;border:1px solid #b9cbc2;border-radius:8px;padding:8px;background:white;color:#18362a;max-width:135px}
.document-pdf-dialog{background:white;color:#18362a;border-radius:18px;padding:24px;width:min(100%,900px);max-height:94vh;overflow:auto;box-shadow:0 24px 80px #0005}.document-pdf-dialog h2{margin:0 0 8px}.document-pdf-dialog>p{line-height:1.5;margin:8px 0}.document-pdf-stage{background:#e5ebe7;padding:16px;max-height:60vh;overflow:auto;min-height:100px;border-radius:10px}.document-pdf-stage canvas{display:block;width:100%;height:auto;box-shadow:0 2px 8px #18362a20}.document-pdf-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0}.document-pdf-status{min-height:24px}
@media(max-width:650px){.document-pdf-dialog{padding:14px}.document-download-format{max-width:110px}.document-pdf-stage{padding:8px}}

/* One file, one working surface. */
.work-mode-switch{display:flex;justify-content:center;gap:8px;margin:24px auto;flex-wrap:wrap}
.work-mode-switch .button{border:1px solid #c5d4d1;background:#fff;color:#23433c;font-size:16px}
.work-mode-switch [aria-pressed="true"]{background:#174c40;color:#fff;border-color:#174c40}
.single-intro{text-align:center;margin:20px 0}.single-intro h2{font-size:28px;margin-bottom:8px}
.single-drop{max-width:700px;min-height:130px;margin:0 auto 20px}.single-drop span{font-size:14px}
.single-options{display:flex;align-items:end;justify-content:center;gap:16px;flex-wrap:wrap;margin:20px 0}
.single-options label{display:grid;gap:6px}.single-options select{padding:10px;max-width:100%;font-size:16px}
#single-workspace{width:100%;min-width:0}#single-current{font-size:18px;overflow-wrap:anywhere;margin:20px 0 12px}
.single-mode .hero,.single-mode #compare-workspace{display:none!important}
.single-mode main{max-width:1500px;margin-inline:auto}.single-review .visual-columns,.single-review .visual-edit-fields{grid-template-columns:minmax(0,1fr)}
.single-review .visual-scroll{max-height:65vh}.single-review .visual-inspector{grid-column:1/-1}
.single-review .visual-column[hidden],.single-review .visual-edit-label[hidden],.single-review [hidden],.single-options[hidden],#single-workspace[hidden],#compare-workspace[hidden]{display:none!important}
.single-review .visual-inspector-head{flex-wrap:wrap}.single-review .visual-column-heading{flex-wrap:wrap}
.single-local-note{text-align:center;margin:18px 0}.single-review .visual-toolbar{flex-wrap:wrap}
@media(max-width:650px){.single-options{align-items:stretch;flex-direction:column}.single-review .visual-column-heading .visual-file-name{flex-basis:100%}.work-mode-switch .button{flex:1;padding:12px 8px}.single-review .visual-inspector{position:static}}

.document-pdf-stage.is-zoomed canvas{width:auto;max-width:none}.document-pdf-nav{flex-wrap:wrap}

.topbar .home-link{border:0;background:transparent;color:var(--green);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:8px 0}
.topbar .home-link:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.review-mode .topbar,.single-mode .topbar{position:sticky;top:0;z-index:30;background:var(--paper)}
.start-menu{padding:28px 0;max-width:1100px;margin:auto;text-align:center}
.home-mode .start-menu .sources{grid-template-columns:minmax(0,1fr) minmax(0,1fr);text-align:left;margin:24px 0;gap:22px}
.home-mode .start-menu .source-card{display:block;min-width:0;padding:20px;background:#eaf0e5}
.home-mode .start-menu .source-card:nth-child(2){background:#f0ece3}
.home-mode .start-menu .dropzone{min-height:120px;align-items:center;text-align:center;padding:14px;gap:6px;border-style:dashed;background:#fffefb}
.home-mode .start-menu .dropzone strong{overflow-wrap:anywhere;font-size:14px}
@media(max-width:650px){.home-mode .start-menu .sources{grid-template-columns:minmax(0,1fr);gap:12px}.home-mode .start-menu .dropzone{min-height:92px}}
.start-menu [hidden]{display:none!important}
.start-menu .notice{text-align:left}
.start-menu .start-actions + .hint{margin:18px 0 0}
.start-menu h1{font-size:clamp(26px,4vw,38px);margin-bottom:14px}
.start-menu p{color:var(--muted);margin-bottom:24px}
.start-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.home-mode .hero,.home-mode .work-mode-switch,.home-mode #compare-workspace,.home-mode #single-workspace,.home-mode #saved-session,.home-mode #single-session{display:none!important}

/* Keep the active comparison above the fold; secondary details stay available. */
.session-panel.session-active{padding:6px 0;margin:0 0 6px;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;align-items:center}
.session-panel .session-status{font-size:13px;margin:0}
.session-panel.session-error{padding:10px 14px;background:#fff1df;border:1px solid #e6c897;border-radius:8px}
.session-details{position:relative;font-size:13px}.session-details>summary{padding:7px 4px;white-space:nowrap}
.session-details-body{position:absolute;right:0;z-index:20;background:white;border:1px solid var(--line);border-radius:8px;padding:14px;width:min(320px,80vw);box-shadow:0 4px 18px #203b2520}
.session-details-body .hint{margin:0 0 12px}.session-details-body .button{width:100%}
.source-picker>summary{display:none}.visual-mode .source-picker>summary{display:list-item;font-size:13px;font-weight:600;padding:6px 0;cursor:pointer}
.visual-mode .source-picker[open] .sources{margin-top:8px}.visual-mode #source-privacy{display:none}
.review-mode .hero{display:none}.review-mode .topbar{padding-block:8px}.review-mode .brand small{display:none}
.review-mode .work-mode-switch{justify-content:flex-start;margin:10px 0;gap:6px}
.review-mode .work-mode-switch .button{font-size:14px;padding:7px 12px}
.visual-mode .results{margin-top:8px}.visual-mode .result-heading{margin-bottom:0;min-height:0;justify-content:flex-end}
.visual-mode .result-heading h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.visual-mode .result-heading .downloads{gap:6px}.visual-mode .result-heading .downloads .button{padding:6px 10px}
@media(max-width:650px){.session-panel.session-active{flex-direction:row;align-items:flex-start;flex-wrap:wrap}.session-panel.session-active .session-actions{margin-left:auto}.review-mode main,.review-mode .topbar{padding-inline:14px}.review-mode .work-mode-switch .button{flex:initial}.review-mode .topbar nav{width:auto}.session-details-body{max-width:calc(100vw - 32px)}}

/* Compare Two Texts: immediate input, with the full document workspace below. */
body.home-mode{background:#f8faf9}
.topbar .brand-icon{display:block;width:36px;height:36px;flex:0 0 36px;border-radius:8px;object-fit:contain}
.topbar .brand{font-size:20px;letter-spacing:-.55px}
.topbar .home-link{font-size:14px;font-weight:500;min-height:38px}
.home-mode .topbar{padding:21px 38px;background:#fff;position:static}
.home-mode .topbar #workspace-home{display:none}
.home-mode main{max-width:1440px}
.home-mode .start-menu{max-width:none;padding:36px 0 0;text-align:left}
.home-intro{margin:0 0 28px}.home-intro h1{font-family:system-ui,sans-serif;font-size:34px;line-height:1.2;font-weight:650;letter-spacing:-1px;margin:0 0 10px}.home-intro p{font-size:16px;margin:0;color:#65757c}
.home-sources{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.home-source{min-width:0;border:1px solid #dde4e6;border-radius:10px;background:#fff;overflow:hidden}
.home-source.dragging{outline:3px solid #7bb79c;outline-offset:2px}
.home-source-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:12px 18px;border-bottom:1px solid #edf0ee}
.home-source-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:14px;font-weight:600}
.home-source-heading .letter{display:inline-grid;place-items:center;height:23px;min-width:23px;border:1px solid #dde4e6;border-radius:5px;color:#65757c;background:transparent;font-size:11px}
.home-upload{display:inline-flex;align-items:center;min-height:30px;font-size:13px;font-weight:600;color:var(--green);cursor:pointer;white-space:nowrap}
.home-upload input{position:absolute;opacity:0;width:1px;height:1px}
.home-upload:focus-within{outline:2px solid var(--green);outline-offset:5px}
.home-text{display:block;box-sizing:border-box;border:0;border-radius:0;width:100%;height:300px;padding:23px;resize:vertical;color:#233b32;background:transparent;font:17px/1.7 system-ui,sans-serif}
.home-text::placeholder{color:#7f8c87}.home-text:focus-visible{outline:2px solid #709c88;outline-offset:-3px}
.home-source-footer{display:flex;justify-content:space-between;gap:12px;min-height:33px;padding:8px 18px;border-top:1px solid #f1f3f2;color:#65757c;font-size:11px}
.home-file-card{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;padding:25px;gap:12px;text-align:center;background:#fbfdfb}
.home-file-symbol{font-size:38px;color:#739380}.home-file-card strong{overflow-wrap:anywhere;max-width:100%;font-size:17px}.home-file-card p{margin:0;font-size:13px}.home-file-card .button{font-size:13px}
.home-mode .start-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px}
.home-primary-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.home-primary-actions .primary{padding:13px 31px;font-size:15px}
.home-primary-actions .plain,#home-swap{font-size:14px;color:#65757c}
.home-resume-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.home-resume-actions:has(>button:not([hidden])){padding-top:18px;border-top:1px solid #e1e8e3}
.home-mode .home-formats{font-size:12px;color:#65757c;margin:20px 0 0}
.home-mode .site-footer{margin-top:28px;padding-top:20px}
.home-help{width:min(800px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:25px;border:1px solid #cbd9d0;border-radius:16px;background:white;color:#243b30;box-shadow:0 20px 70px #102c3055}
.home-help::backdrop{background:#102c3066}.home-help-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-help-heading h2{font-size:22px}.home-help .hero{display:flex!important;padding:24px 0 16px;gap:16px}.home-help .hero h1{font-size:27px;white-space:normal}.home-help .hero .intro{font-size:14px;margin:10px 0}.home-help .hero .eyebrow{display:none}.home-help .hero-actions{gap:10px}.home-help .hero .hint,.home-help-copy{font-size:14px;line-height:1.65}.home-help-copy{margin:12px 0}.home-help a{font-size:14px;color:var(--green)}
.home-mode #saved-session:not([hidden]){display:flex!important;margin-top:20px}
.home-mode #saved-session.session-error{display:block!important}
@media(max-width:700px){.home-mode .topbar{padding:15px 18px;gap:12px;flex-wrap:wrap}.topbar .brand{font-size:18px}.home-mode .topbar nav{gap:18px;width:auto;margin-left:auto}.home-mode main{padding-inline:18px}.home-mode .start-menu{padding-top:25px}.home-intro h1{font-family:system-ui,sans-serif;font-size:28px}.home-sources{grid-template-columns:minmax(0,1fr);gap:14px}.home-text{height:190px;font-size:16px;padding:18px}.home-file-card{min-height:190px}.home-source-heading{padding:10px 14px}.home-mode .start-actions{align-items:flex-start;flex-wrap:wrap}.home-primary-actions{gap:6px}.home-primary-actions .primary{padding:12px 22px}.home-help{padding:18px}.home-help .hero-actions{flex-direction:column}.home-help-heading h2{font-size:18px}.home-mode .site-footer nav{gap:14px;flex-wrap:wrap}}

/* Opening a file starts at its document, below the sticky navigation. */
#single-current{scroll-margin-top:100px}
.wording-review-dialog .workspace-tools-heading{position:sticky;top:-20px;z-index:1;background:#fff;padding:12px 0}

/* Keep an opened document in view; source controls remain available on demand. */
.single-document-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.single-document-bar #single-current{margin:0;font-size:16px}
#single-document-bar[hidden],#single-source-panel[hidden]{display:none!important}
.single-mode.single-document-open .work-mode-switch,
.single-mode.single-document-open:not(.single-source-open) #single-session:not(.session-error),
.single-mode.single-document-open .single-local-note{display:none!important}
@media(max-width:650px){.single-document-bar{flex-wrap:wrap}.single-document-bar #single-source-toggle{margin-left:auto}}

.single-document-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
@media(max-width:650px){.single-document-actions{width:100%}.single-document-actions .button{flex:1}}

/* Informational pages share readable list spacing. */
.privacy-copy ul{padding-left:22px;margin-top:14px;font-size:15px;line-height:1.8}.privacy-copy li+li{margin-top:8px}
