:root{--brand:#f13d61;--action:#c82f50;--action-hover:#ac2543;--tint:#fff1f3;--ink:#252d36;--graphite:#3f4751;--muted:#656b74;--line:#dce0e5;--control-line:#8a919b;--bg:#f7f8fa;--paper:#fff;--selected:#f1f3f6;--focus:#414b5b;--warn-bg:#fff8e9;--warn-ink:#77541c;--error-bg:#fff2f3;--error-ink:#9e203e;--success:#28714c;--radius:16px;--shadow:0 3px 16px #18283805}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.55;background:var(--bg);color:var(--ink)}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}a{color:var(--graphite);text-underline-offset:4px}a:hover{color:var(--action)}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:4px}input:focus,textarea:focus,select:focus{border-color:var(--graphite)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}.skip{position:fixed;z-index:100;top:6px;left:12px;padding:12px;background:white;transform:translateY(-150%)}.skip:focus{transform:none}.shell{width:min(1180px,100% - 64px);margin:auto}main.shell{padding-top:30px;min-height:65vh}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.17;letter-spacing:-.03em;margin-bottom:12px;font-weight:740}h2{font-size:21px;line-height:1.3;letter-spacing:-.015em;margin-bottom:12px}h3{font-size:16px;margin-bottom:6px}p{margin-bottom:16px}.lead{font-size:17px;color:var(--muted);line-height:1.65;margin-bottom:0}.eyebrow{font-size:12px;font-weight:650;letter-spacing:.06em;color:var(--muted);margin-bottom:10px;text-transform:uppercase}.muted,.help{color:var(--muted)}.small,.help{font-size:14px}.help{display:block;line-height:1.55;margin-top:8px;margin-bottom:8px}.required{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:20px;text-decoration:none;white-space:nowrap}.wordmark{font-size:29px;line-height:1;font-weight:850;letter-spacing:-1px;color:var(--action)}.brand-product{font-size:14px;font-weight:550;border-left:1px solid var(--line);padding-left:20px}.header-right{display:flex;align-items:center;gap:22px;font-size:13px}.version{color:var(--muted);font-size:12px}.local-badge{font-size:12px;color:var(--muted)}.local-badge:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);margin-right:8px}.quiet-link{text-decoration:none;border-bottom:1px solid transparent;padding:5px 0}.quiet-link:hover{border-color:currentColor}.stepper{margin-bottom:38px}.stepper ol{display:flex;gap:28px;list-style:none;padding:0;margin:0}.stepper li{font-size:14px;color:var(--muted)}.stepper a,.step-label{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit}.step-number{display:flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;font-size:12px;background:#e9ecf0;color:var(--muted)}.stepper li.current{font-weight:650;color:var(--ink)}.stepper .current .step-number{background:var(--tint);color:var(--action);box-shadow:0 0 0 1px #c82f5040}.stepper .complete .step-number{background:#e9efec;color:var(--success)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:48px;padding:12px 22px;border-radius:10px;border:1px solid transparent;font-size:15px;font-weight:650;text-decoration:none;line-height:1.3;white-space:normal}.btn.primary{background:var(--action);color:#fff;border-color:var(--action)}.btn.primary:hover{background:var(--action-hover);border-color:var(--action-hover)}.btn.secondary{background:#fff;border-color:var(--control-line);color:var(--graphite)}.btn.secondary:hover{background:var(--selected);border-color:var(--graphite)}.btn.compact{padding:10px 15px;min-height:44px;font-size:14px}.text-button{background:none;border:0;color:var(--graphite);padding:7px 0;font-size:13px;text-decoration:underline;text-underline-offset:3px;min-height:32px;text-align:left}.text-button:hover{color:var(--action)}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;font-size:12px;color:var(--graphite);background:var(--selected);border-radius:6px;white-space:nowrap}.badge.neutral{background:#fff;border:1px solid var(--line)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:22px;box-shadow:var(--shadow)}.section-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.section-head h2{margin-bottom:6px}.section-head p{margin:0}.page-heading{margin-bottom:26px}.page-heading .lead{max-width:750px}.message{border-radius:10px;border:1px solid;padding:18px 20px;margin-bottom:22px;overflow-wrap:anywhere}.message p:last-child{margin-bottom:0}.message h2{font-size:17px}.message.error{background:var(--error-bg);color:var(--error-ink);border-color:#c86e82}.message.warning{background:var(--warn-bg);color:var(--warn-ink);border-color:#ddcba6}.upload-intro{max-width:760px;margin:26px auto 30px;text-align:center}.upload-intro h1{font-size:42px}.upload-intro .eyebrow{color:var(--action);text-transform:none;letter-spacing:0;font-size:13px}.upload-card{max-width:820px;margin:0 auto;border:1px solid var(--line);border-radius:20px;background:#fff;padding:20px}.dropzone{border:1.5px dashed #aeb5bf;border-radius:12px;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px;text-align:center;transition:background .16s,border-color .16s}.dropzone.over{background:var(--tint);border-color:var(--action)}.dropzone h2{margin-bottom:6px;font-size:22px}.dropzone p{color:var(--muted);font-size:14px;margin-bottom:22px}.upload-symbol{width:54px;height:54px;border-radius:14px;background:var(--selected);color:var(--graphite);display:grid;place-items:center;margin-bottom:20px}.upload-notes{display:grid;grid-template-columns:1fr 1fr;gap:38px;max-width:820px;margin:28px auto 20px}.upload-notes p{font-size:14px;color:var(--muted);margin-bottom:0}.disclosure{border-top:1px solid var(--line);margin-top:22px}.disclosure summary{list-style:none;font-size:15px;font-weight:550;cursor:pointer;min-height:48px;padding:15px 30px 15px 0;position:relative}.disclosure summary::-webkit-details-marker{display:none}.disclosure summary:after{content:"+";position:absolute;right:4px;top:12px;font-size:20px;color:var(--muted);font-weight:400}.disclosure[open]>summary:after{content:"−"}.disclosure-body{padding:4px 0 16px;font-size:14px}.disclosure-body p{margin-bottom:12px}.disclosure.narrow{max-width:820px;margin:22px auto 0}.disclosure.narrow summary{font-weight:450;color:var(--muted)}.source-strip{display:flex;gap:14px;align-items:center;padding:16px 18px;border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:24px;font-size:14px}.source-strip>div{min-width:0}.source-strip strong{display:block;overflow-wrap:anywhere;font-size:15px}.source-strip .muted{font-size:13px}.source-strip>a{margin-left:auto;flex-shrink:0}.file-icon{height:38px;width:34px;flex-shrink:0;border:1px solid var(--line);border-radius:7px;background:var(--bg);display:grid;place-items:center;color:var(--muted);font-size:17px;font-weight:650}.field{margin-bottom:20px;min-width:0}.field:last-child{margin-bottom:0}.field label,.disclosure-body>label{display:block;margin-bottom:8px;font-size:14px;font-weight:550}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-grid.three{grid-template-columns:repeat(3,1fr)}.field-grid .field{margin-bottom:10px}input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=hidden]),select,textarea{width:100%;border:1px solid var(--control-line);border-radius:8px;padding:11px 13px;background:#fff;min-height:46px;font-size:16px;line-height:1.4}select{padding-right:32px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#7a818b}fieldset{margin:0;padding:0;border:0;min-width:0}legend{font-size:19px;font-weight:650;margin-bottom:8px}.metadata{margin-top:18px}.metadata .disclosure-body{padding-top:12px}.structure-toolbar{display:flex;gap:16px;align-items:center;margin:22px 0 12px}.structure-toolbar select{width:auto;max-width:100%;font-size:14px}.structure-list{list-style:none;padding:0;margin:0}.structure-row{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);padding:18px 0}.row-content{min-width:0;flex:1}.row-text{display:block;font-weight:550;overflow-wrap:anywhere}.paragraph-position{display:block;font-size:11px;letter-spacing:.02em;color:var(--muted);margin-bottom:3px}.row-warning{font-size:12px;display:block;color:var(--warn-ink);margin-top:4px}.structure-row[data-role=h2] .row-content{padding-left:22px}.structure-row[data-role=drop] .row-text{color:var(--muted)}.structure-row[data-role=text] .row-text{font-weight:400}.role-field{width:190px;flex-shrink:0}.role-field select{font-size:14px}.context-button{padding:5px 0;margin-top:3px}.search-hit{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.search-hit>span{flex:1;font-size:14px;min-width:0;overflow-wrap:anywhere}.search-hit button{font-size:13px;padding:9px 12px}.empty-state{padding:30px 12px;text-align:center;color:var(--muted)}.actionbar{position:sticky;bottom:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.98);padding:16px 22px;margin-top:26px;box-shadow:0 -6px 20px #26354704}.actionbar p{margin:3px 0 0;font-size:12px}.actionbar-left{display:flex;align-items:center;gap:18px}.save-status{font-size:12px;color:var(--muted)}.save-status.failed{color:var(--error-ink)}.design-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px;align-items:start}.design-controls{min-width:0}.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.theme-option{display:flex;position:relative;gap:9px;min-height:98px;padding:15px 32px 15px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;align-items:flex-start}.theme-option:hover{background:var(--bg)}.theme-option:has(input:checked){border-color:var(--graphite);background:var(--selected);box-shadow:inset 0 0 0 1px var(--graphite)}.theme-option input{margin:3px 0 0;width:16px;height:16px;flex-shrink:0;accent-color:var(--graphite)}.theme-copy{display:block}.theme-copy strong{font-size:14px;display:block;line-height:1.35}.theme-copy small{display:block;color:var(--muted);font-size:12px;margin-top:6px;line-height:1.45}.selected-mark{display:none;position:absolute;right:10px;top:12px;font-size:14px;font-weight:700}.theme-option:has(input:checked) .selected-mark{display:block}.theme-option:focus-within{outline:3px solid var(--focus);outline-offset:3px}.theme-option input:focus-visible{outline:none}.section-divider{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.custom-settings{background:var(--selected);border-radius:8px;padding:10px 13px;font-size:12px;color:var(--graphite);margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.custom-settings button{font-size:12px}.options-panel{padding-top:8px;padding-bottom:8px}.options-panel>.disclosure{margin-top:0;border:0}.check-option{display:flex;gap:12px;align-items:flex-start;margin:20px 0;cursor:pointer}.check-option input{width:18px;height:18px;flex-shrink:0;margin-top:3px;accent-color:var(--graphite)}.check-option strong{font-size:14px;font-weight:550;display:block}.check-option small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:5px}.check-option:has(input:disabled){color:var(--muted);cursor:default}.preview-panel{min-width:0}.preview-sticky{position:sticky;top:24px}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}.preview-heading .eyebrow{margin-bottom:5px;font-size:11px}.preview-heading h2{margin:0;font-size:24px}.preview-switch{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:18px;padding-bottom:12px}.preview-switch label{display:flex;gap:7px;align-items:center;font-size:13px;cursor:pointer}.preview-switch input{accent-color:var(--graphite);width:15px;height:15px}.paper-stage{background:#eceff3;border:1px solid var(--line);border-radius:14px;padding:24px 30px;display:grid;place-items:center;min-height:440px}.paper-button{display:block;max-width:100%;border:0;padding:0;background:transparent;position:relative;cursor:zoom-in}.paper-button img{display:block;max-width:100%;height:auto;background:white;box-shadow:0 4px 18px #26354717}.paper-stage .paper-button{max-width:290px;width:100%}.zoom-hint{display:block;position:absolute;bottom:8px;left:50%;transform:translateX(-50%);white-space:nowrap;background:rgba(255,255,255,.95);padding:4px 8px;font-size:10px;border:1px solid var(--line);border-radius:4px;color:var(--muted);opacity:0;transition:opacity .15s}.paper-button:hover .zoom-hint,.paper-button:focus-visible .zoom-hint{opacity:1}.sample-disclaimer{font-size:12px;color:var(--muted);line-height:1.65;margin:12px 0 18px}.sample-disclaimer strong{font-weight:650;color:var(--graphite)}.effective-summary{border-top:1px solid var(--line);padding-top:18px}.effective-summary h3{font-size:14px}.effective-summary dl,.report-summary{margin:12px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px 22px}.effective-summary dl div,.report-summary div{display:flex;flex-direction:column;gap:3px}.effective-summary dt,.report-summary dt{color:var(--muted);font-size:12px}.effective-summary dd,.report-summary dd{font-size:14px;margin:0;font-weight:550}.effective-summary .help{font-size:12px}.previous-note{font-size:13px;margin:16px 0 0;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;padding:24px;max-width:min(750px,95vw);width:690px;max-height:94vh;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#202b3a99}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-head h2{font-size:18px;margin:0}.context-muted{color:var(--muted)}.context-current{background:var(--selected);border-left:3px solid var(--graphite);padding:16px;font-weight:550}.image-dialog{width:auto;max-width:95vw}.image-dialog img{max-width:100%;max-height:72vh;display:block;margin:auto;object-fit:contain;background:white;border:1px solid var(--line)}.image-dialog .help{max-width:600px}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:28px}.result-heading h1{max-width:760px;overflow-wrap:anywhere}.success-dot{display:inline-block;width:7px;height:7px;background:var(--success);border-radius:50%;margin-right:6px}.book-spec{display:flex;flex-wrap:wrap;gap:10px;font-size:14px;color:var(--muted);margin:12px 0 0}.download-actions{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.download-actions .btn{min-width:190px}.download-actions .help{font-size:11px}.result-toolbar{display:flex;align-items:center;gap:24px;margin:22px 0 30px;flex-wrap:wrap;font-size:14px}.warnings-summary{background:var(--warn-bg);border:1px solid #ddcba6;color:var(--warn-ink);padding:0 18px;border-radius:10px;margin-bottom:22px}.viewer-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:18px 0}.page-picker{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted)}.page-picker input{width:72px!important;text-align:center;padding:9px!important;min-height:44px!important}.result-paper-stage{background:#eceff3;min-height:400px;padding:26px;border-radius:12px;display:grid;place-items:center}.result-paper-stage .paper-button{max-width:370px;width:100%}.result-paper-stage img{width:100%}.page-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:16px;padding:10px 0}.page-thumb{background:transparent;border:1px solid transparent;border-radius:6px;padding:4px;color:var(--muted);font-size:12px}.page-thumb:hover{border-color:var(--graphite)}.page-thumb img{display:block;width:100%;margin-bottom:6px;box-shadow:0 2px 5px #26354715}.result-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.feedback-choices{display:flex;gap:22px;margin:20px 0;flex-wrap:wrap}.feedback-choices label{display:flex;gap:8px;align-items:center;font-size:14px}.feedback-choices input{accent-color:var(--graphite);width:17px;height:17px}.file-links{display:flex;gap:12px;flex-direction:column;font-size:14px}pre{font-family:Consolas,monospace;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;background:var(--bg);padding:14px;border-radius:8px}.build-panel{max-width:700px;margin:60px auto;padding:40px}.build-panel h1{font-size:30px}.build-status{display:flex;gap:14px;align-items:center;margin:30px 0 18px;font-weight:550}.spinner{display:inline-block;border:2px solid var(--line);border-top-color:var(--graphite);border-radius:50%;width:23px;height:23px;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}progress{display:block;width:100%;height:8px;border:none;border-radius:6px;overflow:hidden;accent-color:var(--graphite)}progress::-webkit-progress-bar{background:#e9ecf0}progress::-webkit-progress-value{background:var(--graphite);border-radius:6px}progress::-moz-progress-bar{background:var(--graphite)}.build-stages{padding:0;list-style:none;color:var(--muted);font-size:14px;margin:26px 0}.build-stages li{padding:9px 0;display:flex;gap:12px;align-items:center}.build-stages li:before{content:"";width:9px;height:9px;border:1px solid #9da5af;border-radius:50%}.build-stages li.now{color:var(--ink);font-weight:600}.build-stages li.now:before{background:var(--graphite);border-color:var(--graphite)}.build-stages li.done:before{background:var(--success);border-color:var(--success)}.upload-progress{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.upload-progress .spinner{margin-bottom:20px}.upload-progress h2{margin-bottom:8px}.upload-progress progress{max-width:480px;margin:10px 0}.upload-progress p{font-size:14px;overflow-wrap:anywhere}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:32px}.history-list{background:white;border:1px solid var(--line);border-radius:14px;padding:0 22px;margin-bottom:24px}.history-item{display:flex;align-items:center;gap:24px;padding:22px 0;text-decoration:none;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-item>div{flex:1;min-width:0}.history-item strong{font-size:17px;display:block;overflow-wrap:anywhere}.history-item div>span{display:block;color:var(--muted);font-size:14px}.history-item small{font-size:12px;color:var(--muted)}.site-footer{padding-top:32px;padding-bottom:24px;display:flex;justify-content:space-between;gap:24px;font-size:12px;color:var(--muted)}.dot-separator{padding:0 8px}
@media(min-width:1050px){.design-controls .panel{padding:24px}.preview-sticky{position:sticky;top:20px}.preview-panel{align-self:stretch}.preview-sticky{position:sticky}}
@media(max-width:1000px){.shell{width:calc(100% - 40px)}.local-badge{display:none}.design-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px}.panel{padding:22px}.theme-grid{grid-template-columns:1fr}.theme-option{min-height:70px}.theme-copy small{margin-top:3px}.paper-stage{padding:20px;min-height:350px}.effective-summary dl{grid-template-columns:1fr 1fr}.brand-product{font-size:12px}.result-heading{align-items:flex-start}.download-actions .help{max-width:180px;text-align:center}}
@media(max-width:760px){.shell{width:calc(100% - 32px)}main.shell{padding-top:22px}.header-inner{height:66px;gap:14px}.brand{gap:10px}.wordmark{font-size:25px}.brand-product{display:none}.header-right{gap:16px}.version{font-size:11px}.stepper{margin-bottom:28px}.stepper ol{gap:16px;justify-content:space-between}.stepper li{font-size:12px}.stepper a,.step-label{flex-direction:column;gap:6px}.step-number{width:24px;height:24px}h1{font-size:29px}.lead{font-size:15px}.upload-intro{margin-top:25px}.upload-intro h1{font-size:34px}.upload-card{padding:12px}.dropzone{min-height:300px;padding:24px 16px}.dropzone h2{font-size:20px}.upload-notes{grid-template-columns:1fr;gap:20px}.field-grid{grid-template-columns:1fr;gap:14px}.field-grid.three{grid-template-columns:1fr 1fr}.source-strip{flex-wrap:wrap}.source-strip>div{flex:1}.source-strip>a{margin-left:48px}.section-head{flex-wrap:wrap;gap:10px}.structure-row{gap:12px;align-items:flex-start;flex-direction:column}.role-field{width:100%}.structure-row[data-role=h2] .row-content{padding-left:14px}.structure-toolbar{flex-wrap:wrap}.actionbar{gap:12px;padding:12px;bottom:0;margin-left:-4px;margin-right:-4px}.actionbar-left{gap:10px;align-items:flex-start;flex-direction:column}.actionbar .btn{font-size:14px;padding:12px 15px}.actionbar .save-status{font-size:11px}.actionbar p{display:none}.design-grid{display:flex;flex-direction:column;gap:12px}.design-controls,.preview-panel{width:100%}.theme-grid{grid-template-columns:1fr 1fr}.theme-option{min-height:96px;padding:14px 26px 14px 9px;gap:7px}.theme-copy strong{font-size:13px}.theme-copy small{font-size:11px}.preview-sticky{position:static}.preview-heading{margin-top:12px}.paper-stage{padding:20px;min-height:400px}.paper-stage .paper-button{max-width:275px}.effective-summary dl{grid-template-columns:1fr 1fr}.result-heading{flex-direction:column;gap:22px}.result-heading .lead{font-size:17px}.download-actions{align-items:flex-start;width:100%}.download-actions .btn{width:100%}.download-actions .help{max-width:100%;text-align:left}.result-toolbar{gap:14px}.result-bottom-grid{grid-template-columns:1fr;gap:0}.page-thumbs{grid-template-columns:repeat(3,1fr)}.result-paper-stage{padding:15px;min-height:300px}.site-footer{font-size:11px;flex-direction:column;gap:6px}.build-panel{margin:24px 0;padding:24px}.build-panel h1{font-size:25px}.history-heading{align-items:flex-start;flex-direction:column}.history-item{gap:12px}.history-item strong{font-size:15px}.history-item .badge{font-size:11px;white-space:normal;max-width:95px}.history-list{padding:0 16px}.search-hit{flex-wrap:wrap}.search-hit>span{flex-basis:100%}dialog{padding:20px}.dialog-head{gap:12px}.dialog-head h2{font-size:16px}.preview-switch{gap:15px}.preview-switch label{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.001ms!important;transition:none!important}.spinner{border-style:dotted}}
.preview-switch label{min-height:36px}
@media(max-width:420px){.theme-grid{grid-template-columns:1fr}.theme-option{min-height:70px;padding:13px 32px 13px 12px}.theme-copy strong{font-size:14px}.theme-copy small{font-size:12px}.field-grid.three{grid-template-columns:1fr}.preview-switch label{min-height:44px}.page-picker{gap:5px;font-size:12px}.viewer-controls{gap:10px}.panel{padding:20px}.theme-copy{min-width:0}.theme-grid{grid-template-columns:minmax(0,1fr)}}

/* Onebook interface foundation. Sources and deliberate adaptations: DESIGN.md. */
@font-face{font-family:Roboto;src:url('/assets/brand/Roboto-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Roboto;src:url('/assets/brand/Roboto-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Roboto;src:url('/assets/brand/Roboto-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Roboto;src:url('/assets/brand/Roboto-Black.woff2') format('woff2');font-style:normal;font-weight:900;font-display:swap}
:root{--ink:#3f4751;--bg:#f8f8f8;--radius:8px;--shadow:none;--selected:#f1f2f2}
body{font-family:Roboto,Arial,sans-serif}
h1{font-weight:700;letter-spacing:-.02em}
.brand{gap:14px;min-width:0}.brand-mark{display:block;width:70px;height:auto;flex-shrink:0}.wordmark{font-size:17px;font-weight:900;letter-spacing:.24em;color:var(--graphite)}.brand-product{padding-left:16px;font-weight:400}
.btn{border-radius:4px;font-weight:700}.panel,.upload-card,.paper-stage,.result-paper-stage,.theme-option,.source-strip,.actionbar{border-radius:8px;box-shadow:none}.upload-card{padding:16px}.dropzone{border-radius:4px;min-height:250px}.upload-symbol{margin-bottom:14px}.upload-intro{margin-top:18px}.upload-intro h1{font-size:40px}.stepper{margin-bottom:28px}.theme-option:has(input:checked){box-shadow:inset 0 0 0 1px var(--graphite)}
.input-formats,.source-promise{max-width:820px;margin:14px auto 0;font-size:13px;color:var(--muted);line-height:1.55}.input-formats strong{font-weight:500;color:var(--graphite)}.upload-notes{gap:32px;margin-top:24px;margin-bottom:8px}.upload-notes h3{font-size:16px}.disclosure.narrow{margin-top:16px}.source-promise{border-top:1px solid var(--line);padding-top:14px;margin-top:8px}
@media(max-width:760px){.header-inner{gap:10px}.brand{gap:10px}.brand-mark{width:48px}.wordmark{font-size:14px;letter-spacing:.2em}.header-right{gap:12px}.upload-intro h1{font-size:32px}.upload-card{padding:12px}.dropzone{min-height:250px}.upload-notes{gap:18px}.input-formats,.source-promise{font-size:12px}.stepper ol{gap:10px}.stepper li{min-width:0}.header-right .quiet-link{white-space:nowrap}}
@media(max-width:370px){.version{display:none}.brand-mark{width:40px}.wordmark{font-size:13px}.header-right{font-size:12px}.stepper li{font-size:11px}}

/* Unified manuscript setup: file facts and explicit metadata suggestions. */
.analysis-card{margin:0 0 24px;padding:22px 24px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.analysis-card .section-head{margin-bottom:12px}.analysis-card h2{font-size:18px}.analysis-file{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:16px;overflow-wrap:anywhere}
.analysis-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0}.analysis-facts div{min-width:0}.analysis-facts dt{font-size:12px;color:var(--muted)}.analysis-facts dd{margin:4px 0 0;font-size:17px;font-weight:600}
.analysis-recommendation{margin:16px 0 0}.metadata-suggestion{margin-top:8px;padding:10px 12px;background:var(--selected);border-radius:6px;overflow-wrap:anywhere}.metadata-suggestion p{font-size:13px;margin:0 0 5px}.metadata-suggestion .text-button{min-height:32px}.metadata-suggestion button:disabled{opacity:1;color:var(--muted);cursor:default;text-decoration:none}
#review-form .actionbar .quiet-link{display:block;margin-bottom:8px}
#settings-dialog{max-width:560px}#settings-dialog p{line-height:1.6}.dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:24px}
.build-meter{display:flex;flex-direction:column;align-items:center;gap:4px;margin:24px 0 16px}.build-meter strong{font-size:64px;font-weight:700;line-height:1.05;font-variant-numeric:tabular-nums;color:var(--graphite)}.build-meter span{font-size:14px;color:var(--muted)}.build-times{display:flex;flex-wrap:wrap;gap:8px 24px}.build-times .help{margin-top:4px}@media(max-width:700px){.build-meter strong{font-size:56px}}
@media(max-width:700px){.analysis-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-card{padding:18px}.analysis-card .section-head{align-items:flex-start;gap:14px}.metadata-suggestion{padding:9px 10px}}
/* Append after the existing result styles. Gallery requests are scheduled by initResult. */
.page-gallery{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}
.page-gallery h3{margin-bottom:6px}.page-gallery .page-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:18px 12px;margin-top:18px}
.page-gallery .page-thumbs{max-height:720px;overflow:auto;overscroll-behavior:contain;padding:5px;scrollbar-gutter:stable}
.page-tile{min-width:0;text-align:center}.page-tile .page-thumb{display:block;width:100%;position:relative;border:1px solid var(--line);border-radius:4px;background:#fff;padding:7px;color:var(--ink)}
.page-tile .page-thumb[aria-current=page]{outline:2px solid var(--graphite);outline-offset:2px;background:var(--selected)}
.thumb-paper{aspect-ratio:148/210;display:grid;place-items:center;background:#f6f7f9;width:100%;overflow:hidden}.page-tile img{display:block;width:100%;height:100%;object-fit:contain;background:white}.thumb-placeholder{font-size:11px;line-height:1.4;color:var(--muted);padding:8px;overflow-wrap:anywhere}
.thumb-number{display:block;font-size:12px;font-weight:550;padding-top:7px}.thumb-retry{font-size:12px;max-width:100%;padding-top:4px}
.current-page-placeholder{display:grid;place-items:center;aspect-ratio:148/210;width:min(360px,100%);padding:24px;text-align:center;font-size:14px;color:var(--muted);background:#fff;min-height:280px}
.result-paper-stage{position:relative}.result-paper-stage #book-open{width:min(360px,100%)}.result-paper-stage #book-page{width:100%;height:auto}.result-paper-stage .page-retry{margin-top:12px}.large-page-placeholder{min-height:40vh;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted)}
.page-load-action{text-align:center}.book-dialog #book-large{min-height:0}.book-dialog .viewer-controls{position:sticky;bottom:0;background:white;margin-bottom:0;padding:12px 0}
@media(max-width:700px){.page-gallery .page-thumbs{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:14px 10px}.current-page-placeholder{min-height:240px}.thumb-placeholder{font-size:10px;padding:4px}}
.result-summary-group+.result-summary-group{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.result-summary-group h3{font-size:15px}.result-summary-group .report-summary{margin-top:8px}.result-summary-group .report-summary dd{overflow-wrap:anywhere}
.feedback-saved-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:24px}

/* Optional preparation guide: upload remains the primary action. */
.manuscript-guide{max-width:820px;margin:24px auto 0;padding-top:20px;border-top:1px solid var(--line)}
.manuscript-guide h2{font-size:18px;line-height:1.35;margin-bottom:14px}
.manuscript-tips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px;margin:0;padding-left:20px;font-size:13px;line-height:1.5}
.manuscript-tips li{padding-left:3px}.manuscript-tips li::marker{color:var(--muted)}.manuscript-tips strong{font-weight:500}
.manuscript-guide-actions{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 16px;margin-top:14px;font-size:13px}
.manuscript-guide-actions a{padding:6px 0;font-weight:500}.manuscript-guide-actions span{color:var(--muted)}
.manuscript-guide .disclosure{margin:10px 0 0}.scene-example{white-space:nowrap}
@media(max-width:700px){.manuscript-tips{grid-template-columns:1fr;gap:10px}.manuscript-guide{margin-top:20px;padding-top:18px}.manuscript-guide-actions{gap:0 12px}.manuscript-guide-actions span{font-size:12px}}

/* Stage B: approved A composition, real draft form and existing Typst samples. */
body[data-screen="design"]{font-size:18px;line-height:1.5}
body[data-screen="design"] .shell{width:calc(100% - 80px);max-width:1280px}
body[data-screen="design"] h1{font-size:48px;line-height:1.12;letter-spacing:-1px}
body[data-screen="design"] h2{font-size:28px;line-height:1.3}
body[data-screen="design"] h3{font-size:22px;line-height:1.35}
body[data-screen="design"] :is(.help,.small,.muted.small,.required,.eyebrow,.badge,.quiet-link,.text-button,.save-status,.previous-note,.sample-explanation,.metadata-suggestion p){font-size:16px;line-height:1.55}
body[data-screen="design"] .lead{font-size:20px;line-height:1.55;max-width:70ch}
body[data-screen="design"] .btn{font-size:18px;min-height:52px;white-space:normal;line-height:1.4}
body[data-screen="design"] :is(button,a,input,select,textarea,summary):focus-visible,.manuscript-diagnostics a:focus-visible,.manuscript-diagnostics summary:focus-visible{outline:3px solid #714555;outline-offset:4px}
body[data-screen="design"] .text-button{min-height:48px;padding:8px 0}
body[data-screen="design"] .analysis-card{padding:20px 24px;margin-bottom:14px}
body[data-screen="design"] .analysis-card h2{font-size:20px}
body[data-screen="design"] .analysis-file{font-size:18px;overflow-wrap:anywhere}
body[data-screen="design"] .analysis-facts{display:flex;flex-wrap:wrap;gap:12px 28px}
body[data-screen="design"] .analysis-facts>div{display:flex;align-items:baseline;gap:8px}
body[data-screen="design"] .analysis-facts dt{font-size:16px}
body[data-screen="design"] .analysis-facts dd{font-size:18px;margin:0}
.style-gallery{margin-top:36px}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px}
.gallery-heading h2{margin-bottom:8px}
.gallery-heading .help{margin:0}
.sample-view-switch{display:flex;gap:4px;padding:4px;border:1px solid #bcc5cd;background:#edf0f2;border-radius:7px;flex-shrink:0}
.sample-view-switch label{position:relative;cursor:pointer;display:flex}
.sample-view-switch input{position:absolute;opacity:0;width:1px;height:1px}
.sample-view-switch span{display:flex;align-items:center;text-align:center;padding:11px 17px;min-height:52px;border-radius:4px;border:1px solid transparent;font-size:17px;line-height:1.4}
.sample-view-switch input:checked+span{background:white;border-color:#88959f;color:var(--ink);font-weight:500}
.sample-view-switch label:has(input:focus-visible){outline:3px solid #714555;outline-offset:3px;border-radius:4px}
.sample-explanation{color:var(--muted);margin:0 0 24px}
.template-choice-group{margin:0;padding:0;border:0;min-width:0}
.template-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:stretch}
.template-card{min-width:0;display:flex;flex-direction:column;background:white;border:1px solid #c4cdd5;border-radius:8px;padding:20px 17px 17px}
.template-card.selected{border:2px solid #3f4751;padding:19px 16px 16px;box-shadow:0 0 0 2px #3f47510c}
.template-card-heading{min-height:76px}
body[data-screen="design"] .template-card-heading h3{font-size:20px;margin:0 0 8px}
.template-card-heading p{font-size:16px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.template-page-kind{font-size:16px;color:var(--muted);margin:12px 0 10px}
.template-sample{display:block;width:100%;padding:0;background:white;border:1px solid #ced4d9;border-radius:0;cursor:zoom-in;line-height:0;box-shadow:0 3px 8px #3039420c}
.template-sample img{display:block;width:100%;height:auto;aspect-ratio:758/1075;object-fit:contain;background:white}
.template-description{font-size:16px;color:var(--muted);line-height:1.5;margin:16px 0 8px;flex:1}
.template-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.template-pick{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;min-width:0;padding:9px 12px;border:1px solid #9ba7b1;border-radius:5px;cursor:pointer;font-size:17px;font-weight:500;background:white}
.template-pick input{width:19px;height:19px;accent-color:#3f4751;margin:0;flex-shrink:0}
.template-card.selected .template-pick{background:#eef0f2;border-color:#3f4751}
.template-card.selected [data-template-pick-label]:before{content:'✓ ';font-weight:700}
.template-pick:has(input:focus-visible){outline:3px solid #714555;outline-offset:4px}
body[data-screen="design"] .template-card-actions .text-button{font-size:16px}
.book-settings{margin-top:54px;padding-top:34px;border-top:1px solid #c9d0d6}
.book-settings>.section-head{margin-bottom:24px}
body[data-screen="design"] .design-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}
body[data-screen="design"] .design-controls{min-width:0}
body[data-screen="design"] .design-controls>.panel{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;margin:0 0 28px}
body[data-screen="design"] .design-controls>.panel+.panel{padding-top:26px;border-top:1px solid var(--line)}
body[data-screen="design"] .field-grid{gap:24px}
body[data-screen="design"] .field label{font-size:18px;margin-bottom:9px}
body[data-screen="design"] .field :is(input,select,textarea){font-size:18px;min-height:52px;padding:12px 14px;line-height:1.4}
body[data-screen="design"] .field .help{display:block;margin-top:9px}
body[data-screen="design"] .field{margin-bottom:24px;min-width:0}
body[data-screen="design"] .field-grid>.field{margin-bottom:0}
body[data-screen="design"] .metadata-suggestion{margin-top:8px;flex-wrap:wrap}
body[data-screen="design"] .metadata-suggestion p{overflow-wrap:anywhere}
body[data-screen="design"] .disclosure{background:transparent;border:0;border-radius:0;margin:0}
body[data-screen="design"] .disclosure>summary{font-size:22px;line-height:1.4;padding:10px 0;min-height:52px}
body[data-screen="design"] .disclosure-body{padding:18px 0 0}
body[data-screen="design"] .disclosure .field-grid{margin-bottom:24px}
body[data-screen="design"] .disclosure .disclosure>summary{font-size:18px}
body[data-screen="design"] .check-option{font-size:18px;margin:22px 0}
body[data-screen="design"] .check-option strong{font-size:18px}
body[data-screen="design"] .check-option small{font-size:16px;line-height:1.55;margin-top:5px}
body[data-screen="design"] .check-option input{width:22px;height:22px;accent-color:#3f4751;flex-shrink:0}
body[data-screen="design"] .custom-settings{font-size:16px;flex-wrap:wrap}
.selected-book{background:#eef1f3;border:1px solid #d5dce1;border-radius:8px;padding:26px;min-width:0}
.selected-book h3{margin:0 0 20px}
.selected-book dl{margin:0;display:grid;gap:18px}
.selected-book dt{font-size:16px;color:var(--muted)}
.selected-book dd{font-size:18px;font-weight:500;margin:4px 0 0;overflow-wrap:anywhere}
.selected-book>.help{margin:22px 0 0;padding-top:18px;border-top:1px solid #c8d0d6}
body[data-screen="design"] .design-actionbar{position:static;display:flex;gap:24px;align-items:center;margin:24px 0 0;padding:20px 24px;background:white;border:1px solid #c4cdd5;border-radius:8px;box-shadow:0 4px 18px #3039420b}
body[data-screen="design"] .design-actionbar .actionbar-left{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;min-width:0}
body[data-screen="design"] .design-actionbar p{display:block;margin:0;width:100%;font-size:18px;font-weight:500;overflow-wrap:anywhere}
body[data-screen="design"] .design-actionbar #create-pdf{flex-shrink:0;min-width:235px}
body[data-screen="design"] .build-choice-note{margin-top:16px}
.sample-image-dialog{padding:0;width:min(1120px,calc(100% - 40px));max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);overflow:hidden;background:white;color:var(--ink)}
.sample-image-dialog[open]{display:flex;flex-direction:column}
.sample-dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:24px;padding:22px 26px;border-bottom:1px solid var(--line);flex-shrink:0}
.sample-dialog-heading h2{font-size:26px;margin:0 0 8px}
.sample-dialog-heading p{margin:0}
.sample-dialog-heading .btn{flex-shrink:0}
.sample-dialog-switch{display:flex;flex-wrap:wrap;gap:10px;padding:14px 26px;flex-shrink:0;border-bottom:1px solid var(--line)}
.sample-dialog-switch button{font-size:17px;min-height:52px;border:1px solid #aebac4;border-radius:5px;padding:10px 16px;background:white}
.sample-dialog-switch button[aria-pressed=true]{background:#eef0f2;border-color:#3f4751;font-weight:500}
.sample-dialog-content{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:24px;background:#eff1f3}
.sample-dialog-content img{display:block;width:min(100%,720px);max-width:100%;height:auto;max-height:none;margin:auto;background:white}
.sample-dialog-content.zoomed img{width:clamp(720px,150%,1040px);max-width:none}
.sample-dialog-content>p{font-size:18px}
/* Diagnostics is a compact optional disclosure shared by design, review and result. */
.manuscript-diagnostics{padding:20px 24px;margin:14px 0 24px;background:#f0f3f4;border:1px solid #ccd5dc;border-radius:8px;font-size:18px;line-height:1.55;overflow-wrap:anywhere}
.manuscript-diagnostics h2{font-size:20px!important;line-height:1.4;margin:0 0 7px}
.manuscript-diagnostics p{margin:7px 0 0;font-size:16px;line-height:1.55}
.manuscript-diagnostics[data-diagnostic-status="partial"]{border-left:4px solid #a16b29}
.diagnostic-highlights{padding:0;list-style:none;margin:12px 0;display:grid;gap:8px}
.diagnostic-highlights li{display:flex;justify-content:space-between;gap:8px 20px;font-size:16px;flex-wrap:wrap}
.diagnostic-highlights strong{font-weight:500}
.diagnostic-actions{display:flex;align-items:center;gap:8px 24px;flex-wrap:wrap;margin-top:10px;font-size:16px}
.diagnostic-actions a{display:inline-flex;align-items:center;min-height:44px}
.diagnostic-details{margin-top:12px;border-top:1px solid #cbd5dc}
.diagnostic-details>summary{font-size:17px;font-weight:500;padding:14px 0;min-height:52px;cursor:pointer}
.diagnostic-groups{padding:4px 0 0;display:grid;gap:24px}
.diagnostic-groups h3{font-size:20px!important;margin:0 0 14px}
.diagnostic-items{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.diagnostic-item{padding:16px;background:white;border:1px solid #d9dfe4;border-radius:6px}
.diagnostic-item h4{font-size:18px;line-height:1.5;margin:0}
.diagnostic-item .diagnostic-labels{color:#5b6570}
.diagnostic-locations{font-size:16px;line-height:1.55;margin:12px 0 0;padding-left:24px}
.diagnostic-correction{border-top:1px solid var(--line);padding-top:10px}
.structure-row.diagnostic-heading-attention{border-left:4px solid #94723f}
.diagnostic-row-note{display:block;color:#765223;font-size:16px;line-height:1.5;margin:7px 0}
@media(max-width:1180px){body[data-screen="design"] .shell{width:calc(100% - 56px)}.gallery-heading{flex-wrap:wrap}.template-gallery{gap:18px}.template-card{padding:16px 13px 13px}.template-card.selected{padding:15px 12px 12px}body[data-screen="design"] .design-grid{grid-template-columns:minmax(0,1fr) 300px;gap:28px}}
@media(max-width:1050px){.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.template-card{padding:24px}.template-card.selected{padding:23px}.template-card-heading{min-height:70px}body[data-screen="design"] .design-grid{grid-template-columns:1fr}.selected-book dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body[data-screen="design"] .shell{width:calc(100% - 32px)}body[data-screen="design"] h1{font-size:36px;line-height:1.18;letter-spacing:-.6px}body[data-screen="design"] .lead{font-size:18px}body[data-screen="design"] .analysis-card,.manuscript-diagnostics{padding:18px}body[data-screen="design"] .analysis-card .section-head{align-items:flex-start;gap:12px;flex-wrap:wrap}body[data-screen="design"] .analysis-facts{gap:8px 18px}.gallery-heading{display:block}.sample-view-switch{display:grid;grid-template-columns:1fr 1fr;margin-top:20px;width:100%}.sample-view-switch label{display:block}.sample-view-switch span{justify-content:center;padding:8px;font-size:16px;height:100%}.template-gallery{grid-template-columns:1fr}.template-card{padding:23px}.template-card.selected{padding:22px}.template-card-heading{min-height:0}.template-page-kind{margin-top:18px}.template-card-actions{margin-top:8px}.book-settings{margin-top:40px;padding-top:28px}body[data-screen="design"] .field-grid,body[data-screen="design"] .field-grid.three{grid-template-columns:1fr;gap:22px}.selected-book{padding:23px}body[data-screen="design"] .design-actionbar{display:flex;flex-direction:column;align-items:stretch;padding:20px;gap:18px}body[data-screen="design"] .design-actionbar #create-pdf{min-width:0;width:100%}body[data-screen="design"] .design-actionbar .actionbar-left{display:flex;flex-direction:column;align-items:stretch;gap:10px}body[data-screen="design"] .design-actionbar .save-status{display:block}body[data-screen="design"] .design-actionbar p{font-size:16px}.sample-image-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.sample-dialog-heading{padding:18px;gap:12px}.sample-dialog-heading h2{font-size:22px}.sample-dialog-heading .btn{padding:10px 12px;font-size:16px}.sample-dialog-switch{padding:12px;gap:8px}.sample-dialog-switch button{font-size:16px;padding:8px 10px;flex:1}.sample-dialog-content{padding:10px}.diagnostic-highlights li{display:block}.diagnostic-highlights strong{display:block}.diagnostic-item{padding:14px}}
@media(max-width:430px){.selected-book dl{grid-template-columns:1fr}.template-card-actions{gap:8px}.sample-dialog-heading{flex-wrap:wrap}.sample-dialog-heading>div{flex:1;min-width:180px}}
/* Keep the shared chrome legible on the new screen, including narrow viewports. */
body[data-screen="design"] :is(.stepper li,.local-badge,.version,.site-footer){font-size:16px}
body[data-screen="design"] .step-number{width:28px;height:28px;font-size:16px}
@media(max-width:760px){body[data-screen="design"] .stepper ol{display:grid;grid-template-columns:repeat(4,max-content);justify-content:space-between;gap:8px}body[data-screen="design"] .stepper li{font-size:15px;white-space:nowrap;text-align:center;line-height:1.3;overflow-wrap:normal}body[data-screen="design"] .site-footer{font-size:16px}body[data-screen="design"] .header-inner{min-height:72px;height:auto;padding-block:12px;flex-wrap:wrap}body[data-screen="design"] .header-right{margin-left:auto}}
