.preview-workspace{max-width:1600px;margin:auto;padding:38px 32px 24px}.preview-intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}.preview-intro h1{font-size:30px;margin:10px 0 12px}.preview-intro p{color:var(--muted);font-size:13px;line-height:1.9;margin:0}.preview-help{font-size:11px;color:var(--muted);white-space:nowrap;text-underline-offset:4px}.preview-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px;align-items:start}.preview-options{padding:20px 16px;border:1px solid var(--line);border-radius:8px;background:#f7f7f3;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}.preview-options h2{font-size:18px;letter-spacing:-.035em;margin:5px 0 8px}.options-intro{color:var(--muted);font-size:11px;line-height:1.8;margin-bottom:15px}.preview-options fieldset{margin:16px 0 0;padding:0;border:0;min-width:0}.preview-options legend{font-size:11px;font-weight:600;color:#6d7265;padding:0;margin-bottom:8px}.preview-check{display:flex;align-items:start;gap:8px;font-size:11px;line-height:1.8;cursor:pointer;margin:8px 0}.preview-check input{accent-color:var(--green);margin:4px 0 0;flex-shrink:0;width:13px;height:13px}.preview-check:has(input:disabled){color:#9b9a97}.preview-options .field input{font-size:12px;background:white}.preview-options .field{margin:14px 0}.preview-options .field label{font-size:11px}.more-options{border-top:1px solid var(--line);padding-top:14px;margin-top:17px}.more-options summary{font-size:11px;cursor:pointer;color:#6d7265}.more-options[open]>summary{margin-bottom:14px}.more-options .preview-check{font-size:10px}.options-footer{margin-top:20px;padding-top:17px;border-top:1px solid var(--line);display:grid;gap:11px}.options-footer>button,.import-label{font-size:10px;background:none;color:var(--green);text-align:left;padding:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.import-label input{display:block;width:100%;font-size:9px;margin-top:8px;overflow:hidden}.options-footer p{font-size:10px;color:var(--muted);line-height:1.8;margin:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.preview-tabs{display:flex;gap:4px;padding:4px;background:#eeeee9;border-radius:6px;min-width:0}.preview-tabs button{padding:10px 16px;border-radius:4px;color:#787774;background:none;white-space:nowrap;font-size:12px}.preview-tabs button[aria-selected=true]{background:white;box-shadow:0 1px 3px #0000000a;color:#37352f;font-weight:600}.preview-tabs .visited-mark{margin-left:6px;font-size:10px;color:#5a7c66}.page-progress{font-size:10px;color:#9b9a97;white-space:nowrap}.preview-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#8b8b82;margin:0 0 12px;flex-wrap:wrap}.preview-label>span:last-child{margin-left:auto}.preview-dot{height:5px;width:5px;border-radius:50%;background:#8da082}.preview-scroll{border:1px solid #e4e4df;border-radius:8px;background:white;box-shadow:0 3px 14px #29271a05;overflow:auto;max-height:740px;overscroll-behavior:contain}.notebook-page{min-width:820px;padding:35px 36px;color:#37352f}.notebook-page[hidden]{display:none}.notebook-page h2.notion-title{font-size:25px;letter-spacing:-.04em;line-height:1.4;margin:0 0 26px}.page-icon{font-size:30px;line-height:1;margin-bottom:16px}.notion-nav{display:flex;flex-wrap:wrap;gap:8px;background:#f5f5f1;padding:12px 14px;border-radius:4px;font-size:10px;margin-bottom:3px}.notion-nav button{background:none;color:#5d6558;text-decoration:underline;text-underline-offset:3px;padding:0}.preview-row{display:grid;gap:22px;margin-bottom:23px}.columns-1{grid-template-columns:minmax(0,1fr)}.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.row-ratio-40-60{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}.row-ratio-55-45{grid-template-columns:minmax(0,11fr) minmax(0,9fr)}.preview-column{min-width:0}.notion-section{min-width:0}.notion-section+.notion-section{margin-top:22px}.notion-section h3{font-size:15px;line-height:1.5;font-weight:650;border-bottom:1px solid #ecece8;padding-bottom:8px;margin:0 0 11px;letter-spacing:-.015em}.notion-intro{font-size:11px;color:#929288;margin:0}.native-callout{padding:14px;background:#f5f5f1;border-radius:4px;font-size:11px;line-height:1.85;min-width:0}.native-callout>strong{display:block;font-size:12px;margin-bottom:5px}.native-callout>p{color:#99998f;margin:0}.native-callout.blue{background:#edf3f8}.notion-cards{gap:10px;margin:0}.notion-cards .native-callout{padding:12px;font-size:10px}.notion-cards strong{font-size:11px}.native-toggle{font-size:11px;background:#fbfbf9;border-radius:4px;border:1px solid #eeeee9;padding:10px 12px;color:#79796e}.native-toggle>summary{cursor:pointer;font-size:11px}.native-toggle[open]>summary{margin-bottom:15px}.native-toggle .notion-section h3{display:none}.native-tabs{display:flex;gap:3px;overflow:auto;border-bottom:1px solid #e9e9e7;margin-bottom:8px;scrollbar-width:thin}.native-tabs button{padding:7px 9px;white-space:nowrap;background:none;color:#a09f98;font-size:10px;border-bottom:2px solid transparent}.native-tabs button[aria-selected=true]{border-bottom-color:#5d6f57;color:#565d50;font-weight:600}.native-table-wrap{width:100%;overflow:auto;scrollbar-width:thin}.native-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:10px;min-width:300px}.native-table th{font-weight:500;color:#8f8f85;background:#fafaf8;text-align:left;white-space:nowrap;border-bottom:1px solid #e8e8e3;padding:8px 10px}.native-table td{border-bottom:1px solid #eeeee8;padding:12px 10px;color:#b5b4ab}.native-table td.empty-row{text-align:left;height:62px;color:#b3b3a9}.native-table.timetable{table-layout:fixed;min-width:600px}.timetable th:first-child{width:50px}.timetable th:nth-child(2){width:100px}.timetable th,.timetable td{border:1px solid #e9e9e4;padding:10px}.timetable td{text-align:center;height:42px;color:#aaa99f}.preview-caption{font-size:9px;color:#a3a297;margin:8px 0 0;line-height:1.7}.database-origin{font-size:9px;color:#aaa99f;margin:8px 0 0;overflow-wrap:anywhere}.native-calendar-head{display:flex;justify-content:space-between;font-size:10px;color:#95958b;margin:12px 0}.native-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e9e9e4;border-left:1px solid #e9e9e4}.native-calendar>span{padding:6px;text-align:center;font-size:9px;color:#a19f95;background:#fafaf8;border-bottom:1px solid #e9e9e4;border-right:1px solid #e9e9e4}.native-calendar>div{min-height:38px;border-right:1px solid #e9e9e4;border-bottom:1px solid #e9e9e4;background:#fff}.native-calendar.week>div{min-height:85px}.native-board{display:flex;gap:10px;overflow:auto}.native-board-col{flex:1;min-width:110px;background:#f8f8f5;border-radius:4px;padding:10px;font-size:10px;color:#9c9c90;min-height:86px}.native-board-col strong{display:block;font-size:10px;color:#7e8273;font-weight:500;margin-bottom:14px}.native-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.native-gallery>div{border:1px dashed #e7e7e0;border-radius:4px;height:85px;display:grid;place-items:center;font-size:10px;color:#b4b4aa}.source-links{display:flex;flex-wrap:wrap;gap:6px 15px;font-size:10px;color:#858677;padding:6px 0}.source-links span{text-decoration:underline;text-underline-offset:3px}.preview-fidelity{padding:14px 0 20px;font-size:10px;color:#8f9085}.preview-fidelity strong{font-weight:600;color:#61745a;margin-right:12px}.preview-fidelity p{font-size:10px;margin:5px 0 0;line-height:1.8}.review-panel{border:1px solid #dde3d8;border-radius:8px;background:#fff;padding:25px;display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,1fr);gap:20px 26px}.review-panel h2{font-size:20px;margin:5px 0 10px;letter-spacing:-.035em}.review-panel p{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:0}.review-panel .bundle-summary{font-size:10px;color:#89977e;margin-top:12px}.review-controls{align-self:center}.review-actions{display:flex;gap:8px;margin-top:14px}.review-actions .button{font-size:11px;padding:10px 12px}.html-download{background:none;padding:0;font-size:10px;color:#8a8b7d;text-decoration:underline;text-underline-offset:3px;margin-top:14px}.review-panel #handoff-status{color:var(--green);font-size:10px;min-height:18px}.review-panel .prompt-details{grid-column:1/-1;margin:0;font-size:11px}.review-panel .apply-note{grid-column:1/-1;border-top:1px solid var(--line);padding-top:13px;margin:0;font-size:10px}.preview-workspace footer{margin-top:32px}.export-preview{padding:28px;background:#fafaf9}.export-preview .notebook-page{border:1px solid #e4e4df;background:white;margin:25px auto;max-width:1360px}.export-preview .export-heading{max-width:1360px;margin:auto}.export-preview .native-tabs button{pointer-events:none}.export-preview .bundle-code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}.export-preview .native-tabs span{font-size:10px;padding:7px 9px}.export-preview .notion-nav span{font-size:10px}
@media(max-width:1150px){.preview-workspace{padding:30px 22px}.preview-shell{grid-template-columns:190px minmax(0,1fr);gap:18px}.preview-tabs button{padding:9px 10px;font-size:11px}.review-panel{grid-template-columns:1fr}.preview-intro h1{font-size:28px}.preview-options{padding:18px 13px}.page-progress{display:none}}
@media(max-width:800px){.preview-shell{display:flex;flex-direction:column}.preview-options{width:100%;position:static;max-height:none;padding:18px}.preview-options fieldset#module-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}.preview-options #module-options legend{margin-bottom:8px}.options-intro{margin-bottom:0}.options-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.options-footer p{width:100%}.import-label input{font-size:9px;margin-top:3px;max-width:190px}.preview-main{width:100%}.preview-intro{display:block}.preview-help{display:inline-block;margin-top:14px}.preview-scroll{max-height:650px}.preview-label>span:last-child{margin-left:0}.preview-toolbar{overflow:auto}.review-panel{padding:21px}.preview-tabs{width:100%;justify-content:space-between}.preview-tabs button{padding:9px 8px}.preview-tabs .visited-mark{margin-left:3px}.preview-fidelity p{margin-top:8px}.preview-workspace{padding:25px 16px}.preview-intro h1{font-size:26px}.preview-intro p{font-size:12px}.review-actions{flex-wrap:wrap}.review-panel p br{display:none}}
@media print{.export-preview{padding:0}.notebook-page{break-before:page}.export-heading{break-after:page}}
/* Layout editing uses native rows and fixed relative column presets. */
.row-ratio-60-40{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.row-ratio-45-55{grid-template-columns:minmax(0,9fr) minmax(0,11fr)}
.layout-editor-bar{display:flex;align-items:center;gap:16px;padding:11px 13px;background:#eef2eb;border:1px solid #dce4d7;border-radius:6px;color:#58664f;margin:14px 0 8px;font-size:11px}.layout-editor-bar .preview-check{margin:0;font-weight:600;align-items:center;white-space:nowrap}.layout-editor-bar .preview-check input{margin:0}.layout-editor-actions{margin-left:auto;display:flex;gap:8px}.layout-editor-actions button{background:#fff;border:1px solid #dce4d7;color:#56644f;font-size:11px;border-radius:4px;padding:6px 9px;white-space:nowrap}.layout-editor-actions button:disabled{opacity:.4;cursor:default}.layout-hint,.layout-status{font-size:11px;color:#83897d;line-height:1.7;margin:7px 0}.layout-status{min-height:19px;color:#57764f;margin-bottom:12px}.move-panel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;background:#f5f7f2;border:1px solid #dce4d7;border-radius:5px;font-size:11px;margin-top:10px}.move-panel strong{color:#41603f}.move-panel label{color:#84897a;font-size:10px}.move-panel select{background:white;border:1px solid #dce4d7;border-radius:4px;padding:7px;font-size:11px;max-width:220px}.move-panel button{font-size:11px;border-radius:4px;padding:7px 10px;background:#e5ebdf;color:#42613b}.move-panel #apply-move{background:#466b48;color:white}.move-panel #cancel-move{background:transparent;color:#909887}.editable-section{position:relative;border:1px solid transparent;border-radius:4px;padding:5px 7px;margin-left:-8px;margin-right:-8px}.editable-section:hover{border-color:#e6ebe0}.section-handle{position:absolute;left:-22px;top:3px;background:#f0f3ec;color:#829373;border-radius:4px;padding:3px 5px;font-size:18px;line-height:1;cursor:grab;opacity:.7;touch-action:none;z-index:2}.section-handle:hover,.section-handle:focus{opacity:1;background:#dce6d3;color:#42643b;outline:2px solid #b9cdb0;outline-offset:1px}.section-handle:active{cursor:grabbing}.section-picked{border-color:#afc5a1;background:#fcfdf9}.preview-row{position:relative}.ratio-control{position:absolute;right:0;top:-25px;display:flex;align-items:center;gap:6px;color:#939b89;font-size:9px;z-index:1}.ratio-control select{font-size:10px;border:1px solid #dce4d7;border-radius:4px;padding:3px 5px;color:#5b7550;background:#fafcf7}.layout-editing .preview-row.columns-2{margin-top:29px}.row-drop{height:20px;margin:-9px 0 13px;border:1px dashed transparent;border-radius:4px;color:transparent;text-align:center;font-size:10px;line-height:18px}.is-dragging .row-drop{height:20px;color:#91a484;border-color:#d7e1ce;background:#f8faf4;margin:-9px 0 13px}.row-drop[data-drop]{color:#355b31;background:#e0eed5;border:2px solid #81a66c}.editable-section[data-drop=before],.editable-section[data-drop=row-before]{box-shadow:0 -4px 0 #88aa76}.editable-section[data-drop=after],.editable-section[data-drop=row-after]{box-shadow:0 4px 0 #88aa76}.editable-section[data-drop=left]{box-shadow:inset 7px 0 0 #88aa76;background:linear-gradient(90deg,#e5efdd,transparent 35%)}.editable-section[data-drop=right]{box-shadow:inset -7px 0 0 #88aa76;background:linear-gradient(270deg,#e5efdd,transparent 35%)}.is-dragging .editable-section{border-style:dashed;border-color:#dbe5d1}.is-dragging .section-picked{opacity:.55}.export-preview .ratio-control,.export-preview .row-drop,.export-preview .section-handle{display:none}
@media(max-width:800px){.layout-editor-bar{flex-wrap:wrap;gap:8px}.layout-editor-bar>span{font-size:10px}.layout-editor-actions{margin-left:0;width:100%}.layout-hint,.layout-status{font-size:10px}.move-panel{gap:7px}.move-panel strong{width:100%}.move-panel select{max-width:100%;min-width:0}.section-handle{opacity:1}}
/* Drop previews overlay the destination without shifting the drag targets. */
.preview-scroll{position:relative}.drop-preview{position:absolute;top:0;left:0;pointer-events:none;z-index:5;overflow:hidden}.ghost-card{stroke-width:1.5;stroke-dasharray:7 4}.ghost-active{fill:#d3e6c6;fill-opacity:.7;stroke:#759d63}.ghost-neighbor{fill:#f0f4eb;fill-opacity:.5;stroke:#b4c7a8;stroke-opacity:.7}.ghost-title{font-size:12px;font-weight:600;fill:#4d703e;fill-opacity:.9}.ghost-caption{font-size:10px;fill:#6a855a;fill-opacity:.8}.ghost-neighbor-title{font-size:11px;fill:#8a9e7c;fill-opacity:.7}.ghost-insertion{stroke:#648d50;stroke-width:2;stroke-opacity:.9}.ratio-control{background:#f3f6ef;color:#617950;border:1px solid #dce6d2;border-radius:4px;padding:4px 7px;font-size:10px;cursor:pointer}.ratio-control:hover,.ratio-control:focus-visible{background:#e4eddd;border-color:#a6bf93}.layout-editing .preview-row:has(>.ratio-control){margin-top:29px}
.columns-panel{padding:15px;border:1px solid #d8e3cf;border-radius:7px;background:#f7f9f3;margin:12px 0;font-size:11px}.columns-heading{display:flex;align-items:center;gap:10px;margin-bottom:13px}.columns-heading strong{color:#46623d;font-size:12px}.columns-heading span{color:#8b967f;font-size:10px}.columns-heading button{margin-left:auto;background:transparent;color:#8b967f;font-size:10px}.column-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.column-actions button,.add-column-controls button{background:white;border:1px solid #d8e3cf;border-radius:4px;color:#58744a;padding:7px 11px;font-size:11px}.column-actions button[aria-pressed=true]{background:#527746;color:white;border-color:#527746}.column-actions button:disabled,.add-column-controls button:disabled{opacity:.4;cursor:default}#column-counts{display:flex;gap:4px}.column-help{font-size:10px;color:#8a947f;line-height:1.7;margin:10px 0 0}.add-column-controls{display:flex;align-items:center;gap:9px;margin:15px 0;padding-top:13px;border-top:1px solid #e1e8db;flex-wrap:wrap}.add-column-controls label{color:#6b7f5b;font-size:11px}.add-column-controls select{min-width:140px;max-width:280px;font-size:11px;padding:7px 9px;border:1px solid #d8e3cf;border-radius:4px;background:white;color:#5c6e50}.column-widths{display:flex;gap:10px;flex-wrap:wrap}.column-width{display:flex;align-items:center;gap:5px;font-size:10px;color:#718164}.column-width input{width:95px;padding:6px;border:1px solid #d8e3cf;border-radius:4px;background:white;color:#48673c;font-size:11px}.column-width input:disabled{background:#f1f4ed;color:#9ca691}
@media(max-width:800px){.columns-panel{padding:12px}.columns-heading{flex-wrap:wrap;gap:7px}.columns-heading strong{max-width:70%}.columns-heading span{font-size:9px}.add-column-controls{align-items:stretch}.add-column-controls label{width:100%}.add-column-controls select{max-width:100%;min-width:0;flex:1}.column-width input{width:72px}.column-actions button{padding:7px 8px;font-size:10px}.ghost-title{font-size:11px}}
