/* Match the code library's white cards, blue controls and slate typography. */
.hk-share-dialog{--gate-ink:#30343b;--gate-muted:#818997;--gate-line:#e8ebef;--gate-soft:#f6f7f9;--gate-accent:#377cf6;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 28px);box-sizing:border-box;margin:auto;padding:26px 22px 16px;border:1px solid #e8ebef;border-radius:20px;background:#fff;color:var(--gate-ink);font-family:inherit;text-align:left;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #18263d26;scrollbar-width:thin}
.hk-share-dialog::backdrop{background:#18263d59;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.hk-share-dialog button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s,border-color .15s,box-shadow .15s}
.hk-share-dialog h2{margin:0 28px 6px 0;font-size:21px;font-weight:650;line-height:1.45;letter-spacing:-.4px;color:var(--gate-ink)}
.hk-close{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:10px;background:var(--gate-soft);color:#818997;font-size:23px;line-height:1}
.hk-share-dialog .hk-sub{margin:0;color:var(--gate-muted);font-size:12px;line-height:1.8}
.hk-share-dialog section{margin-top:17px}
.hk-share-dialog h3{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 9px;font-size:12px;font-weight:600;line-height:1.5;color:#596271;text-align:center}
.hk-share-dialog h3 b{display:grid;place-items:center;width:20px;height:20px;border:1px solid #dfe9fc;border-radius:7px;background:#f0f5ff;color:var(--gate-accent);font-size:10px;font-weight:600}
.hk-count{margin-left:2px;padding:2px 7px;border-radius:6px;background:var(--gate-soft);color:#9099a7;font-size:10px;font-weight:500;font-variant-numeric:tabular-nums}
.hk-copy-row{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--gate-line);border-radius:12px;background:var(--gate-soft)}
.hk-copy-row p{flex:1;min-width:0;margin:0;font-size:11px;line-height:1.75;color:#596271;overflow-wrap:anywhere}
.hk-copy-promo{flex-shrink:0;min-height:36px;padding:8px 10px;border:1px solid #dfe7f3;border-radius:9px;background:#fff;color:var(--gate-accent);font-size:11px;font-weight:500;white-space:nowrap}
.hk-upload{position:relative;display:flex;align-items:center;justify-content:center;min-height:58px;overflow:hidden;padding:14px;border:1px dashed #cbd7e8;border-radius:12px;background:#f8faff;color:#597397;font-size:12px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.hk-upload:focus-within{outline:2px solid #b8cfef;outline-offset:3px}
.hk-upload input[type=file]{display:block!important;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.hk-previews{display:flex;justify-content:center;gap:7px;margin-top:9px}.hk-previews:empty{margin-top:0}
.hk-thumb{position:relative;width:calc((100% - 28px)/5);height:56px;padding:0;overflow:hidden;border:1px solid var(--gate-line);border-radius:9px;background:var(--gate-soft)}
.hk-thumb::after{content:'×';position:absolute;right:2px;top:2px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#30343bb3;color:#fff;font-size:12px;line-height:1}
.hk-thumb:disabled::after{display:none}
.hk-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.hk-note{margin:14px 0 9px;padding-top:12px;border-top:1px solid var(--gate-line);color:#9099a7;font-size:10px;line-height:1.7}
.hk-consent{display:flex;align-items:center;gap:7px;min-height:28px;margin:0 0 9px;color:#818997;font-size:11px;line-height:1.6;cursor:pointer}
.hk-consent input{flex-shrink:0;width:14px;height:14px;margin:0;accent-color:var(--gate-accent)}
.hk-status{margin:0 0 10px;padding:9px 11px;border:1px solid #f4dcd9;border-radius:9px;background:#fff6f5;color:#b34e46;font-size:11px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}.hk-status:empty{display:none}
.hk-complete{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:11px;border:1px solid transparent;border-radius:11px;background:var(--gate-accent);color:#fff;font-size:14px;font-weight:600;box-shadow:0 3px 8px #377cf61a}
.hk-complete:disabled{background:#eef1f5;color:#a3acb9;box-shadow:none;cursor:default}.hk-complete.hk-verifying{background:#377cf6;color:#fff}
.hk-reset{display:block;min-height:30px;margin:5px auto 0;padding:5px 12px;border:0;background:none;color:#98a1ad;font-size:10px}
.hk-verifying::before{content:'';width:13px;height:13px;border:2px solid #ffffff50;border-top-color:#fff;border-radius:50%;animation:hk-spin .8s linear infinite}
.hk-share-dialog button:focus-visible{outline:3px solid #b8cfef;outline-offset:3px}
.hk-share-dialog[open]{animation:hk-enter .18s ease-out}
@keyframes hk-spin{to{transform:rotate(360deg)}}@keyframes hk-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(hover:hover){.hk-close:hover{background:#edf0f5}.hk-copy-promo:hover{background:#eef4ff;border-color:#cfdef8}.hk-upload:hover{background:#f0f5ff;border-color:#8eb1ee}.hk-complete:not(:disabled):hover{background:#286be1}.hk-reset:hover{color:#596271}}
@media(max-width:360px){.hk-share-dialog{padding:24px 16px 12px;border-radius:17px}.hk-share-dialog h2{font-size:19px}.hk-copy-row{padding:10px;gap:8px}.hk-thumb{height:48px}}
@media(max-height:700px){.hk-share-dialog{padding-top:20px;padding-bottom:10px}.hk-share-dialog section{margin-top:12px}.hk-note{margin-top:11px;padding-top:9px}}
@media(prefers-reduced-motion:reduce){.hk-share-dialog[open],.hk-verifying::before{animation:none}.hk-share-dialog button,.hk-upload{transition:none}}

/* Stronger hierarchy, using the site's blue accent. */
.hk-share-dialog{width:min(430px,calc(100vw - 24px));padding:0 22px 12px;border:0;border-radius:24px;box-shadow:0 28px 110px #10204455}
.hk-share-dialog::backdrop{background:#14213b80;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.hk-dialog-heading{margin:0 -22px;padding:23px 24px 25px;border:0;background:linear-gradient(120deg,#2265ed,#4389ff);color:#fff;border-radius:24px 24px 0 0}
.hk-brandline{display:inline-block;margin-bottom:12px;padding:4px 9px;border:1px solid #ffffff45;border-radius:6px;color:#fff;font-size:10px;font-weight:600;letter-spacing:1px}
.hk-share-dialog h2{margin:0 20px 7px 0;font-size:26px;font-weight:750;line-height:1.35;letter-spacing:-.8px;color:#fff}
.hk-dialog-heading .hk-sub{color:#e4eeff;font-size:13px;line-height:1.6}
.hk-close{z-index:1;top:16px;right:15px;width:32px;height:32px;border:1px solid #ffffff35;border-radius:50%;background:#ffffff1f;color:#fff;font-size:23px}
.hk-share-dialog section{margin-top:19px}
.hk-share-dialog h3{position:relative;justify-content:center;gap:8px;margin-bottom:11px;font-size:14px;font-weight:700;color:#24344e}
.hk-share-dialog h3 b{display:grid;place-items:center;width:23px;height:23px;border:0;border-radius:7px;background:#377cf6;color:#fff;font-size:12px;font-weight:700}
.hk-count{position:absolute;right:0;top:1px;margin:0;padding:3px 8px;border-radius:7px;background:#eaf2ff;color:#377cf6;font-size:11px;font-weight:700;line-height:18px}
.hk-copy-row{display:flex;gap:12px;padding:13px 14px;border:1px solid #e3e9f2;border-radius:13px;background:#f5f7fb}
.hk-copy-row p{color:#4d5c73;font-size:12px;line-height:1.75}
.hk-copy-row strong{display:inline-block;margin-top:4px;color:#263c5e;font-size:14px;font-weight:700;letter-spacing:.3px}
.hk-copy-promo{min-height:39px;padding:9px 11px;border:0;border-radius:9px;background:#377cf6;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 3px 9px #377cf624}
.hk-platforms{margin:9px 2px 0;color:#79869a;font-size:11px;line-height:1.7}
.hk-upload{min-height:98px;display:flex;align-items:center;justify-content:center;gap:13px;padding:17px 12px;border:1.5px dashed #88b1f6;border-radius:14px;background:#f0f6ff;color:#2868d4}
.hk-upload svg{width:30px;height:30px;flex-shrink:0;fill:none;stroke:#377cf6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hk-upload span{display:flex;flex-direction:column;gap:6px;text-align:left;font-size:15px;font-weight:700}
.hk-upload small{font-size:11px;font-weight:400;color:#718ab1}
.hk-previews{gap:7px}.hk-thumb{height:54px;width:calc((100% - 28px)/5);border-radius:9px}
.hk-consent{min-height:26px;margin:15px 0 0;color:#66758b;font-size:11px}
.hk-consent input{width:15px;height:15px;accent-color:#377cf6}
.hk-note{margin:4px 0 13px;padding:0;border:0;font-size:10px;line-height:1.65;color:#8995a7}
.hk-complete{min-height:48px;border-radius:12px;background:#377cf6;color:#fff;font-size:16px;font-weight:700;box-shadow:0 5px 14px #377cf626}
.hk-complete:disabled{background:#dce8fc;color:#647fa9;box-shadow:none}.hk-complete.hk-verifying{background:#377cf6;color:#fff}
.hk-status{padding:11px 12px;border:1px solid #ffd5cd;background:#fff1ee;color:#b94b36;font-size:12px;font-weight:500}
.hk-reset{min-height:27px;margin-top:5px;font-size:10px;color:#97a3b4}
@media(hover:hover){.hk-close:hover{background:#ffffff35}.hk-copy-promo:hover{background:#2168e5;color:#fff}.hk-upload:hover{background:#e8f1ff;border-color:#377cf6}}
@media(max-width:360px){.hk-share-dialog{padding:0 17px 10px}.hk-dialog-heading{margin:0 -17px;padding:21px 19px}.hk-share-dialog h2{font-size:23px}.hk-copy-row{padding:11px;gap:9px}.hk-copy-row p{font-size:11px}.hk-copy-promo{padding:8px 9px;font-size:11px}.hk-upload span{font-size:14px}}
@media(max-height:700px){.hk-dialog-heading{padding-top:18px;padding-bottom:19px}.hk-brandline{margin-bottom:9px}.hk-share-dialog section{margin-top:14px}.hk-upload{min-height:80px}.hk-note{margin-bottom:10px}}

/* Keep the share text continuous and the frame close to its contents. */
.hk-copy-row{padding:9px 11px;gap:10px;min-height:0;align-items:center}
.hk-copy-row p{margin:0;padding:0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.hk-copy-promo{min-height:34px;padding:7px 9px;font-size:11px}

.hk-status.hk-info{background:#eef5ff;border-color:#d7e7ff;color:#436da8;font-weight:400}
