*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

html, #view,.view {
    height: 100%;
}
.view {
  display: grid;
  grid-template-rows: auto 1fr;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  background-color: #f7f7f7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.app {
    max-width: 480px;
    margin: 0 auto;
    background-color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.main, .footer {
  padding: 8px 16px;
  max-width: 100vw;
}
.container {
    padding: 8px 16px;
}
.popover {
    height: 100%;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    display: grid;
    grid-template-rows: 20px 1fr;
    backdrop-filter: blur(1px);
}
.popover.mini {
  grid-template-rows: auto 200px;
}
.popover .content {
    width: 100%;
    background: black;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}
.app-navigation {
    position: absolute;
    bottom: 0;
    display: flex;
    padding: 16px;
    gap: 16px;
}
.top-navigation {
        display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;

}
.view .top-navigation {
  padding: 16px;
}
.add-workout {
    display: grid;
    gap:4px;
}
.field {
        display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.field:has(input) {
  display: flex;
}
.field input {
  flex : 1 1 40%;
    max-width: 40%;

}
.list {
    display: grid;
    gap: 8px;
}

.editset {
    display: grid;
}
.oefening-view .actions {
    display: flex;
    justify-content: space-between;
}
.bigbuttons {
  display: grid;
  gap: 4px;
}

.setlogging {
    display: grid;
    gap:4px;
}

.active .workout {
  display: flex;
  justify-content: space-between;
}
.stats {
  display: grid;
  gap: 8px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-card {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.bigbuttons button, button.cta {
  background-color: gainsboro;
  color: black;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 32px;
  font-weight: 500;
  max-width: 100%;

  width: 100%;
  border: none;
}