/* © 2026 mi-universo. All rights reserved. */
:root {
  color-scheme: dark;
  --bg: #0b1d2e;
  --fg: #e8f4f8;
  --muted: #9fb7c4;
  --tab: rgba(232, 244, 248, 0.08);
  --tab-on: #5fd4e8;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  gap: 14px;
}
.top,
.bottom {
  width: 100%;
  max-width: 560px;
  display: flex;
  justify-content: center;
}
.preset {
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--tab);
  border: 0;
  border-radius: 10px;
  height: 38px;
  padding: 0 12px;
  max-width: 100%;
}
.preset option {
  color: #222;
  background: #fff;
}
/* The switch between the two exercises: small text at the bottom, the current one highlighted. */
.switch {
  display: inline-flex;
  gap: 18px;
}
.switch button {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  min-height: 44px;
  padding: 0 8px;
  cursor: pointer;
}
.switch button[aria-selected='true'] {
  color: var(--tab-on);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.preset:focus-visible,
.switch button:focus-visible {
  outline: 2px solid var(--tab-on);
  outline-offset: 2px;
}
main {
  width: 100%;
  max-width: 560px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Auto margins centre the guide between the presets menu and the switch, and still let a guide taller than the
   screen scroll from its top instead of being cut off. */
main > section {
  margin-block: auto;
}
breath-guide,
stretch-guide {
  margin: 0 auto;
}
