@font-face{font-family:"KD Share Sarabun";src:url('/assets/fonts/sarabun-thai-500.woff2') format('woff2');font-weight:400 700;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:"KD Share Serif";src:url('/assets/fonts/noto-serif-thai-600.woff2') format('woff2');font-weight:400 700;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:"KD Share Latin";src:url('/assets/fonts/sarabun-latin-500.woff2') format('woff2');font-weight:400 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.kd-share-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);max-width:680px;padding:0;border:1px solid #8f7544;border-radius:20px;background:#171020;color:#eee7f4;box-shadow:0 24px 90px #0009;overflow:auto;margin:auto;font-family:var(--body,'Sarabun',sans-serif)}
.kd-share-dialog[hidden],.kd-share-dialog [hidden]{display:none!important}.kd-share-dialog::backdrop{background:rgba(7,4,13,.82)}
.kd-share-dialog[data-fallback]{position:fixed;inset:16px 0;z-index:10000;box-shadow:0 0 0 100vmax #07040dd1;max-height:calc(100vh - 32px)}
.kd-share-shell{padding:20px}.kd-share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.kd-share-head h2{margin:0;color:#ecd596;font-family:var(--serif,serif);font-size:clamp(19px,4.8vw,25px);line-height:1.6}.kd-share-dialog p{line-height:1.8;font-size:14px;color:#c9bed4;overflow-wrap:anywhere}
.kd-share-dialog button{font:inherit;min-height:46px;border:1px solid #8f7544;background:#342444;color:#f4e7c5;border-radius:11px;padding:10px 15px;cursor:pointer}.kd-share-head button{flex-shrink:0;min-width:65px}.kd-share-dialog button:focus-visible{outline:3px solid #e2bf6f;outline-offset:3px}.kd-share-dialog button:disabled{opacity:.5;cursor:wait}
#kd-image-status{min-height:1.8em;color:#ecd596}#kd-image-preview{display:block;width:100%;height:auto;max-width:100%;border-radius:12px;background:#21132d}.kd-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;position:sticky;bottom:0;background:#171020;padding:12px 0}.kd-share-actions button{flex:1 1 160px}#kd-image-download{background:#d9bb70;color:#21152b;font-weight:600}.kd-share-tip{margin-bottom:0}.kd-image-trigger{min-height:44px}
@media(max-width:420px){.kd-share-shell{padding:14px}.kd-share-dialog{max-height:calc(100dvh - 20px)}.kd-share-actions{gap:8px}.kd-share-actions button{flex-basis:100%}}

.kd-share-preview-scroll{max-height:min(50dvh,520px);overflow:auto;overscroll-behavior:contain;border-radius:12px}.kd-share-preview-scroll:focus-visible{outline:3px solid #e2bf6f;outline-offset:2px}@media(max-width:420px){.kd-share-preview-scroll{max-height:40dvh}}
