#story-trigger{pointer-events:auto;cursor:pointer;border:1px solid #ffffff57;border-radius:24px;padding:0 10px;min-height:37px;background:#28382cc7;color:#fffaf0;font:600 .83rem system-ui}
#story-trigger:disabled{opacity:.52}
#visit-story{box-sizing:border-box;width:min(580px,calc(100vw - 24px));max-height:90dvh;margin:auto;padding:20px;border:1px solid #bebca9;border-radius:16px;color:#293a30;background:#faf7ee;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;font:14px/1.5 system-ui}
#visit-story::backdrop{background:#132019ae}
.story-heading,.thought-meta,.story-export{display:flex;align-items:center;gap:8px;justify-content:space-between}
.story-heading{margin-bottom:14px}.story-heading h2{margin:0;letter-spacing:-.045em;font-size:24px}
#visit-story button,.story-save{background:transparent;padding:8px 12px;border-radius:8px;border:1px solid #bdc3b6;color:#2e4839;font:inherit;cursor:pointer;text-decoration:none}
#visit-story .story-close{border:0;font-size:25px;padding:0 10px}.story-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:start}
.story-frame{width:100%;height:auto;max-height:62dvh;object-fit:contain;border-radius:9px;background:#dbddce}
.story-controls label,.snap-caption-label{display:block;font-weight:650}
#story-thought,.snap-caption-input,.reply-thread input{display:block;box-sizing:border-box;width:100%;margin:5px 0 8px;background:#fffdf7;border:1px solid #c3c5b7;border-radius:8px;padding:9px;color:#293a30;font:16px/1.4 system-ui;user-select:text;-webkit-user-select:text}
#story-thought,.snap-caption-input{resize:vertical}
.thought-meta small,.story-tip,.thought-hint,.snap-caption-label small{font-weight:400;font-size:12px;color:#586659}
.story-export{justify-content:flex-start;gap:6px;flex-wrap:wrap;margin-top:18px}
#visit-story .story-share{background:#314f40;color:#fff}.story-status{font-weight:550}
#visit-story button:disabled,.story-save[aria-disabled=true]{opacity:.48;pointer-events:none}
@media(max-width:480px){.story-layout{grid-template-columns:minmax(0,1fr);gap:10px}.story-frame{width:auto;height:min(40dvh,300px);max-width:100%;justify-self:center}.story-export{margin-top:9px}.thought-hint,.story-tip,.story-status{margin:6px 0}.visit-controls{flex-wrap:wrap}}
.guest-thought{z-index:2;position:absolute;width:max-content;max-width:min(205px,66vw);transform:translate(-50%,-100%);background:#fffbee;color:#293a2f;border:1px solid #d4cdb9;border-radius:20px;padding:7px 12px;box-shadow:0 2px 6px #1b201d38;font:550 13px/1.4 system-ui;overflow-wrap:anywhere;pointer-events:none}
.guest-thought:before,.guest-thought:after{content:'';position:absolute;left:48%;bottom:-7px;border-radius:50%;width:9px;height:9px;background:#fffbee;border-bottom:1px solid #d4cdb9}
.guest-thought:after{left:52%;bottom:-13px;width:5px;height:5px}
#cafe-journal .journal-head{margin-bottom:15px}
.snap-caption-label,.snap-caption-text{margin:10px 0;color:#394b3d}.snap-caption-text{overflow-wrap:anywhere;white-space:pre-line;font-size:16px}
.snap-card-caption{display:block;text-align:left;color:#364636;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:3px 0}
.cafe-replies{color:#344a3c;font:14px/1.5 system-ui;margin:8px 0}
.cafe-replies summary{cursor:pointer;width:max-content;padding:4px 0;font-size:13px;font-weight:650}
.reply-thread{padding:2px 0 0 12px;border-left:2px solid #c7cbbf}
.reply-thread ol{list-style:none;padding:0;margin:0}
.reply-thread ol>li,.guest-pages .reply-thread ol>li{position:relative;padding:6px 0;border:0;border-bottom:1px solid #deded0;overflow-wrap:anywhere}
.reply-thread time{font-size:11px;color:#626b61;margin-left:8px}
.reply-thread li p,.guest-pages .reply-thread li p{margin:2px 0;color:#2c3a31}
.reply-thread form,.journal-book .reply-thread form{background:none;border:0;padding:4px 0 0;display:flex;gap:5px;align-items:flex-end}
.reply-thread form label{min-width:0;flex:1;font-size:12px;font-weight:600}
.reply-thread input{margin:2px 0 0;padding:6px 8px}
.reply-thread button{border:1px solid #c5cbbd;border-radius:7px;padding:5px 9px;background:#f5f5ec;color:#304435;cursor:pointer;font:inherit}
.reply-thread [role=status]{font-size:12px;color:#485f50}.reply-thread button:disabled{opacity:.55}
.story-picture{min-width:0;align-self:center;text-align:center}
#visit-story .story-frame{display:block;width:100%;height:auto;max-height:64dvh;object-fit:contain;background:transparent;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}
#visit-story .story-frame[hidden]{display:none}
#visit-story .story-retake{margin:8px auto 0;padding:5px 12px}
#visit-story .story-primary{background:#314f40;color:white}
@media(max-width:480px){#visit-story .story-frame{max-height:42dvh}}
