/* MiKO News draw-date synchronization. Responsive across compact phones to desktop. */
.miko-lottery-hub--check .miko-lhub-draw-switcher{
  display:grid;grid-template-columns:minmax(180px,1fr) minmax(155px,285px) auto;
  align-items:center;gap:11px 16px;position:relative;margin:0 0 16px;
  min-width:0;padding:16px 18px 12px;
  background:linear-gradient(110deg,#fff 0%,#f3f9ff 65%,#fff0f8);
  border:1px solid #d4e5f9;border-radius:19px;
  box-shadow:0 6px 20px rgba(33,94,170,.07)
}
.miko-lhub-draw-switcher__heading{display:flex;align-items:center;gap:11px;min-width:0}
.miko-lhub-draw-switcher__icon{
  flex:0 0 40px;display:grid;place-items:center;width:40px;height:40px;
  background:#e6f1ff;border:1px solid #cae0fa;border-radius:12px;font-size:22px
}
.miko-lhub-draw-switcher__heading>div{min-width:0}
.miko-lhub-draw-switcher__heading strong{display:block;color:#194b84;font-size:14px;font-weight:950}
.miko-lhub-draw-switcher__heading small{display:block;color:#7289a5;font-size:11px;line-height:1.65;margin-top:2px}
.miko-lhub-draw-switcher__select-wrap{display:flex;align-items:center;position:relative;min-width:0}
.miko-lhub-draw-switcher__select-wrap select{
  appearance:none;display:block;width:100%;max-width:100%;min-width:0;height:46px;
  padding:10px 40px 10px 15px;border:1.5px solid #a5cff7;
  border-radius:12px;background:#fff;color:#1d518b;
  font:850 13px/1.4 "Noto Sans Thai",Tahoma,sans-serif;
  box-shadow:0 2px 7px rgba(16,75,155,.06);cursor:pointer
}
.miko-lhub-draw-switcher__select-wrap>span:last-child{
  position:absolute;right:14px;top:50%;transform:translateY(-56%);
  color:#2d74ba;font-size:21px;pointer-events:none
}
.miko-lhub-draw-switcher__select-wrap select:focus-visible,
.miko-lhub-draw-switcher__latest:focus-visible,
.miko-full-board__image-btn:focus-visible{outline:3px solid #82bfff;outline-offset:2px}
.miko-lhub-draw-switcher__latest{
  display:flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;max-width:100%;padding:11px 17px;
  border:1px solid #f0acd1;border-radius:12px;
  color:#d92879;background:#fff5fb;
  font:900 12px/1.35 "Noto Sans Thai",Tahoma,sans-serif;
  white-space:nowrap;cursor:pointer;
  transition:transform .15s,background .15s
}
.miko-lhub-draw-switcher__latest:hover{background:#ffeaf5;transform:translateY(-1px)}
.miko-lhub-draw-switcher__sync{grid-column:1/-1;display:flex;align-items:center;gap:7px;
  color:#5b7a9d;font-size:11px;line-height:1.5;margin-left:3px}
.miko-lhub-sync-dot{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#30b68c;
 box-shadow:0 0 0 4px rgba(60,197,151,.1)}
.miko-lhub-draw-switcher.is-loading .miko-lhub-sync-dot{
  background:#287ac9;animation:miko-sync-pulse 1.4s ease-in-out infinite
}
@keyframes miko-sync-pulse{0%,100%{opacity:.5;box-shadow:0 0 0 2px rgba(53,146,234,.15)}
 50%{opacity:1;box-shadow:0 0 0 7px rgba(53,146,234,.08)}}
.miko-full-board__buttons{flex-wrap:wrap;min-width:0}
.miko-full-board__image-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;min-width:0}
.miko-full-board__image-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:41px;padding:10px 14px;border:1px solid transparent;
  border-radius:11px;background:linear-gradient(115deg,#fb479b,#df187a);
  font:900 11px/1.35 "Noto Sans Thai",Tahoma,sans-serif;color:#fff;
  cursor:pointer;box-shadow:0 4px 12px rgba(225,41,126,.15);
  transition:transform .17s ease,filter .17s ease
}
.miko-full-board__image-btn--download{background:#fff;border-color:#a8cff5;color:#175d9d;box-shadow:none}
.miko-full-board__image-btn:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.06)}
.miko-full-board__image-btn:disabled{
  cursor:not-allowed;opacity:.54;background:#eaf0f6;border-color:#d5e0eb;
  color:#798aa1;box-shadow:none
}
.miko-full-image-status{flex:1 1 100%;font-size:10px!important;line-height:1.6!important;
 color:#497b8c!important;margin:3px 0 0!important;text-align:right}
.miko-full-image-status.is-error{color:#98634c!important}
@media(max-width:900px){
 .miko-lottery-hub--check .miko-lhub-draw-switcher{grid-template-columns:minmax(0,1fr) minmax(160px,270px)}
 .miko-lhub-draw-switcher__latest{grid-column:2;grid-row:2;justify-self:end}
 .miko-lhub-draw-switcher__sync{grid-column:1;grid-row:2;margin:0}
 .miko-full-board__buttons{justify-content:center}
 .miko-full-image-status{text-align:center}
}
@media(max-width:620px){
 .miko-lottery-hub--check .miko-lhub-draw-switcher{
   grid-template-columns:minmax(0,1fr) auto;
   gap:10px;padding:13px;border-radius:15px
 }
 .miko-lhub-draw-switcher__heading{grid-column:1/-1}
 .miko-lhub-draw-switcher__select-wrap{grid-column:1;grid-row:2}
 .miko-lhub-draw-switcher__latest{grid-column:2;grid-row:2}
 .miko-lhub-draw-switcher__sync{grid-column:1/-1;grid-row:3}
 .miko-lhub-draw-switcher__select-wrap select{height:44px;font-size:12px;padding-inline:11px 28px}
 .miko-lhub-draw-switcher__latest{min-height:44px;padding:9px 10px;font-size:11px}
 .miko-full-board__image-actions{width:100%}
 .miko-full-board__image-btn{flex:1 1 auto;min-width:0;padding:10px}
}
@media(max-width:360px){
 .miko-lottery-hub--check .miko-lhub-draw-switcher{grid-template-columns:1fr}
 .miko-lhub-draw-switcher__heading,.miko-lhub-draw-switcher__select-wrap,.miko-lhub-draw-switcher__latest,.miko-lhub-draw-switcher__sync{
  grid-column:1;grid-row:auto
 }
 .miko-lhub-draw-switcher__latest{justify-self:stretch;width:100%}
 .miko-full-board__image-actions{flex-direction:column;align-items:stretch}
 .miko-full-board__image-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
 .miko-lhub-draw-switcher.is-loading .miko-lhub-sync-dot{animation:none}
 .miko-full-board__image-btn{transition:none!important}
}
