/* Update / alert popup */
.fd-pop{--pc:#2158E8;--pb:#EEF2FF;--pf:#1E3A8A;font-family:inherit}
.fd-pop--warning{--pc:#B45309;--pb:#FEF3C7;--pf:#78350F}.fd-pop--success{--pc:#047857;--pb:#D1FAE5;--pf:#065F46}
:root[data-theme="dark"] .fd-pop--info{--pb:#1E2A52;--pf:#BFD0FA;--pc:#8FB0FF}:root[data-theme="dark"] .fd-pop--warning{--pb:#3A2A0C;--pf:#FCD34D;--pc:#FBBF24}:root[data-theme="dark"] .fd-pop--success{--pb:#0F3A2C;--pf:#6EE7B7;--pc:#34D399}
.fd-pop__x{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#0F172A;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.25);flex:none;padding:0}
.fd-pop__x:hover{background:#fff;transform:scale(1.06)}
.fd-pop__pill{display:inline-flex;align-items:center;height:26px;padding:0 11px;border-radius:999px;background:var(--pb);color:var(--pf);font-size:12px;font-weight:700}
.fd-pop__btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:0;border-radius:999px;background:#2158E8;color:#fff;font:700 15px/1 inherit;font-family:inherit;text-decoration:none;cursor:pointer;transition:filter .2s,transform .15s}
.fd-pop__btn:hover{filter:brightness(1.1);transform:translateY(-1px);color:#fff}
.fd-pop__btn--ghost{background:var(--fd-surface,#fff);color:var(--fd-text-strong,#0F172A);border:1px solid var(--fd-border,#CBD5E1)}.fd-pop__btn--ghost:hover{color:var(--fd-text-strong,#0F172A)}
.fd-pop__btn--sm{min-height:38px;padding:0 16px;font-size:13.5px}.fd-pop__btn--bar{min-height:36px;padding:0 16px;font-size:13px;flex:none}
.fd-pop :focus-visible{outline:3px solid var(--fd-primary,#2158E8);outline-offset:3px}
/* centred announcement (a bottom sheet on a phone) */
.fd-pop--center{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}
.fd-pop__back{position:absolute;inset:0;background:rgba(8,12,28,.6);animation:fd-pop-fade .3s ease both}
.fd-pop__box{position:relative;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--fd-surface,#fff);color:var(--fd-text,#0F172A);border-radius:26px;box-shadow:0 30px 70px rgba(2,6,23,.5);animation:fd-pop-in .4s cubic-bezier(.2,.9,.3,1.1) both;-webkit-overflow-scrolling:touch}
.fd-pop--center .fd-pop__x{position:absolute;right:14px;top:14px;z-index:3}
.fd-pop__img{background:var(--fd-surface-2,#EEF2FF)}.fd-pop__img img{display:block;width:100%;max-height:260px;object-fit:cover}
.fd-pop__body{padding:22px 26px 24px}
.fd-pop__h{margin:10px 0 8px;font-size:23px;line-height:1.25;font-weight:800;color:var(--fd-text-strong,#0F172A)}
.fd-pop__tx{margin:0;font-size:15px;line-height:1.6;color:var(--fd-text-muted,#475569)}
.fd-pop__pdf{display:flex;align-items:center;gap:12px;margin-top:16px;padding:10px 12px;border:1px solid var(--fd-border,#E2E8F0);border-radius:14px;background:var(--fd-surface-2,#F8FAFC);text-decoration:none;color:inherit;transition:border-color .2s,box-shadow .2s}
.fd-pop__pdf:hover{border-color:var(--fd-primary,#2158E8);box-shadow:0 6px 16px rgba(33,88,232,.15)}
.fd-pop__pdfi{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#FEE2E2;color:#B91C1C;font-weight:800;font-size:11px;flex:none}
.fd-pop__pdft{flex:1;min-width:0;display:flex;flex-direction:column}.fd-pop__pdft b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fd-text-strong,#0F172A)}.fd-pop__pdft small{font-size:12px;color:var(--fd-text-muted,#64748B)}
.fd-pop__pdfb{flex:none;font-weight:800;font-size:13px;color:var(--fd-primary,#2158E8)}
.fd-pop__act{display:flex;gap:10px;margin-top:18px}.fd-pop__act .fd-pop__btn:first-child{flex:1}
.fd-pop__once{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12.5px;color:var(--fd-text-muted,#64748B);cursor:pointer}.fd-pop__once input{width:16px;height:16px;accent-color:var(--fd-primary,#2158E8)}
.fd-pop.is-out .fd-pop__box{animation:fd-pop-out .22s ease both}.fd-pop.is-out .fd-pop__back{animation:fd-pop-fadeout .22s ease both}
@keyframes fd-pop-fade{from{opacity:0}to{opacity:1}}@keyframes fd-pop-fadeout{to{opacity:0}}@keyframes fd-pop-in{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}@keyframes fd-pop-out{to{opacity:0;transform:translateY(12px) scale(.98)}}
@media(max-width:599px){
 .fd-pop--center{align-items:flex-end;padding:0}
 .fd-pop__box{width:100%;max-height:92dvh;border-radius:26px 26px 0 0;animation:fd-pop-sheet .38s cubic-bezier(.2,.9,.3,1) both}
 .fd-pop__box::before{content:"";display:block;width:40px;height:5px;margin:8px auto 0;border-radius:99px;background:var(--fd-border,#CBD5E1);position:relative;z-index:2}
 .fd-pop__img img{max-height:200px}.fd-pop__body{padding:16px 18px calc(18px + env(safe-area-inset-bottom,0px))}.fd-pop__h{font-size:20px}.fd-pop__tx{font-size:14px}
 .fd-pop__act{flex-direction:column}.fd-pop.is-out .fd-pop__box{animation:fd-pop-sheetout .22s ease both}
}
@keyframes fd-pop-sheet{from{transform:translateY(100%)}to{transform:none}}@keyframes fd-pop-sheetout{to{transform:translateY(100%)}}
/* alert bar */
.fd-pop--bar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--pb);color:var(--pf);border-bottom:1px solid color-mix(in srgb,var(--pc) 30%,transparent);font-size:14px;line-height:1.4;animation:fd-pop-bar .35s ease both}
.fd-pop--bar .fd-pop__ic{flex:none;color:var(--pc)}.fd-pop__bt{flex:1;min-width:0}.fd-pop__bt strong{font-weight:800}
.fd-pop__barlink{flex:none;font-weight:800;font-size:13px;color:var(--pc);text-decoration:underline;text-underline-offset:3px}
.fd-pop--bar .fd-pop__x{background:transparent;box-shadow:none;color:var(--pf);width:34px;height:34px}.fd-pop--bar .fd-pop__x:hover{background:rgba(0,0,0,.08);transform:none}
.fd-pop--bar .fd-pop__btn{background:var(--pc);color:#fff}:root[data-theme="dark"] .fd-pop--bar .fd-pop__btn{background:#2158E8;color:#fff}
.fd-pop--bar.is-out{animation:fd-pop-barout .22s ease both}@keyframes fd-pop-bar{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:none}}@keyframes fd-pop-barout{to{opacity:0;transform:translateY(-100%)}}
@media(max-width:599px){.fd-pop--bar{flex-wrap:wrap;padding:10px 12px}.fd-pop__bt{flex:1 1 calc(100% - 90px)}.fd-pop--bar .fd-pop__x{position:absolute;right:6px;top:6px}.fd-pop--bar{position:relative;padding-right:46px}}
/* small corner card */
.fd-pop--card{position:fixed;right:16px;bottom:16px;z-index:1900;width:min(360px,calc(100vw - 32px));display:flex;gap:12px;padding:12px;background:var(--fd-surface,#fff);color:var(--fd-text,#0F172A);border:1px solid var(--fd-border,#E2E8F0);border-radius:20px;box-shadow:0 18px 44px rgba(2,6,23,.3);animation:fd-pop-card .4s cubic-bezier(.2,.9,.3,1.1) both}
.fd-pop--card .fd-pop__x{position:absolute;right:8px;top:8px;width:32px;height:32px;background:var(--fd-surface-2,#F1F5F9);box-shadow:none}
.fd-pop__thumb{flex:none;width:76px;height:76px;border-radius:14px;overflow:hidden;background:var(--fd-surface-2,#EEF2FF)}.fd-pop__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.fd-pop__cb{flex:1;min-width:0;padding-right:26px}.fd-pop--card .fd-pop__h{margin:6px 0 4px;font-size:15px}.fd-pop--card .fd-pop__tx{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.fd-pop--card .fd-pop__pill{height:22px;font-size:11px}.fd-pop--card .fd-pop__act{margin-top:10px}.fd-pop--card .fd-pop__barlink{display:inline-block;margin-top:6px}
.fd-pop--card.is-out{animation:fd-pop-cardout .22s ease both}@keyframes fd-pop-card{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}@keyframes fd-pop-cardout{to{opacity:0;transform:translateY(16px)}}
@media(max-width:599px){.fd-pop--card{right:10px;left:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:auto}}
body.fd-pop-lock{overflow:hidden}
@media(prefers-reduced-motion:reduce){.fd-pop *,.fd-pop{animation:none!important;transition:none!important}}
