:root {
  color-scheme: light;
  --bg: #ffffff;
  --sheet: #f4f4f4;
  --ink: #111111;
  --muted: #9b9b9b;
  --plate: #6d7a86;
  --plate-connected: #3f7a5a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "FamiljenGrotesk-Variable", "FamiljenGrotesk-Regular",
    sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  width: min(26.75rem, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 2.6rem 1.7rem 1.4rem;
  background: var(--sheet);
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

h1 {
  margin: 0;
  font-family: "Array-Regular", sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.mark {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
}

.stage-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0 1.4rem;
}

esp-web-install-button {
  display: block;
}

.stage {
  appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--plate);
  cursor: pointer;
  transition: color 0.35s ease;
}

.sheet.is-connected .stage {
  color: var(--plate-connected);
}

.stage:focus {
  outline: none;
}

.stage:focus-visible {
  outline: none;
}

.floppy {
  display: block;
  width: min(16.5rem, 72vw);
  height: auto;
}

.floppy text:first-of-type {
  font-family: "Array-Regular", sans-serif;
}

.status {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  min-height: 1.2em;
}

.sheet.is-connected .status {
  color: var(--plate-connected);
  font-family: "Array-Regular", sans-serif;
  font-size: 0.9rem;
}

footer {
  margin-top: auto;
  padding-top: 4.5rem;
}

footer p {
  margin: 0;
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

footer .help {
  margin-top: 1.6rem;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

span[slot="unsupported"],
span[slot="not-allowed"] {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}
