html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f7f4ee;
  font-family: system-ui, sans-serif;
}
#root {
  display: flex;
  height: 100%;
  height: 100dvh;
}
html,
body {
  overscroll-behavior: none;
}
.webapp-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}
.webapp-content {
  display: flex;
  flex: 1;
  min-height: 0;
}
input,
textarea,
select {
  font-size: max(16px, 1em) !important;
}
button,
a,
[role="button"] {
  touch-action: manipulation;
}
button,
[role="button"] {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button:active,
a:active {
  opacity: 0.72;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.webapp-install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px
    max(16px, env(safe-area-inset-right));
  color: #4e3426;
  background: #e8e2d6;
  font-size: 13px;
  line-height: 1.4;
}
.webapp-install button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 26px;
}
#webapp-alert {
  width: min(420px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #e8e2d6;
  border-radius: 18px;
  background: #f7f4ee;
  color: #1f2624;
}
#webapp-alert::backdrop {
  background: rgb(0 0 0 / 0.45);
}
#webapp-alert h2 {
  margin-top: 0;
  font-size: 22px;
}
#webapp-alert p {
  white-space: pre-wrap;
  line-height: 1.5;
}
.webapp-alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.webapp-alert-actions button {
  min-height: 48px;
  border: 1px solid #4e3426;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  color: #4e3426;
  background: transparent;
}
.webapp-alert-actions button.destructive {
  color: #b42318;
  border-color: currentColor;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #4e3426;
  outline-offset: 3px;
}
