.jl-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 14px}.jl-mode,.jl-row,.jl-tools,.jl-brush-tools,.jl-colors{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.jl-button{font:inherit;font-size:12px;line-height:1.4;min-height:38px;padding:8px 12px;border:1px solid #dce2d4;border-radius:10px;color:#53634d;background:#fffefb;cursor:pointer}.jl-button:hover{background:#edf1e7}.jl-button[aria-pressed=true]{background:#536f50;color:#fff;border-color:#536f50}.jl-button:disabled{opacity:.4;cursor:default}.jl-button:focus-visible,.jl-object:focus-visible{outline:2px solid #536f50;outline-offset:3px}.jl-flow-font{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#53634d;font-size:13px}.jl-flow-font select{max-width:210px}.jl-presets{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.jl-presets .jl-button{display:flex;flex-direction:column;align-items:center;gap:9px;padding:10px 4px}.jl-preset-art{position:relative;width:46px;height:55px;border:1px solid #d9dfd1;background:#f7f8f0;display:block;border-radius:3px}.jl-preset-art i{position:absolute;background:#b2c1a4;border-radius:2px;left:6px;right:6px;height:18px;top:6px}.jl-preset-art i:nth-child(2){height:3px;top:30px;background:#d2c5ac}.jl-preset-art i:nth-child(3){height:3px;top:39px;right:14px;background:#d2c5ac}.preset-text i:first-child{height:3px;top:12px}.preset-side i:first-child{width:16px;height:40px}.preset-side i:nth-child(2),.preset-side i:nth-child(3){left:27px;right:4px}.preset-two i:first-child{width:15px}.preset-two i:nth-child(2){left:25px;width:15px;height:18px;top:6px;background:#c6d1b9}.preset-collage i:first-child{width:20px;transform:rotate(-10deg)}.preset-collage i:nth-child(2){left:24px;top:15px;height:22px;right:3px;transform:rotate(12deg);background:#d8bca8}.jl-hint{font-size:11px;line-height:1.8;color:#88917f;margin:10px 0}.jl-row label,.jl-brush-tools label{display:flex;align-items:center;gap:6px;font-size:12px;color:#65705e}.jl-row select,.jl-brush-tools select{width:auto;min-width:70px}.jl-row{margin:10px 0}.jl-row input[type=color],.jl-brush-tools input[type=color],.jl-inspector input[type=color]{padding:3px;height:36px;width:43px;border:1px solid #dce2d4;border-radius:7px}.jl-tools{border-top:1px solid #e4e7dc;padding-top:12px;margin-bottom:12px}.jl-tools select{max-width:150px;width:auto;min-height:38px;font-size:12px}.jl-photo-picker{position:relative;display:flex;align-items:center;font-size:12px;border:1px solid #dce2d4;border-radius:10px;padding:8px 12px;height:38px}.jl-photo-picker select{opacity:0;position:absolute;inset:0;width:100%;cursor:pointer}.jl-brush-tools{padding:12px;background:#eef2e8;border-radius:12px;margin-bottom:14px}.jl-brush-tools[hidden]{display:none}.jl-brush-tools input[type=range]{width:105px;padding:0;accent-color:#536f50}.jl-colors{gap:6px}.jl-colors button{background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px #d3dacb;border-radius:50%;min-height:24px;height:24px;width:24px;padding:0}.jl-workspace{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:18px;align-items:start}.jl-stage-wrap{min-width:0;padding:24px 14px 0;background:#e9e9e0;border-radius:14px}.jl-stage{position:relative;width:100%;margin:auto}.jl-paper{position:absolute;top:0;left:0;transform-origin:top left;box-shadow:0 4px 22px #565c4221;overflow:visible}.jl-object{position:absolute;box-sizing:border-box;user-select:none;touch-action:none;cursor:move;outline:0}.jl-object canvas{display:block;width:100%;height:100%;pointer-events:none}.jl-object.selected{outline:3px solid #839d6b;z-index:1}.jl-handle{position:absolute;z-index:3;width:var(--handle);height:var(--handle);font-size:calc(var(--handle)*.65);display:grid;place-content:center;border:2px solid #fff;background:#536f50;color:white;border-radius:50%;padding:0;touch-action:none;cursor:pointer}.jl-handle.resize{right:calc(var(--handle)*-.42);bottom:calc(var(--handle)*-.42)}.jl-handle.rotate{top:calc(var(--handle)*-1.25);left:calc(50% - var(--handle)/2)}.jl-paper.drawing{touch-action:none;cursor:crosshair}.jl-paper.drawing .jl-object{pointer-events:none}.jl-draw-preview{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.jl-inspector{padding:15px;background:#f5f6ee;border:1px solid #e4e7da;border-radius:12px;min-width:0}.jl-inspector label{font-size:12px;color:#637158;display:flex;flex-direction:column;gap:5px;margin-top:10px}.jl-inspector input,.jl-inspector textarea,.jl-inspector select{width:100%;min-width:0;font-size:13px;border:1px solid #dfe3d5}.jl-inspector textarea{font-size:15px;line-height:1.6;resize:vertical}.jl-inspector .jl-row strong{font-size:13px}.jl-inspector .jl-row .jl-button{padding:7px 9px;font-size:11px}.jl-property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.jl-eyebrow{font-size:10px;letter-spacing:1px;color:#849173}.jl-inspector h3{font-family:serif;font-weight:400;font-size:23px;line-height:1.5;margin:13px 0}.jl-font-samples{border-top:1px solid #dde3d1;margin-top:20px;padding-top:15px;display:flex;flex-direction:column;gap:14px;font-size:15px;color:#637158}.jl-reading{display:flex;flex-direction:column;gap:18px;margin:24px 0}.jl-reading img{width:100%;height:auto;box-shadow:0 3px 18px #536f5012;border-radius:3px}.jl-reading p{font-size:12px;color:#7e8874}.jl-board-caption{padding:4px 0;margin:6px 0;text-align:center}.layout-editor-modal{max-width:1120px!important}.layout-editor-modal .modal-body{padding-top:12px}#journal-layout{margin-bottom:20px}.journal-flow-area[hidden]{display:none}.jl-presets button:active{transform:translateY(1px)}
@media(max-width:680px){.jl-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.jl-stage-wrap{padding:22px 14px 0}.jl-inspector{padding:14px}.jl-inspector .jl-font-samples{display:none}.jl-inspector h3{font-size:20px;margin:8px 0}.jl-inspector .jl-row{margin:0}.jl-property-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.jl-mode{width:100%}.jl-mode button{flex:1}.jl-row{gap:7px}.jl-row .jl-button,.jl-tools .jl-button{min-height:40px}.jl-presets{gap:5px}.jl-presets .jl-button{font-size:11px}.jl-tools{gap:6px}.jl-brush-tools{gap:9px}.jl-heading{margin-top:14px}.jl-flow-font .field-hint{width:100%}.jl-board-caption{font-size:10px}.layout-editor-modal .modal-body{padding-left:16px;padding-right:16px}}

#journal-layout{grid-column:1/-1;width:100%;min-width:0}.jl-object.selected{z-index:auto}.jl-tools input,.jl-tools select{max-width:100%}
.entry-editor{height:min(920px,calc(100dvh - 48px));display:flex;flex-direction:column;overflow:hidden!important}.entry-editor .modal-head{flex-shrink:0}.entry-editor .modal-body{display:flex;flex:1;min-height:0;padding:0 20px}.entry-editor #entry-form{display:flex;flex-direction:column;min-height:0;flex:1}.entry-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 0;border-bottom:1px solid var(--line);flex-shrink:0}.entry-tabs button{border:0;border-radius:8px;background:transparent;min-height:42px;font-size:14px;color:var(--muted)}.entry-tabs button.active{background:var(--soft);color:var(--green-dark)}.entry-panels{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 2px}.entry-panel{display:grid;gap:12px;min-width:0}.entry-savebar{flex-shrink:0;border-top:1px solid var(--line);padding:7px 0 max(7px,env(safe-area-inset-bottom));background:var(--paper)}.entry-savebar .form-actions{position:static;margin:4px 0 0;padding:0;display:flex;gap:8px;justify-content:flex-end;border:0}.entry-savebar .error-note:empty{display:none}.entry-savebar .draft-note{display:block;font-size:11px}.entry-editor .large-text{height:clamp(180px,35dvh,420px);min-height:160px}.entry-editor .jl-heading{margin:2px 0 8px;gap:6px}.entry-editor #journal-layout{margin:0}.entry-editor .jl-mode{width:auto}.jl-quick-history{display:flex;gap:5px}.entry-editor .jl-mode .jl-button,.jl-quick-history .jl-button{padding:7px 10px;min-height:36px}.jl-compact-tools{display:flex;gap:5px;overflow:auto;white-space:nowrap;padding:4px 0 8px;scrollbar-width:thin}.jl-compact-tools .jl-button{flex-shrink:0;font-size:12px;padding:7px 10px}.jl-dock{border:1px solid #dce3cf;border-radius:10px;background:#f7f7ed;margin-bottom:8px}.jl-dock-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border-bottom:1px dashed #dce3cf}.jl-dock-head strong{font-size:13px;font-weight:500}.jl-dock-head .jl-button{min-height:30px;padding:4px 8px;border:0;background:transparent}.jl-dock-body{max-height:220px;max-height:min(220px,27dvh);overflow:auto;padding:10px;overscroll-behavior:contain}.jl-dock .jl-inspector{padding:0;border:0;border-radius:0;background:transparent}.jl-dock .jl-inspector textarea{min-height:80px}.jl-dock .jl-material-settings{margin:0;padding:0;border:0}.jl-dock .jl-sticker-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin:10px 0 0;gap:5px}.jl-dock .jl-sticker-grid canvas{max-width:65px;max-height:65px}.jl-dock .jl-sticker-grid .jl-button{padding:5px;min-width:0;font-size:11px}.jl-dock .jl-brush-tools{padding:0;margin:0}.jl-dock .jl-presets .jl-button{padding:7px 4px;min-height:38px}.jl-page-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0 8px;font-size:11px;color:var(--muted)}.jl-page-strip label{display:flex;align-items:center;gap:6px;white-space:nowrap}.jl-page-strip select{min-height:32px;padding:4px 8px;width:75px;font-size:12px}.jl-page-strip>span{text-align:right}.entry-editor .jl-workspace{display:block}.entry-editor .jl-stage-wrap{padding:22px 14px 16px}.entry-editor .jl-stage{margin:auto}.entry-editor.is-canvas .entry-panel>.field>label{display:none}.entry-editor.is-canvas #f-title{min-height:36px;font-size:14px;padding:6px 9px}.entry-editor.is-canvas .entry-panel{gap:7px}
@media(max-width:680px){.entry-editor{height:calc(100dvh - max(8px,env(safe-area-inset-top)));max-height:none!important}.entry-editor .modal-body{padding:0 12px}.entry-panels{padding:10px 1px}.entry-tabs{gap:3px;padding:6px 0}.entry-tabs button{min-height:38px;font-size:13px}.entry-savebar .form-actions .btn{min-height:40px;padding:7px 11px}.entry-savebar .form-actions .btn.primary{flex:1}.entry-savebar .draft-note{font-size:10px}.entry-editor .jl-mode .jl-button,.jl-quick-history .jl-button{font-size:11px;padding:6px 8px}.jl-dock .jl-sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.jl-dock-body input,.jl-dock-body select,.jl-dock-body textarea{font-size:16px}.entry-editor .jl-flow-font select{min-height:38px;padding:5px 9px}.jl-page-strip>span{font-size:10px;max-width:160px}}
.journal-quickbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 20px;padding:10px 12px;border:1px solid #dce1cc;background:#f7f6edfa;border-radius:10px;box-shadow:0 3px 8px #42512f08}.journal-quickbar label{display:flex;align-items:center;gap:10px;font-size:13px;margin-right:auto;white-space:nowrap}.journal-quickbar input{width:165px;min-height:40px;padding:6px 8px}.journal-quickbar .btn{min-height:40px}@media(max-width:680px){.journal-quickbar{padding:8px;gap:5px;top:0;margin-bottom:16px}.journal-quickbar label{gap:6px;font-size:11px}.journal-quickbar input{width:133px;font-size:12px;min-height:38px}.journal-quickbar .btn{padding:7px 9px;font-size:12px}.journal-quickbar .btn.quiet{font-size:11px;padding:7px 3px}.journal-quickbar .icon{width:15px;height:15px}}
.entry-editor .jl-dock-body{max-height:min(180px,22dvh)}@media(max-width:680px){.entry-editor .jl-dock-body{max-height:min(145px,19dvh)}.entry-editor .jl-dock-head{padding:3px 9px}.entry-editor .jl-stage-wrap{padding-top:16px;padding-bottom:12px}}
@media(min-width:760px){.entry-editor #journal-layout.jl-canvas-editor.jl-panel-open{display:grid;grid-template-columns:minmax(0,1fr) 240px;column-gap:12px;align-items:start}.entry-editor .jl-panel-open>.jl-heading,.entry-editor .jl-panel-open>.jl-compact-tools{grid-column:1/-1}.entry-editor .jl-panel-open>.jl-dock{grid-column:2;grid-row:3/5;margin:5px 0 0}.entry-editor .jl-panel-open>.jl-page-strip{grid-column:1;grid-row:3}.entry-editor .jl-panel-open>.jl-workspace{grid-column:1;grid-row:4}.entry-editor .jl-panel-open .jl-dock-body{max-height:min(480px,48dvh)}.entry-editor .jl-panel-open .jl-sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.entry-editor .jl-panel-open .jl-page-strip>span{max-width:140px}}
.jl-view-tools{display:flex;align-items:center;gap:4px}.jl-view-tools .jl-button{padding:4px 8px;min-height:32px}.jl-quick-history [data-jl=clear-page]{color:#95664c}.jl-stage-wrap{overflow:auto}.entry-editor.canvas-focus{position:fixed;inset:0;width:100%;max-width:none!important;height:100dvh;max-height:100dvh!important;border-radius:0;padding-top:env(safe-area-inset-top)}.canvas-focus>.modal-head,.canvas-focus .entry-tabs,.canvas-focus .entry-panel>.field,.canvas-focus .draft-note,.canvas-focus .jl-mode{display:none!important}.entry-editor.canvas-focus .modal-body{padding:0 6px}.canvas-focus .entry-panels{padding:0;overflow:hidden;display:flex}.canvas-focus .entry-panel{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}.entry-editor.canvas-focus #journal-layout.jl-canvas-editor,.entry-editor.canvas-focus #journal-layout.jl-canvas-editor.jl-panel-open{position:relative;display:flex;flex:1;flex-direction:column;min-height:0;height:100%;gap:0}.canvas-focus .jl-heading{margin:0;padding:5px 0;flex-shrink:0}.canvas-focus .jl-quick-history{width:100%;gap:6px}.canvas-focus .jl-quick-history [data-jl=focus]{margin-right:auto}.canvas-focus .jl-compact-tools{padding:0 0 5px;flex-shrink:0}.canvas-focus .jl-page-strip{margin:0;padding:3px 2px 5px;flex-shrink:0}.canvas-focus .jl-page-label{display:none}.canvas-focus .jl-workspace{flex:1;min-height:0}.entry-editor.canvas-focus .jl-stage-wrap{height:100%;box-sizing:border-box;padding:12px 10px;border-radius:8px;overflow:auto;overscroll-behavior:contain}.canvas-focus .jl-dock,.entry-editor.canvas-focus .jl-panel-open>.jl-dock{position:absolute;top:90px;right:6px;width:min(330px,calc(100% - 12px));max-width:none;z-index:8;margin:0;box-shadow:0 10px 35px #354c3433}.entry-editor.canvas-focus .jl-dock-body,.entry-editor.canvas-focus .jl-panel-open .jl-dock-body{max-height:min(360px,42dvh);padding:12px}.entry-editor.canvas-focus .jl-sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.canvas-focus .entry-savebar{padding-top:4px}.canvas-focus .entry-savebar .form-actions{margin:0}.canvas-focus .entry-savebar .form-actions .btn{min-height:40px}.canvas-focus .jl-paper.drawing{cursor:crosshair}.canvas-focus .jl-view-tools .jl-button{font-size:12px}.canvas-focus .jl-quick-history .jl-button{font-size:12px;padding:7px 10px;min-height:36px}@media(min-width:760px){.canvas-focus .jl-compact-tools{justify-content:center}.canvas-focus .jl-quick-history{max-width:1100px;margin:auto}.canvas-focus .jl-page-strip{padding:5px 10px 7px}}
.entry-editor #entry-form,.entry-editor .entry-panels{min-width:0;width:100%}.canvas-focus .jl-heading,.canvas-focus .jl-quick-history,.canvas-focus .jl-page-strip,.canvas-focus .jl-workspace{min-width:0;max-width:100%}.jl-paper.panning,.canvas-focus .jl-paper.panning{cursor:grab}.jl-paper.panning:active{cursor:grabbing}
.jl-clear-prompt p{font-size:14px;line-height:1.8;margin:0 0 12px}.jl-clear-prompt .jl-row{justify-content:flex-end;margin-bottom:0}.jl-clear-prompt [data-jl=clear-confirm]{color:#fff;background:#94664c;border-color:#94664c;min-height:42px}.jl-clear-prompt [data-jl=clear-cancel]{min-height:42px}
.entry-editor.canvas-focus #journal-layout.jl-canvas-editor,.entry-editor.canvas-focus #journal-layout.jl-canvas-editor.jl-panel-open{align-items:stretch}.entry-editor.canvas-focus .jl-workspace{width:100%}

/* Single-element removal stays reachable without opening the settings dock. */
.jl-quick-history [data-jl=delete],.jl-inspector [data-jl=delete]{color:#94583f;border-color:#dfc6b5;background:#fff6ee}
.jl-handle.delete{right:calc(var(--handle)*-.42);top:calc(var(--handle)*-.42);background:#995d46;font-family:system-ui,sans-serif}
.jl-handle.delete:focus-visible{outline:3px solid #603b2f;outline-offset:3px}
.canvas-focus .jl-quick-history{gap:4px;flex-wrap:wrap}
@media(max-width:680px){.canvas-focus .jl-quick-history .jl-button{padding:7px 8px}.canvas-focus .jl-quick-history [data-jl=delete]{margin-left:auto}.canvas-focus .jl-quick-history [data-jl=focus]{margin-right:0}}
