.memory-invite-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;box-sizing:border-box;padding:10px 15px;border:1px solid #c9b990;border-radius:14px;background:#fffcf4;color:#315843;font:700 12px/1.6 Pretendard,'Noto Sans KR',sans-serif;white-space:nowrap;text-decoration:none}.memory-invite-button svg{width:17px;height:17px}.memory-invite-button:hover{background:#f4eedf}.memory-invite-button:focus-visible{outline:3px solid #8c9f7b;outline-offset:3px}.memory-invitation-entry{padding:17px;border:1px solid #dfd3bd;border-radius:14px;background:#fffbf2}.memory-invitation-entry a{display:flex;justify-content:space-between;gap:12px;min-height:44px;align-items:center;font-size:14px;font-weight:700;color:#315843}.memory-invitation-entry small{display:block;margin-top:7px;font-size:11px;line-height:1.8;color:#687360}.cs-topbar-tools:has(.memory-invite-button){flex-wrap:wrap}
.memory-share-button{box-sizing:border-box;display:inline-flex;flex:none;width:44px;height:44px;min-height:44px;align-items:center;justify-content:center;border:1px solid rgba(52,87,73,.24);border-radius:50%;padding:9px;color:#345749;background:rgba(255,255,255,.94);box-shadow:0 7px 22px rgba(37,69,57,.08);font:700 12px Pretendard,'Noto Sans KR',sans-serif;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s}
  .memory-share-button:hover{transform:translateY(-1px);border-color:#b8995a;box-shadow:0 10px 26px rgba(37,69,57,.13)}.memory-share-button:focus-visible{outline:3px solid rgba(184,153,90,.38);outline-offset:3px}.memory-share-button i,.memory-share-button svg{flex:none;width:21px;height:21px}.memory-share-button>span{display:none}.memory-share-button.is-compact{box-shadow:none}
  .memory-share-overlay[hidden]{display:none}.memory-share-overlay{position:fixed;z-index:300;inset:0;display:grid;place-items:center;padding:20px;background:rgba(18,31,25,.72);backdrop-filter:blur(12px)}
  .memory-share-panel{width:min(560px,100%);max-height:min(860px,calc(100dvh - 40px));overflow:auto;border:1px solid rgba(221,207,178,.74);border-radius:28px;background:#fffdfa;box-shadow:0 34px 100px rgba(10,25,18,.34)}
  .memory-share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 28px 22px;color:#fff;background:radial-gradient(circle at 12% 0,rgba(244,211,143,.2),transparent 36%),linear-gradient(135deg,#294a3d,#3d6855)}
  .memory-share-kicker{display:block;color:#f3d596;font-size:9px;font-weight:800;letter-spacing:.17em}.memory-share-head h2{margin:7px 0 0;font-family:'Gowun Batang',serif;font-size:25px;font-weight:700;line-height:1.4}.memory-share-close{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:50%;color:#fff;background:rgba(255,255,255,.08);cursor:pointer}.memory-share-close i{width:19px}
  .memory-share-body{padding:24px 28px 28px}.memory-share-visibility{display:flex;align-items:flex-start;gap:11px;border:1px solid #dce8df;border-radius:15px;padding:13px 14px;color:#4b6359;background:#f4f8f4;font-size:11px;line-height:1.65}.memory-share-visibility i{width:18px;flex:0 0 18px;margin-top:1px;color:#47705c}.memory-share-visibility b{display:block;color:#314d40;font-size:12px}
  .memory-share-context[hidden]{display:none}.memory-share-context{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;margin-bottom:14px;overflow:hidden;border:1px solid #dfd0b6;border-radius:19px;padding:17px;background:radial-gradient(circle at 100% 0,rgba(202,164,98,.15),transparent 40%),linear-gradient(145deg,#fffdf8,#f7efe2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.75)}
  .memory-share-context-mark{display:grid;width:46px;height:46px;place-items:center;border:1px solid rgba(157,119,64,.25);border-radius:15px;color:#34423a;background:rgba(255,255,255,.72)}.memory-share-context-mark svg{width:21px;height:26px;filter:drop-shadow(0 2px 3px rgba(42,51,46,.12))}
  .memory-share-context-copy{min-width:0}.memory-share-context-copy small{display:block;color:#a07742;font-size:8px;font-weight:900;letter-spacing:.14em}.memory-share-context-copy strong{display:block;margin-top:4px;color:#3c483f;font-family:'Gowun Batang',serif;font-size:15px}.memory-share-context-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:8px;color:#716a60;font-size:10px;line-height:1.55}.memory-share-context-meta span{display:inline-flex;align-items:center;gap:5px}.memory-share-context-meta i{width:12px;color:#9b7542}.memory-share-context-address{grid-column:1/-1;margin:0;padding-top:11px;border-top:1px solid rgba(167,133,80,.18);color:#81776a;font-size:10px;line-height:1.6}
  .memory-share-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.memory-share-action{display:flex;min-height:76px;align-items:center;gap:12px;border:1px solid #e0e5df;border-radius:17px;padding:14px;color:#3b4f45;background:#fff;font:700 12px Pretendard,'Noto Sans KR',sans-serif;text-align:left;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s}.memory-share-action:hover{transform:translateY(-2px);border-color:#c8b07d;box-shadow:0 9px 24px rgba(48,69,57,.09)}.memory-share-action:focus-visible{outline:3px solid rgba(184,153,90,.32);outline-offset:2px}.memory-share-action-mark{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:13px;background:#edf3ee}.memory-share-action-mark i{width:19px}.memory-share-action small{display:block;margin-top:3px;color:#7c8781;font-size:9px;font-weight:500;line-height:1.45}.memory-share-action.kakao{border-color:#eadf7b;background:#fffdf0}.memory-share-action.kakao .memory-share-action-mark{color:#3b1e1e;background:#fee500}.memory-share-action.instagram .memory-share-action-mark{color:#fff;background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)}.memory-share-action.sms .memory-share-action-mark{color:#fff;background:#4caf50}.memory-share-action.naver .memory-share-action-mark{color:#fff;background:#03c75a}.memory-share-action.naver .memory-share-action-mark b{font:900 19px Arial,sans-serif}
  .memory-share-qr{margin-top:14px;border:1px solid #e3e6e1;border-radius:17px;background:#faf9f5}.memory-share-qr summary{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;color:#41594d;font-size:12px;font-weight:700;cursor:pointer;list-style:none}.memory-share-qr summary::-webkit-details-marker{display:none}.memory-share-qr summary i{width:17px}.memory-share-qr[open] summary{border-bottom:1px solid #e5e4de}.memory-share-qr-body{display:grid;place-items:center;padding:20px}.memory-share-qr-body img{width:180px;height:180px;border:1px solid #e8e2d8;border-radius:18px;padding:9px;background:#fff}.memory-share-qr-body a{margin-top:11px;color:#3c6551;font-size:11px;font-weight:700;text-decoration:underline}
  .memory-share-notice{margin:15px 2px 0;color:#737f78;font-size:10px;line-height:1.7}.memory-share-status{min-height:18px;margin:11px 2px 0;color:#36664f;font-size:11px;font-weight:700;line-height:1.55}.memory-share-private{margin-top:18px;border:1px solid #ead8b4;border-radius:18px;padding:21px;background:#fff9eb;text-align:center}.memory-share-private i{width:27px;color:#936e31}.memory-share-private h3{margin:10px 0 6px;color:#5e4a2d;font-family:'Gowun Batang',serif;font-size:18px}.memory-share-private p{margin:0;color:#7c6b52;font-size:11px;line-height:1.7}.memory-share-private a{display:inline-flex;margin-top:14px;border-radius:999px;padding:10px 15px;color:#fff;background:#476451;font-size:11px;font-weight:700}
  @media(max-width:560px){.memory-share-overlay{align-items:end;padding:0}.memory-share-panel{max-height:92dvh;border-radius:25px 25px 0 0}.memory-share-head{padding:23px 20px 19px}.memory-share-head h2{font-size:22px}.memory-share-body{padding:20px 18px calc(22px + env(safe-area-inset-bottom))}.memory-share-grid{grid-template-columns:1fr}.memory-share-action{min-height:66px}.memory-share-qr-body img{width:164px;height:164px}}

/* Shared actions stay readable; feedback stays visible while the methods scroll. */
.memory-share-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);overflow:hidden}
.memory-share-head{flex:none;padding:23px 26px 20px}.memory-share-head h2{font-size:24px}
.memory-share-body{overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;min-height:0}
.memory-share-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.memory-share-quick .memory-share-action{min-height:70px;justify-content:center;gap:9px}
.memory-share-quick .primary{background:#345749;color:#fff;border-color:#345749}.memory-share-quick .primary small{color:#e1e9df}
.memory-share-action{font-size:13px;min-width:0;min-height:75px;padding:12px;gap:10px}
.memory-share-action>span:last-child{min-width:0}.memory-share-action small{font-size:10px;line-height:1.5}
.memory-share-action svg{width:19px;height:19px;flex:none}.memory-share-action-mark{width:34px;height:34px;flex-basis:34px}
.memory-share-action:disabled{opacity:.55;cursor:wait;transform:none;box-shadow:none}
.memory-share-visibility{font-size:12px}.memory-share-visibility b{font-size:13px}
.memory-share-context-copy strong{font-size:17px}.memory-share-context-meta,.memory-share-context-address{font-size:12px}
.memory-share-context{padding:14px}.memory-share-notice{font-size:11px;margin-bottom:0}
.memory-share-context-meta :is(i,svg){width:14px;height:14px;flex:none}
.memory-share-feedback{flex:none;border-top:1px solid #e4e5dc;background:#f5f7f2;padding:12px 24px;color:#345749;font-size:12px;line-height:1.6;max-height:42dvh;overflow:auto}
.memory-share-feedback:has(.memory-share-status:empty):not(:has([data-share-manual]:not([hidden]))):not(:has([data-share-instagram-help]:not([hidden]))){display:none}
.memory-share-feedback .memory-share-status{margin:0;font-size:12px;min-height:0}
.memory-share-feedback [hidden],.memory-share-qr [hidden]{display:none!important}
.memory-share-feedback a,.memory-share-feedback button{display:inline-flex;align-items:center;min-height:38px;margin:6px 12px 0 0;text-decoration:underline;font-weight:700}
.memory-share-feedback textarea{display:block;width:100%;margin-top:7px;border:1px solid #b7cabc;border-radius:8px;padding:10px;background:#fff;font-size:14px;line-height:1.6}
.memory-share-feedback label{display:block;margin-top:8px}.memory-share-feedback p{margin-bottom:0}
.memory-share-qr-body{gap:12px;padding:18px}.memory-share-qr-body p{font-size:12px;text-align:center;margin:0}
.memory-share-qr-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;align-items:center}
.memory-share-qr-actions a,.memory-share-qr-actions button{display:inline-flex;align-items:center;min-height:40px;font-size:12px;margin:0;text-decoration:underline;font-weight:700}
.memory-share-qr-actions button:disabled{opacity:.5}.memory-share-address-label{font-size:12px;justify-self:start}
.memory-share-qr-body input{width:100%;min-width:0;padding:10px;border:1px solid #d6ddd2;border-radius:8px;background:#fff;font-size:12px}
.memory-share-card-preview .memory-share-qr-body img{width:min(240px,100%);height:auto;padding:0;border-radius:10px}
@media(max-width:560px){.memory-share-panel{max-height:94dvh}.memory-share-body{padding:16px}.memory-share-head{padding:19px 20px}.memory-share-grid{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.memory-share-quick{gap:8px}.memory-share-action{padding:10px;gap:8px;font-size:12px}.memory-share-action small{font-size:10px}.memory-share-feedback{padding:12px 18px calc(12px + env(safe-area-inset-bottom))}.memory-share-quick .memory-share-action{min-height:72px}.memory-share-context{gap:10px}}
@media(max-width:359px){.memory-share-action-mark{display:none}.memory-share-quick .memory-share-action{gap:5px;padding:8px}.memory-share-quick .memory-share-action>svg{width:15px}}
@media(prefers-reduced-motion:reduce){.memory-share-action,.memory-share-button{transition:none}.memory-share-action:hover,.memory-share-button:hover{transform:none}}
/* The invitation preview leads ordinary space sharing; funeral sharing keeps its own card. */
.memory-invitation{padding:16px;margin-bottom:18px;background:#f6f1e6;border:1px solid #d8c9ac;border-radius:16px;text-align:center}
.memory-invitation-preview{display:block;padding:9px 9px 17px;background:#fffdf6;border:1px solid #e0d4bc;border-radius:3px 3px 32px 3px;color:#40513c;text-decoration:none;box-shadow:0 7px 20px #5c4b2f0d}
.memory-invitation-preview>.inv-scene{max-width:360px;margin:0 auto 18px;aspect-ratio:16/9}
.memory-invitation-preview>span{display:block;font-size:11px;color:#8d7650;margin-bottom:10px;letter-spacing:.04em}
.memory-invitation-preview>strong{display:block;font:23px/1.65 InvitationSerif,serif;font-weight:400}.memory-invitation-preview>small{display:block;margin-top:14px;font-size:12px;color:#6b735f}
.memory-invitation-edit{display:flex;justify-content:center;align-items:center;min-height:44px;padding:12px 3px 0;font-size:12px;line-height:1.8;color:#53664b;text-underline-offset:4px}
.memory-share-head{position:sticky;top:0;z-index:2}
.memory-share-more{margin-top:14px}.memory-share-more>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:#586b56;font-size:12px;cursor:pointer;list-style:none}.memory-share-more>summary::-webkit-details-marker{display:none}.memory-share-more[open]>summary>span{transform:rotate(45deg)}
