.result-share-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0 0}
.result-share-button{border:0;border-radius:12px;background:#f2f4f6;color:#4e5968;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 4px;font:600 12px/18px inherit;font-family:inherit;font-size:12px;line-height:18px;font-weight:600}
.result-share-button svg{display:block;width:22px;height:22px}.result-share-button.share-kakao{background:#fee500;color:#191919}.result-share-button:disabled{opacity:.55}.result-share-button:focus-visible{outline:2px solid #3182f6;outline-offset:3px}.share-local-note{font-size:12px;line-height:18px;color:#8b95a1;margin:8px 0 0}
.share-link-dialog{width:calc(100% - 32px);max-width:398px;border:0;border-radius:24px;padding:24px;color:#191f28}.share-link-dialog::backdrop{background:#0006}.share-link-dialog h2{font-size:20px;margin:0 0 12px}.share-link-dialog p{font-size:14px;line-height:21px;color:#6b7684}.share-link-dialog textarea{width:100%;height:100px;resize:none;border:1px solid #e5e8eb;border-radius:12px;padding:12px;font:13px/20px inherit}.share-link-dialog .primary{margin-top:12px}
/* The confirmed PNG layout. Reuses the page typography and score markup. */
.share-export{position:absolute;left:-10000px;top:0;width:430px;background:#fff;color:#191f28;font-family:inherit;box-sizing:border-box}
.share-export .appbar{height:48px;padding:0 24px}.share-export .brand{font-size:20px;line-height:29px;font-weight:700;letter-spacing:-.4px}
body[data-screen] .share-export .page{display:block;min-height:0;padding:16px 24px 24px}
.share-export h1{font-size:26px;line-height:35px;letter-spacing:-.7px;font-weight:700;margin:0;word-break:keep-all}.share-title-score{color:#3182f6}
.share-export .share-role-summary{font-size:14px;line-height:21px;font-weight:400;color:#4e5968;margin:12px 0 0;word-break:keep-all;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;max-height:126px}
.share-export .score-list{margin-top:24px}.share-export .score-row{border:0}
.share-export .score-row .score-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;font-size:15px;line-height:24px}
.share-export .score-name{flex:1 1 0;min-width:0}.share-export .score-bar{flex:1.2 1 0;min-width:64px}.share-export .score-value{flex:0 0 58px;text-align:right}
body[data-shared-result] .footer .previous{display:none}

.share-open{margin-left:auto;min-height:48px;padding:12px 0 12px 12px;border:0;border-radius:10px;background:transparent;color:#3182f6;font-size:15px;line-height:22.5px;font-weight:600;text-align:right}.share-open[hidden]{display:none}
.share-sheet .result-share-actions{display:block;margin:0;padding:12px 24px calc(24px + env(safe-area-inset-bottom))}
.share-sheet .result-share-button{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;min-height:52px;padding:0;border-radius:0;background:transparent;color:#6b7684;font-size:17px;line-height:25px;font-weight:500}
.share-sheet{padding-bottom:calc(24px + env(safe-area-inset-bottom))}.share-sheet .share-sheet-desc{margin:12px 24px 0;font-size:14px;line-height:21px;color:#8b95a1;word-break:keep-all}
/* Scroll fog above the bottom bar, matching the bottom-sheet fog gradient. */
.footer::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:20px;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.15) 25%,rgba(255,255,255,.65) 65%,#fff);pointer-events:none}
.share-open.is-cta{width:100%;margin:0;padding:14px 0;border-radius:16px;background:#3182f6;color:#fff;text-align:center;font-size:17px;line-height:26px;min-height:56px}
/* Intro: let the gray notice area fill the remaining viewport height down to the bottom edge. */
body[data-screen="intro"] main#app,body[data-screen="intro"] main{padding-bottom:0!important}
body[data-screen="intro"] main .page{min-height:calc(var(--app-h) - 56px)!important;padding-bottom:0}
body[data-screen="intro"] main .intro-notice{flex:1 0 auto!important;padding-bottom:calc(112px + env(safe-area-inset-bottom))}
body[data-screen="intro"] .profile-cta{background:transparent}body[data-screen="intro"] .profile-cta:before{display:none}
.nickname-sheet{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.nickname-sheet h2{margin:25px 24px 0}
.nickname-sheet .nickname-input{display:block;width:calc(100% - 48px);margin:20px 24px 0;padding:14px 16px;border:1px solid #e5e8eb;border-radius:12px;font:inherit;font-size:17px;line-height:26px;color:#191f28;background:#fff}
.nickname-sheet .nickname-input:focus{outline:0;border-color:#3182f6}
.nickname-sheet .nickname-hint{margin:8px 24px 0;font-size:13px;line-height:19.5px;color:#8b95a1}
.nickname-sheet .primary{display:block;width:calc(100% - 48px);margin:24px 24px calc(24px + env(safe-area-inset-bottom))}
/* Profile screen: same full-height gray notice as the intro screen. */
body[data-screen="profile"] main{padding-bottom:0!important}
body[data-screen="profile"] main .page{min-height:calc(var(--app-h) - 56px)!important;padding-bottom:0}
body[data-screen="profile"] main .profile-notice{flex:1 0 auto!important;padding-bottom:calc(112px + env(safe-area-inset-bottom))}
body[data-screen="profile"] .profile-cta{background:transparent}body[data-screen="profile"] .profile-cta:before{display:none}
img.brand{display:block;width:56px;height:29px;object-fit:contain;user-select:none}img.brand[hidden]{display:none}

/* Desktop: cap the app height (1000px) and center the frame vertically so screens do not stretch with tall windows. */
:root{--app-h:min(100dvh,1000px);--app-off:max(0px,calc((100dvh - 1000px) / 2))}
html .shell{min-height:var(--app-h);margin:var(--app-off) auto}
html .header{top:var(--app-off)}
html .footer,html .profile-cta{bottom:var(--app-off)}
html .toast{bottom:calc(108px + var(--app-off) + env(safe-area-inset-bottom))}
html .profile-sheet{bottom:calc(10px + var(--app-off) + env(safe-area-inset-bottom))}
html:root{--outer-bg:#fff;background:var(--outer-bg)}
@media (min-width:500px){html:root{--outer-bg:#f7f8fa}}
/* Cover the strips above/below the centered frame so scrolled content never shows outside it. */
html::before,html::after{content:"";position:fixed;left:0;right:0;height:var(--app-off);background:var(--outer-bg);z-index:9;pointer-events:none}
html::before{top:0}html::after{bottom:0}

.share-screen{position:absolute;left:-10000px;top:0;width:430px;background:#fff;box-sizing:border-box;font-family:inherit}
html[data-theme="dark"] .share-screen{background:#1b1c21}
.share-screen .appbar{height:48px;padding:0 24px}
.share-screen .page{display:block;min-height:0;padding-bottom:40px}
.share-sheet-desc{white-space:pre-line}

.toast[popover]{top:auto;right:auto;margin:0;border:0;overflow:visible;inset:auto auto calc(108px + env(safe-area-inset-bottom)) 50%}
