.web-app-banner{
  --web-app-surface:#fff;
  --web-app-text:#19191d;
  --web-app-muted:#6f6d69;
  --web-app-line:color-mix(in srgb,var(--luca-purple) 24%,#fff);
  --web-app-shadow:0 14px 36px rgba(104,76,255,.12);
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-sizing:border-box;
  margin:60px auto 18px;
  padding:17px 18px;
  border:1px solid var(--web-app-line);
  border-radius:22px;
  background:var(--web-app-surface);
  color:var(--web-app-text);
  box-shadow:var(--web-app-shadow);
}

.web-app-banner>div:first-child{
  display:grid;
  min-width:0;
  flex:1 1 auto;
  gap:4px;
}

.web-app-banner .eyebrow{
  margin:0;
  color:var(--luca-purple);
}

.web-app-banner strong{
  color:var(--web-app-text);
  font-size:16px;
  line-height:1.25;
}

.web-app-banner span{
  color:var(--web-app-muted);
  font-size:13px;
}


.web-app-banner button{
  flex:0 0 auto;
  margin-top:0;
  white-space:nowrap;
}

.web-app-banner button.primary{
  padding:11px 17px;
  border:1px solid var(--luca-purple);
  border-radius:999px;
  background:var(--luca-purple);
  color:#fff;
  box-shadow:0 10px 24px rgba(104,76,255,.22);
}

.web-app-banner button.primary:hover,
.web-app-banner button.primary:focus-visible{
  background:#5639ea;
  border-color:#5639ea;
}

.web-app-instructions-close{cursor:pointer;}

.web-app-notification-prompt{
  display:inline-flex;
  min-height:38px;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--luca-purple);
  border-radius:999px;
  padding:0 14px;
  background:var(--luca-purple);
  color:#fff;
  font:700 12px/1 inherit;
  white-space:nowrap;
  box-shadow:0 8px 20px rgba(104,76,255,.2);
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}

.web-app-notification-prompt svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.8;
}

.web-app-notification-prompt:hover,
.web-app-notification-prompt:focus-visible{
  border-color:#5639ea;
  background:#5639ea;
  box-shadow:0 10px 24px rgba(104,76,255,.3);
}

.web-app-notification-prompt:active{
  transform:scale(.97);
}

.web-app-notification-prompt:focus-visible{
  outline:2px solid color-mix(in srgb,var(--luca-purple) 42%,transparent);
  outline-offset:2px;
}

body.night-mode .web-app-notification-prompt{
  border-color:#8a73ff;
  background:#7558ff;
}

body.night-mode .web-app-banner{
  --web-app-surface:#17171b;
  --web-app-text:#f7f7fb;
  --web-app-muted:#aaa6b0;
  --web-app-line:rgba(255,255,255,.14);
  --web-app-shadow:0 14px 36px rgba(0,0,0,.32);
}

body.night-mode .web-app-instructions-panel,
body.night-mode .web-app-status-grid article,
body.night-mode .web-app-preferences label{
  --web-app-surface:#17171b;
  --web-app-text:#f7f7fb;
  --web-app-muted:#aaa6b0;
  --web-app-line:rgba(255,255,255,.14);
}

body.night-mode .web-app-instructions-panel .secondary,
body.night-mode .web-app-preferences button.secondary,
body.night-mode .web-app-settings-action .secondary{
  border-color:rgba(168,140,255,.42);
  background:#211c2c;
  color:#c1b5ff;
}

body.night-mode .web-app-instructions-panel .secondary:hover,
body.night-mode .web-app-instructions-panel .secondary:focus-visible,
body.night-mode .web-app-preferences button.secondary:hover,
body.night-mode .web-app-preferences button.secondary:focus-visible,
body.night-mode .web-app-settings-action .secondary:hover,
body.night-mode .web-app-settings-action .secondary:focus-visible{
  background:#2a2240;
  color:#e3dcff;
}

body.night-mode .web-app-settings-action .form-note{
  color:#aaa6b0;
}

@media (min-width:720px){
  .web-app-notification-prompt{
    min-height:40px;
  }
}

@media (max-width:719px){
  .web-app-notification-prompt{
    width:38px;
    min-width:38px;
    height:38px;
    min-height:38px;
    flex:0 0 38px;
    padding:0;
  }

  .web-app-notification-prompt span{
    display:none;
  }
}

.web-app-instructions{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  align-items:end;
  background:rgba(20,15,35,.56);
  padding:18px;
}

.web-app-instructions[hidden]{
  display:none;
}

.web-app-instructions-panel{
  --web-app-surface:#fff;
  --web-app-text:#19191d;
  --web-app-muted:#6f6d69;
  --web-app-line:color-mix(in srgb,var(--luca-purple) 18%,#fff);
  position:relative;
  display:grid;
  gap:12px;
  width:min(100%,520px);
  margin:0 auto;
  padding:28px 22px calc(22px + env(safe-area-inset-bottom));
  border:1px solid var(--web-app-line);
  border-radius:24px 24px 0 0;
  background:var(--web-app-surface);
  color:var(--web-app-text);
  box-shadow:0 -16px 50px rgba(28,22,54,.22);
}

.web-app-instructions-panel h2,
.web-app-instructions-panel p{
  margin:0;
}

.web-app-instructions-panel .eyebrow{
  color:var(--luca-purple);
}

.web-app-instructions-panel h2{
  font-size:26px;
}

.web-app-instructions-panel p:not(.eyebrow){
  color:var(--web-app-muted);
  line-height:1.55;
}

.web-app-instructions-close{position:absolute;top:14px;right:16px;}

.web-app-instructions-panel .secondary,
.web-app-preferences button.secondary,
.web-app-settings-action .secondary{
  justify-self:start;
  margin-top:4px;
  padding:11px 17px;
  border:1px solid var(--luca-purple);
  border-radius:999px;
  background:#fff;
  color:var(--luca-purple);
  font-weight:800;
}

.web-app-instructions-panel .secondary:hover,
.web-app-instructions-panel .secondary:focus-visible,
.web-app-preferences button.secondary:hover,
.web-app-preferences button.secondary:focus-visible,
.web-app-settings-action .secondary:hover,
.web-app-settings-action .secondary:focus-visible{
  background:var(--luca-purple-soft);
  color:#5639ea;
}

.web-app-settings{
  display:grid;
  gap:22px;
}

.web-app-settings .account-checkin-title{
  margin-bottom:0;
}

.web-app-status-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.web-app-settings-layout{
  display:grid;
  gap:28px;
  align-items:start;
}

.web-app-settings-main{
  display:grid;
  gap:22px;
  min-width:0;
}

.web-app-status-grid article{
  --web-app-surface:#fff;
  --web-app-text:#19191d;
  --web-app-line:color-mix(in srgb,var(--luca-purple) 18%,#fff);
  display:grid;
  gap:6px;
  padding:16px;
  border:1px solid var(--web-app-line);
  border-radius:18px;
  background:var(--web-app-surface);
  color:var(--web-app-text);
  box-shadow:0 10px 28px rgba(28,22,54,.06);
}

.web-app-status-grid small{
  color:var(--luca-purple);
  font-size:10px;
  letter-spacing:.12em;
  font-weight:800;
}

.web-app-status-grid strong{
  color:var(--web-app-text);
  font-size:17px;
}

.web-app-preferences{
  display:grid;
  gap:12px;
  max-width:560px;
}

.web-app-preferences .eyebrow{
  margin-bottom:0;
  color:var(--luca-purple);
}

.web-app-preferences label{
  --web-app-surface:#fff;
  --web-app-text:#19191d;
  --web-app-line:color-mix(in srgb,var(--luca-purple) 18%,#fff);
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 15px;
  border:1px solid var(--web-app-line);
  border-radius:16px;
  background:var(--web-app-surface);
  color:var(--web-app-text);
}

.web-app-preferences input{
  width:auto;
  margin:0;
  accent-color:var(--luca-purple);
}

.web-app-preferences button{
  justify-self:start;
  margin-top:4px;
}

.web-app-preferences .web-app-preferences-submit{
  width:100%;
  min-height:46px;
  margin-top:6px;
  border:1px solid var(--luca-purple);
  border-radius:14px;
  background:var(--luca-purple);
  color:#fff;
  -webkit-text-fill-color:#fff;
  box-shadow:0 12px 24px rgba(104,76,255,.22);
  font-weight:800;
}

.web-app-preferences .web-app-preferences-submit:hover,
.web-app-preferences .web-app-preferences-submit:focus-visible{
  border-color:#5639ea;
  background:#5639ea;
  color:#fff;
  -webkit-text-fill-color:#fff;
}

.web-app-settings-action{
  display:grid;
  gap:10px;
  justify-items:start;
}

.web-app-settings-action .form-note{
  max-width:540px;
  margin:0;
  color:#6f6d69;
}

.web-app-settings-action button[disabled]{
  opacity:.5;
  cursor:not-allowed;
}

.web-app-install-guide{
  min-width:0;
  padding:0;
  border-radius:22px;
  background:#f8f6ff;
  overflow:hidden;
}

.web-app-install-guide img{
  display:block;
  width:100%;
  height:auto;
}

@media(min-width:960px){
  .web-app-settings-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:32px;
  }

}

@media(max-width:560px){
  .web-app-banner{
    align-items:flex-start;
    margin-inline:14px;
    padding:15px;
  }


  .web-app-banner .primary{
    padding-inline:14px;
  }

  .web-app-status-grid{
    grid-template-columns:1fr;
  }

  .web-app-instructions{
    padding:0;
  }
}
