.print-page{--bg:#fffef9;--fg:#1a1a1a;--accent:#ff4d00;--accent-light:#fff0e6;--accent-dark:#cc3d00;--muted:#666;--muted-light:#999;--border:#e5e5e0;--border-light:#f0f0eb;--surface:#f7f6f1;--white:#ffffff;--shadow-xs:0 1px 2px rgba(0,0,0,0.04);--shadow-sm:0 2px 4px rgba(0,0,0,0.06);--shadow-md:0 4px 12px rgba(0,0,0,0.08);--shadow-lg:0 8px 24px rgba(0,0,0,0.12)}.split-layout{display:grid;grid-template-columns:380px 1fr;min-height:calc(100vh - 4rem);background:var(--white);border-radius:20px;overflow:hidden;box-shadow:var(--shadow-lg)}@media (max-width:1024px){.split-layout{grid-template-columns:1fr;min-height:auto}}.editor-panel{background:var(--white);border-right:1px solid var(--border);display:flex;flex-direction:column;max-height:calc(100vh - 4rem)}@media (max-width:1024px){.editor-panel{max-height:none;border-right:none;border-bottom:1px solid var(--border)}}.editor-header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.editor-header-left{display:flex;align-items:center;gap:.75rem}.editor-header h2{font-family:var(--font-dm-serif),serif;font-size:1.125rem;font-weight:400}.close-btn{width:32px;height:32px;border:none;background:transparent;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:all .2s}.close-btn:hover{background:var(--surface);color:var(--fg)}.editor-body{flex:1;overflow-y:auto;padding:1.5rem}.section{margin-bottom:1.5rem}.section-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--surface);border-radius:10px;cursor:pointer;margin-bottom:.75rem;transition:background .2s}.section-header:hover{background:var(--border-light)}.section-title{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;font-weight:600}.section-title svg{color:var(--accent)}.section-toggle{color:var(--muted);transition:transform .2s}.section.collapsed .section-toggle{transform:rotate(-90deg)}.section.collapsed .section-content{display:none}.section-content{padding:0 .25rem}.rich-editor{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--white)}.rich-editor-toolbar{display:flex;align-items:center;gap:.25rem;padding:.625rem;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap}.toolbar-group{display:flex;gap:.125rem}.tb-btn{width:30px;height:30px;border:none;background:transparent;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:all .15s}.tb-btn:hover{background:var(--white);color:var(--fg)}.tb-btn.active{background:var(--accent-light);color:var(--accent)}.tb-select{height:30px;padding:0 .625rem;border:1px solid var(--border);background:var(--white);border-radius:6px;font-size:.75rem;color:var(--fg);cursor:pointer}.tb-divider{width:1px;height:20px;background:var(--border);margin:0 .375rem}.rich-editor-content-wrapper{position:relative;min-height:100px;max-height:150px;overflow-y:auto}.rich-editor-content{min-height:100px;padding:.875rem;font-size:.875rem;outline:none;line-height:1.6}.rich-editor-content:focus{background:#fffffe}.rich-editor-content p{margin:0 0 .5rem}.rich-editor-content p:last-child{margin-bottom:0}.rich-editor-content h1{font-size:1.5rem}.rich-editor-content h1,.rich-editor-content h2{font-family:var(--font-dm-serif),serif;font-weight:400;margin:0 0 .5rem}.rich-editor-content h2{font-size:1.25rem}.rich-editor-content h3{font-family:var(--font-dm-serif),serif;font-size:1rem;font-weight:400;margin:0 0 .5rem}.rich-editor-content ol,.rich-editor-content ul{margin:.5rem 0;padding-left:1.25rem}.rich-editor-content li{margin-bottom:.25rem}.rich-editor-placeholder{position:absolute;top:.875rem;left:.875rem;color:var(--muted-light);font-size:.875rem;pointer-events:none}.rich-editor-footer{padding:.5rem .875rem;background:var(--surface);font-size:.6875rem;color:var(--muted);justify-content:space-between}.editor-footer,.rich-editor-footer{border-top:1px solid var(--border);display:flex}.editor-footer{padding:1rem 1.5rem;gap:.75rem;flex-shrink:0}.preview-panel{background:var(--surface);display:flex;flex-direction:column;min-height:500px}.preview-header{padding:1rem 1.5rem;background:var(--white);border-bottom:1px solid var(--border);justify-content:space-between;flex-shrink:0}.preview-header,.preview-title{display:flex;align-items:center}.preview-title{font-size:.875rem;font-weight:600;gap:.5rem}.preview-title svg{color:var(--accent)}.preview-actions{display:flex;gap:.5rem}.preview-body{flex:1;padding:2rem;display:flex;align-items:center;justify-content:center;overflow:auto}.paper{background:var(--white);border-radius:4px;box-shadow:var(--shadow-lg),0 0 0 1px rgba(0,0,0,.05);width:100%;max-width:360px;aspect-ratio:8.5/11;display:flex;flex-direction:column;padding:1.75rem;position:relative;transition:transform .2s}.paper:after{content:"";position:absolute;bottom:-8px;left:8px;right:8px;height:8px;background:linear-gradient(180deg,rgba(0,0,0,.06),transparent);border-radius:0 0 4px 4px}.paper-header{text-align:center;min-height:50px;padding-bottom:1rem}.paper-header.empty{border:2px dashed var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--muted-light);font-size:.6875rem}.paper-header h1{font-size:1.375rem}.paper-header h1,.paper-header h2{font-family:var(--font-dm-serif),serif;font-weight:400;margin-bottom:.125rem;line-height:1.2}.paper-header h2{font-size:1.125rem}.paper-header p{font-size:.8125rem;color:var(--muted);margin:0}.paper-qr{flex:1;justify-content:center;padding:1rem 0}.paper-qr,.qr-wrapper{display:flex;align-items:center}.qr-wrapper{background:var(--fg);border-radius:12px;padding:.875rem;flex-direction:column;gap:.5rem}.qr-image{width:150px;height:150px;display:block}.qr-placeholder{width:110px;height:110px;display:flex;align-items:center;justify-content:center}.qr-icon{width:100%;height:100%;color:var(--white)}.qr-label{font-size:.5rem;text-transform:uppercase;letter-spacing:.15em;color:var(--white);opacity:.8}.paper-footer{text-align:center;min-height:50px;padding-top:1rem}.paper-footer.empty{border:2px dashed var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--muted-light);font-size:.6875rem}.paper-footer p{font-size:.6875rem;color:var(--muted);line-height:1.4;margin:0 0 .25rem}.paper-footer p:last-child{margin-bottom:0}.paper-footer strong{color:var(--fg)}.paper-footer ol,.paper-footer ul{font-size:.625rem;color:var(--muted);text-align:left;margin:.375rem auto;max-width:180px;padding-left:.875rem}.paper-footer li{margin-bottom:.125rem}.btn{padding:.625rem 1.25rem;border-radius:8px;font-size:.8125rem;font-weight:600;cursor:pointer;transition:all .2s;border:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.btn-primary{background:var(--accent);color:var(--white);flex:1}.btn-primary:hover{background:var(--accent-dark)}.btn-secondary{background:var(--surface);color:var(--fg);border:1px solid var(--border)}.btn-secondary:hover{background:var(--border-light)}.btn-icon{width:36px;height:36px;padding:0;background:var(--white);border:1px solid var(--border);border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:all .15s}.btn-icon:hover{background:var(--surface);color:var(--fg)}@media print{body *{visibility:hidden}#print-area,#print-area *{visibility:visible}#print-area{position:absolute;left:0;top:0;width:100%;max-width:none;box-shadow:none;border-radius:0;aspect-ratio:auto;min-height:100vh;padding:.75in;background:white}#print-area:after{display:none}.paper-footer.empty,.paper-header.empty{border:none;min-height:0}.qr-wrapper{background:white;border:2px solid #1a1a1a;border-radius:8px;padding:.5rem}.qr-label{color:#1a1a1a}@page{margin:0;size:A4}}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.loading-spinner{width:48px;height:48px;border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.error-message{text-align:center;padding:2rem}.error-message h2{font-family:var(--font-dm-serif),serif;font-size:1.5rem;margin-bottom:.5rem}.error-message p{color:var(--muted);margin-bottom:1rem}.back-link{display:inline-flex;align-items:center;gap:.5rem;color:var(--muted);text-decoration:none;font-size:.875rem;margin-bottom:1.5rem;transition:color .2s}.back-link:hover{color:var(--accent)}