.story-share{color-scheme:light;box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #8c947f;border-radius:12px;background:#f3ead6;color:#17223d;padding:22px;font-family:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif;text-align:left;line-height:1.6;box-shadow:0 16px 60px #0006}
.story-share:not([open]){display:none}.story-share::backdrop{background:#05060bd9}.story-share *{box-sizing:border-box}
.story-share .share-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.story-share .share-heading h2{font-size:22px;line-height:1.3;margin:0;letter-spacing:-.035em}
.share-close{min-width:44px;min-height:44px;background:transparent;border:1px solid #96a18e;border-radius:4px;color:#17223d;font:600 14px 'Apple SD Gothic Neo',sans-serif;cursor:pointer}
.share-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-weight:600}.share-label span{font-size:12px;font-weight:400;color:#525b70}
.share-format{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:12px;font-size:14px}.share-format select{min-height:44px;padding:6px 12px;background:#fffcf4;color:#17223d;border:1px solid #84927d;border-radius:4px;font:14px 'Apple SD Gothic Neo',sans-serif}
.story-share textarea{display:block;width:100%;min-height:68px;max-height:150px;resize:vertical;font:16px/1.5 'Apple SD Gothic Neo',sans-serif;padding:10px;margin:6px 0 0;color:#17223d;background:#fffcf4;border:1px solid #84927d;border-radius:4px}
.share-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}.story-share small{font-size:12px;line-height:1.5;color:#525b70}.share-editor-footer .btn,.share-editor-footer .button{padding:6px 12px;min-height:44px}
.story-share p{font-size:14px;line-height:1.6;margin:10px 0}.story-share [data-story=status]{overflow-wrap:anywhere;min-height:22px;color:#304d3d}
.story-share .btn,.story-share .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:auto;white-space:normal;padding:9px 14px;border:1px solid #1f4938;border-radius:4px;background:transparent;color:#1f4938;font:600 14px/1.5 'Apple SD Gothic Neo',sans-serif;text-decoration:none;cursor:pointer}
.story-share .share-primary{background:#1f4938;color:#fff9e8}.story-share button:disabled{opacity:.5;cursor:wait}.story-share button:focus-visible,.story-share a:focus-visible,.story-share summary:focus-visible,.story-share textarea:focus-visible{outline:3px solid #a72d3e;outline-offset:3px}
.story-result{display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;align-items:center;margin:12px 0 18px}.story-preview{display:block;width:108px;height:auto;border:1px solid #637768;border-radius:4px;margin:0}
.story-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.story-result .story-actions{flex-direction:column;margin:0}.story-result .story-actions>*{width:100%}
.story-help{border-top:1px solid #c8bea9;padding:6px 0;margin-top:10px}.story-help summary{display:list-item;min-height:44px;align-content:center;font-size:14px;font-weight:600;cursor:pointer}.story-help[open]>p{margin-top:0}
.reel-share{border-top:1px solid #c8bea9;margin-top:10px;padding-top:14px}.story-share .reel-share h3{margin:0;font-size:15px}.story-share .reel-share p{margin:4px 0 10px;color:#525b70;font-size:13px}.reel-share>a{width:100%}
.creator-link{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 10px;min-height:44px;font-size:13px;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.tree-page .creator-link{color:#d1c69d;margin-top:12px}.tree-page{overflow:auto}.tree-page .stage{height:auto;min-height:100dvh}.tree-page .panel{max-height:none}.tree-page .view{height:max(360px,calc(100dvh - 300px));flex:none}
.tree-page .hud a{pointer-events:auto;display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:#f6f1e7}.tree-page .hud b{margin:0}
.paper .creator-link{color:var(--green);margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}
.instagram-dock{display:flex;gap:10px;padding-top:18px}.instagram-dock .primary{width:auto;flex:1}.instagram-dock .secondary{color:#e2e9e0;border-color:#637768;font-size:14px}.own-tree-link{display:flex;justify-content:center;align-items:center;min-height:48px;margin-top:22px;padding:10px;border:1px solid #637768;border-radius:4px;font-size:15px;text-decoration:none;color:var(--green)}
@media(max-width:420px){.story-share{padding:16px}.story-share .share-heading h2{font-size:20px}.story-result{gap:12px;grid-template-columns:96px minmax(0,1fr)}.story-preview{width:96px}.instagram-dock .button{padding-inline:10px;font-size:14px}.share-editor-footer small{max-width:60%}}
@media(max-height:550px){.tree-page .view{height:240px}.story-share{max-height:calc(100dvh - 16px)}}
.story-share .share-thanks{margin:0;font-size:14px;font-weight:700;color:#1f4938}
