html, body { width: 100%; height: 100%; }
body {
  margin: 0; overflow: hidden; display: flex; align-items: center;
  justify-content: center; background: #eaf0ec; font-family: system-ui, sans-serif;
}
#app-shell {
  width: 100%; max-width: 560px; height: 100%; height: 100dvh;
  display: flex; flex-direction: column; background: #f4f7f5;
  overflow: hidden; position: relative;
}
#install-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 16px; color: #2c604a; background: #f4f7f5;
  border-bottom: 1px solid #2c604a22; flex: 0 0 auto;
}
#install-bar[hidden], #install-dialog [hidden] { display: none; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.app-brand img { width: 28px; height: 28px; }
#install-button, #install-close {
  font: inherit; font-weight: 650; border-radius: 999px; cursor: pointer;
  padding: 9px 16px; border: 1px solid #2c604a40; background: #e5eee7; color: #2c604a;
}
#install-button:focus-visible, #install-close:focus-visible {
  outline: 3px solid #79539d; outline-offset: 3px;
}
#install-button:disabled { opacity: .6; cursor: wait; }
#app-host { position: relative; flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
#install-dialog {
  max-width: 360px; width: calc(100% - 64px); padding: 24px;
  color: #24382c; background: #f4f7f5; border: 1px solid #2c604a33; border-radius: 24px;
  line-height: 1.6; box-shadow: 0 16px 64px #12271b33;
}
#install-dialog::backdrop { background: #12271b66; }
#install-dialog h2 { font-size: 1.25rem; margin-top: 0; }
#install-dialog form { margin-top: 20px; text-align: right; }
@media (min-width: 800px) {
  #app-shell {
    height: calc(100% - 32px); height: calc(100dvh - 32px); max-height: 960px;
    border-radius: 24px; box-shadow: 0 12px 56px #24382c22;
    border: 1px solid #2c604a22;
  }
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  #install-bar { display: none; }
}
