/* Scoped calendar controls: compatible with HKS light/dark themes and Genius redraws. */
html body .hks-cal-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;border:1px solid #c8ddec!important;border-radius:12px!important;background:#eff7ff!important;color:#096aac!important;box-shadow:none!important;cursor:pointer!important;font:700 13px/1.3 "Oxanium",Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;padding:11px 14px!important;min-height:42px!important;margin:0!important;transition:background .18s,transform .18s,box-shadow .18s!important;flex-shrink:0!important;width:auto!important;}
html body .hks-cal-trigger svg{width:20px!important;height:20px!important;display:block!important;flex:none!important;color:inherit!important;}
html body .hks-cal-trigger:hover{background:#dcefff!important;box-shadow:0 5px 18px #008ad31c!important;transform:translateY(-1px);}
html body .hks-cal-trigger:focus-visible,html body .hks-cal-dialog :focus-visible{outline:3px solid #1aa8ef!important;outline-offset:3px!important;}
html body .hks-schedule-explorer__heading{flex-wrap:wrap;}
html body .hks-schedule-explorer__heading .hks-cal-league{margin-left:auto!important;}



html body #spil_w_h .hks-cal-card{position:relative!important;}
html body #spil_w_h .hks-cal-match{position:absolute!important;right:18px!important;top:50%!important;transform:translateY(-50%)!important;padding:10px!important;width:42px!important;height:42px!important;z-index:8!important;}
html body #spil_w_h .hks-cal-card .sched-teams{max-width:calc(100% - 72px)!important;}
html body .hks-cal-detail{display:flex!important;justify-content:flex-end!important;padding:14px 18px!important;grid-column:1/-1!important;clear:both!important;}
html.darklup-dark-mode-enabled body .hks-cal-trigger{background:#103953!important;border-color:#2b5b77!important;color:#8fd8ff!important;}
html.darklup-dark-mode-enabled body .hks-cal-trigger:hover{background:#194d6c!important;}
/* Neutralize Galactic's animated button spans only inside the new calendar UI. */
html body #hks-calendar-dialog :where(button,button span,button strong,button small){position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;clip:auto!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;}
html body #hks-calendar-dialog button:before,html body #hks-calendar-dialog button:after,html body #page #spil_w_h button.hks-cal-trigger:before,html body #page #spil_w_h button.hks-cal-trigger:after{display:none!important;content:none!important;}
html body #page #spil_w_h button.hks-cal-trigger>span{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;display:inline!important;white-space:nowrap!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;color:inherit!important;}
html body #page #spil_w_h button.hks-cal-league{min-width:205px!important;overflow:visible!important;}




@media(max-width:700px){html body #page #spil_w_h button.hks-cal-league{min-width:195px!important;}}
/* Native dialog lives in the top layer, above theme overlays. */
html body #hks-calendar-dialog.hks-cal-dialog{--hc-ink:#102e49;--hc-muted:#5c7285;--hc-panel:#fff;--hc-line:#dfe9f1;--hc-soft:#f2f7fb;--hc-accent:#0877be;position:fixed!important;inset:0!important;margin:auto!important;width:580px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 48px)!important;height:fit-content!important;overflow:auto!important;padding:28px!important;border:1px solid var(--hc-line)!important;border-radius:24px!important;background:var(--hc-panel)!important;color:var(--hc-ink)!important;box-shadow:0 32px 100px #00182755!important;font-family:"Oxanium",Arial,sans-serif!important;text-align:left!important;box-sizing:border-box!important;overscroll-behavior:contain;}
html body #hks-calendar-dialog.hks-cal-dialog:not([open]){display:none!important;}
html body #hks-calendar-dialog.hks-cal-dialog[open]{display:block!important;animation:hks-cal-in .2s ease-out;}
html body #hks-calendar-dialog.hks-cal-dialog::backdrop{background:rgba(2,15,30,.67);backdrop-filter:blur(5px);}
html body #hks-calendar-dialog.hks-cal-dialog *{box-sizing:border-box!important;font-family:inherit!important;letter-spacing:normal!important;text-transform:none!important;}
html body #hks-calendar-dialog.hks-cal-dialog svg{display:block!important;width:22px!important;height:22px!important;flex:none!important;}
html body #hks-calendar-dialog.hks-cal-dialog p,html body #hks-calendar-dialog.hks-cal-dialog h2,html body #hks-calendar-dialog.hks-cal-dialog h3{margin:0!important;background:none!important;padding:0!important;border:0!important;}
html body #hks-calendar-dialog .hks-cal-top{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:20px!important;}
html body #hks-calendar-dialog .hks-cal-emblem{display:grid!important;place-items:center!important;width:50px!important;height:50px!important;background:linear-gradient(140deg,#0d8cdd,#0664b0)!important;border-radius:15px!important;color:#fff!important;box-shadow:0 8px 22px #0877be2b!important;}
html body #hks-calendar-dialog .hks-cal-emblem svg{width:27px!important;height:27px!important;}
html body #hks-calendar-dialog .hks-cal-close{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;padding:8px!important;background:var(--hc-soft)!important;border:1px solid var(--hc-line)!important;border-radius:50%!important;color:var(--hc-muted)!important;cursor:pointer!important;box-shadow:none!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-eyebrow{font-size:10px!important;font-weight:800!important;letter-spacing:2px!important;color:var(--hc-accent)!important;margin-bottom:8px!important;}
html body #hks-calendar-dialog.hks-cal-dialog h2{font-size:28px!important;line-height:1.18!important;font-weight:750!important;color:var(--hc-ink)!important;letter-spacing:-.7px!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-subtitle{font-size:14px!important;line-height:1.5!important;color:var(--hc-muted)!important;margin-top:10px!important;}
html body #hks-calendar-dialog .hks-cal-body{margin-top:22px!important;}
html body #hks-calendar-dialog .hks-cal-summary{display:flex!important;flex-direction:column!important;gap:5px!important;border:1px solid var(--hc-line)!important;border-left:3px solid #159bdd!important;padding:14px 16px!important;border-radius:10px!important;background:var(--hc-soft)!important;margin-bottom:18px!important;}
html body #hks-calendar-dialog .hks-cal-summary strong{font-size:14px!important;color:var(--hc-ink)!important;line-height:1.4!important;}
html body #hks-calendar-dialog .hks-cal-summary span{font-size:12px!important;color:var(--hc-muted)!important;line-height:1.5!important;}
html body #hks-calendar-dialog .hks-cal-modes{display:flex!important;padding:4px!important;background:var(--hc-soft)!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;gap:4px!important;}
html body #hks-calendar-dialog .hks-cal-modes button{flex:1!important;min-width:0!important;margin:0!important;border:0!important;border-radius:8px!important;padding:10px 7px!important;min-height:38px!important;font-size:12px!important;font-weight:700!important;line-height:1.3!important;color:var(--hc-muted)!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important;}
html body #hks-calendar-dialog .hks-cal-modes button.is-selected{background:var(--hc-panel)!important;color:var(--hc-accent)!important;box-shadow:0 2px 8px #082d4c12!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-help{font-size:12px!important;line-height:1.65!important;color:var(--hc-muted)!important;margin:13px 0!important;}
html body #hks-calendar-dialog .hks-cal-providers{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;}
html body #hks-calendar-dialog .hks-cal-provider{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;width:100%!important;min-height:70px!important;padding:12px!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;background:var(--hc-panel)!important;text-decoration:none!important;color:var(--hc-ink)!important;margin:0!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;transition:border-color .15s,background .15s!important;}
html body #hks-calendar-dialog .hks-cal-provider:hover{border-color:#58b8ec!important;background:var(--hc-soft)!important;}
html body #hks-calendar-dialog .hks-cal-brand{display:grid!important;place-items:center!important;width:33px!important;height:33px!important;flex:0 0 33px!important;border-radius:9px!important;background:#ecf5ff!important;color:#167acb!important;font:bold 20px/1 Arial,sans-serif!important;}
html body #hks-calendar-dialog .hks-cal-brand.hks-cal-google{color:#4285f4!important;background:#f0f5ff!important;border-bottom:3px solid #34a853!important;}
html body #hks-calendar-dialog .hks-cal-brand.hks-cal-outlook{background:#eaf4ff!important;color:#0677cb!important;}
html body #hks-calendar-dialog .hks-cal-brand.hks-cal-office{background:#fff0eb!important;color:#cf492c!important;}
html body #hks-calendar-dialog .hks-cal-brand.hks-cal-apple{background:#fff2f2!important;color:#d3434c!important;font-size:17px!important;border-top:5px solid #e85259!important;}
html body #hks-calendar-dialog .hks-cal-brand.hks-cal-yahoo{background:#f6eeff!important;color:#6b19bc!important;}
html body #hks-calendar-dialog .hks-cal-provider-text{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;}
html body #hks-calendar-dialog .hks-cal-provider strong{font-size:14px!important;line-height:1.3!important;font-weight:750!important;color:var(--hc-ink)!important;}
html body #hks-calendar-dialog .hks-cal-provider small{font-size:11px!important;line-height:1.4!important;color:var(--hc-muted)!important;}
html body #hks-calendar-dialog .hks-cal-arrow{margin-left:auto!important;color:var(--hc-muted)!important;}
html body #hks-calendar-dialog .hks-cal-arrow svg{width:16px!important;height:16px!important;}
html body #hks-calendar-dialog .hks-cal-copy,html body #hks-calendar-dialog .hks-cal-primary{display:block!important;width:100%!important;padding:12px!important;margin:14px 0 0!important;min-height:44px!important;border:1px solid var(--hc-line)!important;background:var(--hc-soft)!important;color:var(--hc-accent)!important;font-size:12px!important;font-weight:700!important;line-height:1.5!important;border-radius:10px!important;cursor:pointer!important;box-shadow:none!important;}
html body #hks-calendar-dialog .hks-cal-primary{background:#0877be!important;color:#fff!important;border-color:#0877be!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-fine{font-size:10px!important;line-height:1.6!important;color:var(--hc-muted)!important;margin-top:12px!important;}
html body #hks-calendar-dialog .hks-cal-footer{display:flex!important;align-items:center!important;gap:7px!important;margin-top:21px!important;padding-top:17px!important;border-top:1px solid var(--hc-line)!important;color:var(--hc-muted)!important;font-size:10px!important;}
html body #hks-calendar-dialog .hks-cal-dot{width:6px!important;height:6px!important;display:block!important;border-radius:50%!important;background:#27a777!important;box-shadow:0 0 0 3px #27a77718!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-notice{padding:12px!important;background:#fff5d9!important;border:1px solid #ecd39a!important;border-radius:10px!important;color:#795300!important;font-size:12px!important;line-height:1.6!important;margin-bottom:14px!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-loading{font-size:14px!important;color:var(--hc-muted)!important;padding:20px 0!important;}
html body #hks-calendar-dialog .hks-cal-back{border:0!important;padding:0!important;background:none!important;color:var(--hc-accent)!important;font-size:12px!important;cursor:pointer!important;box-shadow:none!important;}
html body #hks-calendar-dialog.hks-cal-dialog .hks-cal-step-title{font-size:20px!important;line-height:1.3!important;margin-top:18px!important;color:var(--hc-ink)!important;display:block!important;}
html body #hks-calendar-dialog .hks-cal-steps{list-style:decimal!important;margin:16px 0!important;padding-left:23px!important;}
html body #hks-calendar-dialog .hks-cal-steps li{font-size:13px!important;line-height:1.7!important;color:var(--hc-muted)!important;padding:0 0 10px 4px!important;}
html body #hks-calendar-dialog .hks-cal-url{display:block!important;width:100%!important;min-width:0!important;padding:12px!important;background:var(--hc-soft)!important;color:var(--hc-ink)!important;border:1px solid var(--hc-line)!important;border-radius:8px!important;font-size:11px!important;box-shadow:none!important;}
html body #hks-calendar-dialog .hks-cal-open{display:block!important;text-align:center!important;font-size:13px!important;margin-top:17px!important;color:var(--hc-accent)!important;text-decoration:none!important;}
html.darklup-dark-mode-enabled body #hks-calendar-dialog.hks-cal-dialog{--hc-ink:#edf6ff;--hc-muted:#a6bcd0;--hc-panel:#102c43;--hc-line:#29475e;--hc-soft:#0b2236;--hc-accent:#6dcbff;box-shadow:0 32px 100px #0008!important;}
@keyframes hks-cal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){html body .hks-schedule-explorer__heading .hks-cal-league{margin-top:8px!important;font-size:12px!important;}html body #spil_w_h .hks-cal-match{right:10px!important;width:38px!important;height:38px!important;min-height:38px!important;padding:8px!important;}html body #spil_w_h .hks-cal-card .sched-teams{max-width:calc(100% - 52px)!important;}}
@media(max-width:480px){html body #hks-calendar-dialog.hks-cal-dialog{padding:22px 18px!important;border-radius:20px!important;max-height:calc(100dvh - 24px)!important;max-width:calc(100vw - 20px)!important;}html body #hks-calendar-dialog.hks-cal-dialog h2{font-size:25px!important;}html body #hks-calendar-dialog .hks-cal-provider{padding:10px 8px!important;gap:7px!important;min-height:70px!important;}html body #hks-calendar-dialog .hks-cal-brand{width:27px!important;height:30px!important;flex-basis:27px!important;font-size:18px!important;}html body #hks-calendar-dialog .hks-cal-provider strong{font-size:11px!important;}html body #hks-calendar-dialog .hks-cal-provider small{font-size:9px!important;}html body #hks-calendar-dialog .hks-cal-arrow{display:none!important;}html body #spil_w_h .hks-cal-match{top:auto!important;bottom:10px!important;transform:none!important;}html body #hks-calendar-dialog .hks-cal-top{margin-bottom:16px!important;}}
@media(prefers-reduced-motion:reduce){html body .hks-cal-trigger,html body #hks-calendar-dialog .hks-cal-provider,html body #hks-calendar-dialog.hks-cal-dialog[open]{transition:none!important;animation:none!important;}}
