/* Public-site sharing panel. The overlay stays open independently of quick tools and SDK requests. */
.share-panel[hidden], .share-panel-actions [hidden] { display: none !important; }
.share-panel { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 18px; color: #f1e9d5; }
.share-panel-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 9, .78); backdrop-filter: blur(5px); }
.share-panel-card { position: relative; width: min(100%, 520px); max-height: min(88vh, 780px); overflow: auto; padding: 22px; border: 1px solid rgba(214, 188, 132, .56); border-radius: 18px; background: linear-gradient(155deg, #112323, #0b151a 70%); box-shadow: 0 22px 70px rgba(0,0,0,.68), 0 0 26px rgba(202,169,105,.09); }
.share-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.share-panel-head h2 { margin: 0; color: #f1dba9; font: 500 22px/1.3 "STKaiti", "KaiTi", serif; letter-spacing: .07em; }
.share-panel button { cursor: pointer; touch-action: manipulation; }
#sharePanelClose { flex: 0 0 44px; width: 44px; height: 44px; margin: -9px -8px 0 0; border: 0; background: transparent; color: #e7d8ba; font: 28px/1 system-ui,sans-serif; }
.share-panel-preview { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid rgba(205,185,145,.27); border-radius: 13px; background: rgba(3,11,17,.49); }
.share-panel-preview img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 9px; }
.share-panel-preview h3 { margin: 0 0 7px; color: #f3dfb8; font-size: 16px; line-height: 1.45; }
.share-panel-preview p { margin: 0 0 7px; color: #d2d6d2; font-size: 13px; line-height: 1.55; }
.share-panel-preview small { color: #a7b7af; font-size: 11px; }
.share-panel-link-label { display: block; margin: 18px 0 7px; color: #ddc79b; font-size: 13px; }
#sharePanelLink { display: block; box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(205,185,145,.38); border-radius: 9px; background: #08151a; color: #eee9da; font: 13px/1.4 system-ui,sans-serif; text-overflow: ellipsis; }
.share-panel-status { min-height: 36px; margin: 10px 0 4px; color: #c7d9d0; font-size: 13px; line-height: 1.45; }
.share-panel-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.share-panel-actions button { min-height: 44px; padding: 9px 16px; border: 1px solid rgba(204,179,130,.56); border-radius: 9px; background: #26362e; color: #f2e4c7; font-size: 14px; }
#sharePanelCopy { border-color: rgba(227,194,128,.75); background: linear-gradient(115deg,#344234,#574c34); }
.share-panel-actions button:hover, .share-panel-actions button:focus-visible, #sharePanelClose:focus-visible { outline: 2px solid #e5c98e; outline-offset: 2px; }
@media (max-width: 520px) { .share-panel { padding: 12px; } .share-panel-card { padding: 18px; } .share-panel-preview { grid-template-columns: 90px minmax(0,1fr); gap: 12px; } .share-panel-preview img { width: 90px; height: 90px; } .share-panel-preview h3 { font-size: 14px; } .share-panel-preview p { font-size: 12px; } }
