/* MulaTask PWA Helper — premium navy + orange/gold theme */
:root{
  --mt-pwa-navy:#081a3a;
  --mt-pwa-navy2:#102b5c;
  --mt-pwa-surface:#ffffff;
  --mt-pwa-ink:#0b1733;
  --mt-pwa-muted:#65708a;
  --mt-pwa-line:#dfe5ef;
  --mt-pwa-orange:#ff7a00;
  --mt-pwa-orange2:#ff4f00;
  --mt-pwa-gold:#ffc62a;
  --mt-pwa-shadow:0 18px 55px rgba(4,18,48,.20);
}

#mulatask-install[hidden]{display:none!important}

.mt-pwa-install{
  position:fixed;
  left:0;
  right:0;
  top:72px;
  z-index:2147483000;
  padding:0 16px;
  display:flex;
  justify-content:center;
  pointer-events:none;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.mt-pwa-card{
  position:relative;
  width:min(680px,100%);
  min-height:70px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px 10px 10px;
  box-sizing:border-box;
  color:var(--mt-pwa-ink);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(8,26,58,.10);
  border-radius:18px;
  box-shadow:var(--mt-pwa-shadow);
  pointer-events:auto;
  overflow:hidden;
}

.mt-pwa-card:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:3px;
  background:linear-gradient(90deg,var(--mt-pwa-orange),var(--mt-pwa-gold),var(--mt-pwa-orange2));
}

.mt-pwa-accent{
  width:5px;
  align-self:stretch;
  flex:0 0 5px;
  border-radius:8px;
  background:linear-gradient(180deg,var(--mt-pwa-gold),var(--mt-pwa-orange),var(--mt-pwa-orange2));
}

.mt-pwa-icon{
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:14px;
  object-fit:cover;
  box-shadow:0 8px 20px rgba(255,106,0,.22);
}

.mt-pwa-copy{min-width:0;flex:1}
.mt-pwa-kicker{
  display:block;
  margin-bottom:2px;
  color:var(--mt-pwa-orange);
  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.mt-pwa-copy strong{
  display:block;
  color:var(--mt-pwa-ink);
  font-size:13px;
  line-height:1.2;
  font-weight:850;
}
.mt-pwa-copy p{
  margin:3px 0 0;
  color:var(--mt-pwa-muted);
  font-size:9px;
  line-height:1.35;
}

.mt-pwa-action{
  border:0;
  border-radius:22px;
  background:linear-gradient(100deg,var(--mt-pwa-orange),var(--mt-pwa-orange2));
  color:#fff;
  padding:10px 15px;
  font:800 9px/1 Inter,system-ui,sans-serif;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 9px 22px rgba(255,90,0,.22);
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.mt-pwa-action:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:0 12px 25px rgba(255,90,0,.27);
}

.mt-pwa-x{
  width:29px;
  height:29px;
  border:1px solid var(--mt-pwa-line);
  background:var(--mt-pwa-surface);
  color:#68728a;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 29px;
}

.mt-pwa-action:focus-visible,.mt-pwa-x:focus-visible{
  outline:2px solid var(--mt-pwa-orange);
  outline-offset:2px;
}

/* MulaTask theme switcher compatibility. */
html.mulatask-dark .mt-pwa-card{
  color:#f7f9ff;
  background:rgba(8,26,58,.97);
  border-color:rgba(255,255,255,.12);
  box-shadow:0 20px 55px rgba(0,0,0,.42);
}
html.mulatask-dark .mt-pwa-copy strong{color:#fff}
html.mulatask-dark .mt-pwa-copy p{color:#b7c1d6}
html.mulatask-dark .mt-pwa-x{
  background:#102b5c;
  border-color:#28416d;
  color:#d9e0ee;
}

@media(prefers-color-scheme:dark){
  html:not(.mulatask-light) .mt-pwa-card{
    color:#f7f9ff;
    background:rgba(8,26,58,.97);
    border-color:rgba(255,255,255,.12);
    box-shadow:0 20px 55px rgba(0,0,0,.42);
  }
  html:not(.mulatask-light) .mt-pwa-copy strong{color:#fff}
  html:not(.mulatask-light) .mt-pwa-copy p{color:#b7c1d6}
  html:not(.mulatask-light) .mt-pwa-x{
    background:#102b5c;
    border-color:#28416d;
    color:#d9e0ee;
  }
}

@media(max-width:700px){
  .mt-pwa-install{top:62px;padding:0 9px}
  .mt-pwa-card{min-height:64px;gap:8px;padding:8px 8px 9px;border-radius:16px}
  .mt-pwa-accent{width:3px;flex-basis:3px}
  .mt-pwa-icon{width:40px;height:40px;flex-basis:40px;border-radius:12px}
  .mt-pwa-kicker{font-size:7px}
  .mt-pwa-copy strong{font-size:10.5px}
  .mt-pwa-copy p{font-size:7.5px;line-height:1.3}
  .mt-pwa-action{padding:9px 11px;font-size:8px}
  .mt-pwa-x{width:25px;height:25px;flex-basis:25px;font-size:16px}
}

@media(max-width:390px){
  .mt-pwa-card{gap:6px;padding:7px}
  .mt-pwa-icon{width:36px;height:36px;flex-basis:36px}
  .mt-pwa-copy p{display:none}
  .mt-pwa-action{padding:8px 9px}
  .mt-pwa-x{width:23px;height:23px;flex-basis:23px}
}
