/* User-requested post menu and capture dialog, 2026-10-22. */
html body #sheetbg.post-more-sheet{position:fixed!important;inset:0!important;width:auto!important;transform:none!important;display:block;background:rgba(0,0,0,.45)}
html body #sheetbg.post-more-sheet>.sheet{position:fixed;left:var(--more-left,16px);top:var(--more-top,64px);bottom:auto;right:auto;width:var(--more-width,272px);max-width:calc(100vw - 32px);max-height:calc(100dvh - var(--more-top,64px) - 16px - env(safe-area-inset-bottom));padding:6px 0;border-radius:16px;overflow-y:auto;box-shadow:0 12px 40px #0003;animation:postMenuIn .16s ease-out}
html body #sheetbg.post-more-sheet .grab{display:none}
html body #sheetbg.post-more-sheet .mrow{padding:11px 16px!important;gap:12px;min-height:44px;font-size:14px}
html body #sheetbg.post-more-sheet .mrow svg.lu{width:20px;height:20px;flex:none}
html[data-theme=dark] body #sheetbg.post-more-sheet>.sheet{background:#080808}
html body #sheetbg.post-capture-modal{position:fixed!important;inset:0!important;width:auto!important;transform:none!important;display:flex;align-items:center;justify-content:center;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));background:rgba(0,0,0,.45)}
html body #sheetbg.post-capture-modal>.sheet{position:relative;inset:auto;width:100%;max-width:376px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:24px 20px 18px;border:0;border-radius:20px;background:var(--bg);color:var(--tx);overflow:auto;animation:postMenuIn .22s cubic-bezier(.2,.8,.2,1)}
html body #sheetbg.post-capture-modal .grab{display:none}
.capture-dialog>h3{font-size:18px;text-align:left;margin:0 32px 20px 0;font-weight:700;line-height:1.4}
.capture-close{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:none;color:var(--tx);display:grid;place-items:center;cursor:pointer}
.capture-close svg{width:25px;height:25px}
.capture-actions{display:grid;gap:10px}
.capture-actions>button{display:flex;min-height:72px;align-items:center;gap:12px;padding:14px;border:1px solid var(--ln);border-radius:12px;background:var(--bg);color:var(--tx);text-align:left;font-size:15px;cursor:pointer}
.capture-actions>button:hover{background:var(--s)}
.capture-actions span{flex:1;font-weight:600}
.capture-actions small{display:block;margin-top:5px;color:var(--t3);font-size:12px;font-weight:400;line-height:1.5}
.capture-actions b{font-size:18px;font-weight:400;color:var(--t3)}
.capture-intro{font-size:12px;color:var(--t3);margin:12px 0 0}
.capture-actions svg{width:24px;height:24px;flex:none}
.capture-dialog details{margin-top:20px;padding-top:16px;border-top:1px solid var(--ln)}
.capture-dialog summary{font-size:13px;cursor:pointer;list-style:none;display:flex;gap:10px;align-items:center}
.capture-dialog summary:after{content:'';width:10px;height:10px;display:block;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}
.capture-dialog details[open] summary:after{transform:translateY(-3px) rotate(45deg)}
.capture-options{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;padding-top:18px}
.capture-options>label{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.4;cursor:pointer}
.capture-options input{width:18px;height:18px;min-width:18px;margin:0;accent-color:var(--tx)}
.capture-hint{font-size:12px;color:var(--t3);line-height:1.6;margin:18px 0 0}
.post-tool-status{font-size:13px;color:var(--t2);line-height:1.6;white-space:pre-line;margin:12px 0 0}
.post-tool-status:empty{display:none}
html[data-theme=dark] .capture-actions>button{background:var(--s)}
html body #sheetbg.author-note-sheet>.sheet{max-width:560px;padding:24px 20px calc(24px + env(safe-area-inset-bottom));background:var(--bg);color:var(--tx)}
.author-note-dialog>h3{font-size:18px;margin:0 0 12px}
.author-note-info{font-size:13px;line-height:1.6;color:var(--t2);margin:0 0 16px}
.author-memo{margin:0;padding:0 16px 12px;font-size:13px;line-height:1.6;color:var(--t3);white-space:pre-wrap;overflow-wrap:anywhere}
.author-note-dialog>textarea{display:block;box-sizing:border-box;min-height:140px;width:100%;padding:12px 14px;font:inherit;font-size:15px;line-height:1.6;border:1px solid var(--ln);border-radius:12px;background:var(--s);color:var(--tx);resize:vertical}
.author-note-actions{display:flex;gap:10px;margin-top:16px}
.author-note-actions>button{flex:1;height:50px;padding:0 16px;border:0;border-radius:14px;font-size:15px;font-weight:700;background:var(--s);color:var(--t2);cursor:pointer}
.author-note-actions>[data-note=save]{background:var(--ctl);color:var(--on)}
@keyframes postMenuIn{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){html body #sheetbg:is(.post-more-sheet,.post-capture-modal)>.sheet{animation:none!important}}

.capture-preview{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;margin-top:16px;border:1px solid var(--ln);border-radius:8px}
