/* All page geometry is defined once for preview, measurement and PDF. */
.pdf-document.case-study .client-logo-badge{right:68px;top:58px;transform:none!important;padding:12px 16px;display:flex;align-items:center;justify-content:center}
.pdf-document.case-study .client-logo-badge img{display:block;max-width:none;max-height:none;width:auto;height:auto;object-fit:contain}
.case-editor-help{border:1px solid #dce8c8;background:#f4f8ee;padding:13px;border-radius:10px;margin-top:14px;font-size:12px;line-height:1.5;color:#30432b}
.case-editor-help strong{font-size:13px;color:#19391a}.case-editor-help p{margin:7px 0 12px}.case-editor-help .case-ending-note{margin:12px 0 0;font-size:11px;color:#65705f}
.pdf-document .cover-background{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:fill;z-index:0;pointer-events:none}
.pdf-document .cover:before,.pdf-document .back-cover:before{display:none}
.pdf-document .cover>:not(.cover-background),.pdf-document .back-cover>:not(.cover-background){z-index:1}
.pdf-document .cover-kicker,.pdf-document .cover>.lead{position:relative}
.pdf-document .cover.cover-green,.pdf-document .back-cover.cover-green{background-color:#3b991f}
.pdf-document .cover.cover-navy,.pdf-document .back-cover.cover-navy{background-color:#08172f}
.pdf-document,.pdf-document *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.module-card{border:1px solid #dce8c8;border-radius:12px;padding:18px;min-width:0;background:#fbfdf9}
.module-graphic{height:100px;padding:8px;background:#fff;border-radius:8px;margin-bottom:15px;display:flex;align-items:center;justify-content:center}
.module-graphic img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.module-card h3{font-size:16px;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}
.module-name{display:inline-block;padding:5px 10px;background:#edf7e6;border:1px solid #bdd9ab;border-radius:12px;color:#287e13}
.pdf-document .module-description p{font-size:13px;line-height:1.5;margin:0 0 9px}
.module-description p:last-child{margin-bottom:0}.modules-intro p{margin:0 0 16px}.modules-outro{margin-top:16px}
.labels-intro p{margin:0 0 14px}.labels-outro{margin-top:14px}.labels-outro p{margin:0 0 9px}
.asset-field.module-image-field{margin-bottom:14px}.module-image-field img{height:72px;width:100%;max-width:none;object-fit:contain}
[hidden].prepared-by-badge{display:none!important}
.topbar h1,.auth-card h1,.dashboard-hero h2,.section-head h2{letter-spacing:0px}
.pdf-document h1,.pdf-document h2,.pdf-document h3{letter-spacing:0.2px!important}
.pdf-document .pdf-section h2{letter-spacing:0.3px!important}
.rich-field{display:grid;gap:0;font-weight:400}.rich-toolbar{display:flex;align-items:center;gap:9px;border:1px solid #d9e0e5;border-bottom:0;background:#f5f8f2;border-radius:8px 8px 0 0;padding:5px 7px}
.rich-toolbar span{font-size:10px;color:#6c7784;font-weight:400}.bold-button{border:1px solid #d8e2d0;border-radius:5px;background:#fff;color:#16301c;width:30px;height:27px;font-size:15px;font-weight:800;padding:0}.bold-button[aria-pressed=true]{background:#4aac24;color:#fff;border-color:#4aac24}
.rich-input{min-height:82px;max-height:400px;overflow:auto;resize:vertical;border:1px solid #d9e0e5;border-radius:0 0 8px 8px;padding:10px 11px;font-size:12px;color:#111b2e;background:#fff;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;font-weight:400;cursor:text}.rich-input:focus{border-color:#4aac24;box-shadow:0 0 0 3px rgba(74,172,36,.1)}.rich-input strong,.rich-input b,.pdf-section strong{font-weight:800}
.rich-field textarea.table-source{width:100%;border-radius:0 0 8px 8px}.rich-source[hidden]{display:none!important}
.six-icons-grid{row-gap:28px}.six-icons-grid .benefit-tile{padding:17px;border:1px solid #dce8c8;border-radius:12px;height:100%;text-align:left}.six-icons-grid .component-icon{height:54px;width:54px}.six-icons-grid .benefit-tile h3{font-size:16px}.six-icons-grid .benefit-tile p{font-size:12px!important}
.icon-picker-open{display:flex;align-items:center;justify-content:center;gap:9px;padding:9px}.icon-picker-open img{width:24px;height:24px}
.icon-library-dialog{width:min(900px,calc(100% - 32px));max-height:86vh;overflow:auto}.icon-library-help{color:#687388;font-size:12px}.icon-search-label{display:grid;gap:7px;font-size:12px;margin:20px 0 16px}.icon-search-label input{border:1px solid #d9e0e5;border-radius:8px;padding:11px;outline:none}.icon-search-label input:focus{border-color:#4aac24}
.icon-library-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.icon-library-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 8px;min-height:118px;border:1px solid #dce8c8;border-radius:10px;background:#fff;color:#142641}.icon-library-choice img{width:37px;height:37px}.icon-library-choice span{font-size:11px;line-height:1.3}.icon-library-choice small{font-size:9px;color:#839178}.icon-library-choice:hover,.icon-library-choice[aria-pressed=true]{border-color:#8fb536;background:#f4f8ea}.icon-library-choice:focus-visible{outline:2px solid #4aac24;outline-offset:2px}
@media(max-width:700px){.icon-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.preview-root{width:794px;max-width:none;transform-origin:top left}
.pdf-document{width:794px;color:#111b2e}
.pdf-document>.pdf-page,.pdf-layout-stage>.pdf-page{width:794px;height:1123px;min-height:1123px;padding:74px 68px 64px;overflow:hidden;position:relative}
.pdf-document>.pdf-page.pdf-content{padding-top:74px}
.pdf-document .cover h1{font-size:52px}.pdf-document .cover-kicker{margin-top:150px}
.pdf-document .cover-meta{left:68px;right:68px;bottom:66px}
.pdf-document .pdf-header{gap:24px;min-height:51px;margin-bottom:32px;align-items:center}
.pdf-document .pdf-header .pdf-logo{flex:0 0 122px}.pdf-document .pdf-header>span{text-align:right;overflow-wrap:anywhere;max-width:460px}
.pdf-document .pdf-section{margin-bottom:30px}.pdf-document .pdf-section p,.pdf-document .pdf-section li{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.pdf-document .pdf-footer{position:absolute;left:68px;right:68px;bottom:34px}
.pdf-layout-stage{position:absolute;left:-15000px;top:0;width:794px;visibility:hidden;pointer-events:none}
.pdf-layout-stage .pdf-body{width:658px}.pdf-layout-stage .pdf-section{margin-bottom:30px}
.pdf-section h2{overflow-wrap:anywhere}.pdf-section p{white-space:pre-line}.pdf-table{table-layout:fixed;width:100%}
.pdf-table th,.pdf-table td{white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.pdf-table td{font-size:12px}
.table-intro p{margin:0 0 14px}.table-caption{margin-top:13px;color:#687388}.table-caption p{font-size:12px!important;line-height:1.55!important;margin:0 0 6px}
.component-columns{display:grid;gap:20px;align-items:start}.component-columns.two{grid-template-columns:repeat(2,minmax(0,1fr))}.component-columns.three{grid-template-columns:repeat(3,minmax(0,1fr))}.component-columns.four{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.component-column,.effect-tile,.benefit-tile,.process-step{min-width:0}.component-column{padding:18px;border:1px solid #e0ead7;border-radius:12px}
.component-columns h3,.process-step h3{color:#142641;font-size:18px;line-height:1.3;margin:0 0 13px;overflow-wrap:anywhere}
.component-columns p,.component-columns li,.process-step p{font-size:13px!important;line-height:1.55!important;margin:0 0 11px}
.component-columns .pdf-table th{background:#8fb536;padding:9px 8px;font-size:11px}.component-columns .pdf-table td{padding:9px 8px;font-size:11px}.component-columns .pdf-table tbody tr:nth-child(even){background:#f1f6e8}
.component-columns ul{padding-left:18px;margin:0}.component-columns ul li::marker{color:#8fb536}
.price-tile{border:1px solid #cddfaa;background:#f4f8ea;border-radius:12px;padding:26px 20px;text-align:center;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.price-tile>strong{display:block;color:#649628;font-size:36px;line-height:1.18;overflow-wrap:anywhere;margin:14px 0 25px}
.component-icon{display:flex;width:58px;height:58px;align-items:center;justify-content:center;margin:0 0 15px}.component-icon img{display:block;width:100%;height:100%;object-fit:contain}
.effect-tile{border:1px solid #dce8c8;border-radius:12px;text-align:center;padding:17px 11px;height:100%}.effect-tile .component-icon{margin:0 auto 15px;border:1px solid #9cc23f;border-radius:50%;background:#f0f6e1;width:62px;height:62px;padding:12px}
.effect-tile h3{font-size:14px;line-height:1.35}.effect-tile .chips{gap:7px;justify-content:center}.effect-tile .chip{font-size:10px;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:7px 9px;line-height:1.3}
.effect-description{border-top:1px solid #cbdba9;margin-top:15px;padding-top:13px}.effect-description p{font-size:11px!important;color:#687388}
.benefit-tile h3{font-size:17px}.benefit-tile{padding:8px 8px 8px 0}
.process-grid{display:grid;grid-template-columns:repeat(var(--step-count),minmax(0,1fr));gap:12px;align-items:stretch}
.process-step{border:1px solid #dce8c8;border-radius:12px;padding:16px 10px;text-align:center;position:relative}
.step-number{display:block;background:#93b93d;color:#fff;border-radius:99px;padding:7px 4px;width:60px;margin:0 auto 17px;font-size:12px;font-weight:800}
.process-step .component-icon{margin:0 auto 16px;width:48px;height:48px}.process-step h3{font-size:13px;overflow-wrap:normal;hyphens:auto}.process-step p{font-size:11px!important;color:#687388}
.process-step:not(:last-child):after{content:'➜';position:absolute;right:-17px;bottom:18px;color:#93b93d;font-size:23px;z-index:1}
.component-editor{border:1px solid #dde5e9;border-radius:10px;padding:14px;margin:12px 0;background:#fbfcfd}.component-editor>strong,.component-editor-head{display:block;font-size:12px;margin-bottom:12px;color:#18365d}
.component-editor-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.component-table-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.component-note{display:block;font-size:11px;line-height:1.45;color:#5d7351;margin-bottom:12px}
.component-dialog{width:min(960px,calc(100% - 32px));max-height:85vh;overflow:auto}.component-dialog .section-options{grid-template-columns:repeat(3,minmax(0,1fr))}.component-dialog .section-options button{padding:16px}.component-dialog .section-options strong{font-size:14px}
.import-notice{padding:13px;border:1px solid #d6e4c4;background:#f4f8ee;border-radius:9px;font-size:12px;line-height:1.5;margin-bottom:20px}.component-oversize{outline:2px solid #c9342f;outline-offset:5px}
.pdf-download-link{font-size:11px;color:#368e1b;margin-top:3px;text-decoration:underline}.doc-title-wrap{min-width:0}.doc-title-wrap input{min-width:0;width:100%;text-overflow:ellipsis}.toolbar-actions{flex-shrink:0}
.pdf-document .back-grid{grid-template-columns:minmax(0,1fr) 220px;gap:30px;margin-top:245px;align-items:center}.pdf-document .back-grid h1{font-size:39px}.manager-details{min-width:0}.manager-details a{overflow-wrap:anywhere}
.manager-portrait{width:var(--portrait-width,220px);height:var(--portrait-height,270px);justify-self:end;background:rgba(255,255,255,.12);border:8px solid rgba(255,255,255,.9);border-radius:var(--portrait-radius,20px);overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.2)}
.manager-portrait .manager-photo,.pdf-export-stage .manager-portrait .manager-photo{display:block;width:100%!important;height:100%!important;border:0;border-radius:0;box-shadow:none}
.pdf-document .pdf-section li,.pdf-export-stage .pdf-page .pdf-section li{line-height:1.35!important;margin-top:0!important;margin-bottom:3px!important}
.pdf-document .pdf-section ul,.pdf-document .pdf-section ol{margin-top:6px;margin-bottom:6px}
.pdf-section.component-descriptionList .continued-point{list-style:none}
.pdf-document .component-columns li,.pdf-export-stage .pdf-page .component-columns li{line-height:1.35!important;margin-bottom:4px!important}
.pdf-document .manager-placeholder{width:220px;height:270px}.asset-field.portrait img{object-fit:contain}
.pdf-document .pdf-figure{height:470px;display:flex;flex-direction:column;justify-content:center}.pdf-document .pdf-figure img{max-width:100%;max-height:435px;object-fit:contain}.pdf-document .pdf-figure figcaption{margin-top:9px}
.pdf-export-stage .pdf-page .component-columns p,.pdf-export-stage .pdf-page .component-columns li{font-size:13px!important}.pdf-export-stage .pdf-page .effect-description p,.pdf-export-stage .pdf-page .process-step p{font-size:11px!important}
@media(max-width:780px){.component-dialog .section-options{grid-template-columns:1fr 1fr}.pdf-document .back-grid h1{font-size:39px}}
@media print{.pdf-document{width:210mm}.pdf-document>.pdf-page{width:210mm;height:297mm;min-height:297mm;padding:19.57mm 17.99mm 16.93mm;break-after:page}.pdf-document>.pdf-page:last-child{break-after:auto}.pdf-document .pdf-footer{position:absolute}.component-dialog{display:none}.preview-root{zoom:1!important}}

.history-dialog{width:min(650px,calc(100% - 32px));max-height:85vh;overflow:auto}
.history-entries{list-style:none;display:grid;gap:8px;padding:0;margin:18px 0 0}
.history-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dde5e9;border-radius:10px;padding:13px 14px}
.history-entry strong{font-size:16px;color:#142641}
.history-entry small{display:block;color:#56677a;font-size:14px;margin-top:3px}
.history-entry p{margin:5px 0 0;font-size:14px}
.history-current{display:inline-block;color:#32831c;background:#eef6e9;border-radius:20px;padding:2px 8px;font-size:11px}
.history-actions,.revision-conflict .modal-actions{display:flex;flex-wrap:wrap;gap:6px}
.history-dialog .mini-btn{font-size:14px;white-space:nowrap}
.history-entry>div:first-child{min-width:0;overflow-wrap:anywhere}
.history-actions{flex-shrink:0}
.delete-lock-badge{display:inline-flex!important;align-items:center;gap:5px!important;color:#285e1d;background:#eef6e9;border:1px solid #d9e8d2;border-radius:6px;padding:5px 8px;font-size:14px;line-height:1.3}
.delete-lock-badge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}
.doc-actions .lock-toggle{color:#285e1d}
.history-protection-title{margin-top:14px;font-size:16px;font-weight:600}
.doc-row{grid-template-columns:43px minmax(0,1fr) auto;align-items:start}
.doc-row .doc-icon{grid-column:1;grid-row:1}
.doc-row .doc-meta{grid-column:2;grid-row:1}
.saved-template-row .doc-meta{grid-column:2/-1}
.doc-row .type-pill{grid-column:3;grid-row:1;justify-self:end}
.doc-row .doc-actions{grid-column:2/-1;grid-row:2;flex-wrap:wrap;justify-content:flex-start}
.doc-actions button{font-size:14px}
.doc-meta>strong{font-size:16px;overflow-wrap:anywhere}
.doc-details{font-size:12px}
.doc-details .doc-client{font-size:14px;flex-wrap:wrap;max-width:100%}
.doc-details .doc-client>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:550px){.doc-row{grid-template-columns:34px minmax(0,1fr)}.doc-row .doc-icon{width:34px}.doc-row .doc-actions{grid-column:1/-1}.doc-row .type-pill{display:none}}
.revision-conflict .modal-actions form{margin:0}
@media(max-width:550px){.history-entry{align-items:flex-start;flex-direction:column}}
