/* Base: colores, reset, tipografía y estructura de la app (encabezado, contenido, menú inferior). */

:root {
  --teal: #078985;
  --dark: #163342;
  --muted: #6f8590;
  --bg: #f4f8f8;
  --line: #e2eded;
  --coral: #f57970;
  --gold: #fff3d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background: var(--bg);
  color: var(--dark);
}

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

button {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
}

.app {
  max-width: 560px;
  margin: auto;
  min-height: 100dvh;
  background: #f8fbfb;
  padding-bottom: 100px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f8fbfbeF;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand span {
  color: var(--teal);
}

.content {
  padding: 17px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}

h2 {
  margin: 4px 0 15px;
  font-size: 23px;
  letter-spacing: -.7px;
}

h3 {
  font-size: 16px;
  margin: 22px 0 11px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stack {
  display: grid;
  gap: 9px;
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px,100%);
  background: #ffffffee;
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(5,1fr);
  border-top: 1px solid var(--line);
  padding: 8px 3px max(9px,env(safe-area-inset-bottom));
  z-index: 6;
}

.nav button {
  border: 0;
  background: transparent;
  color: #7e9198;
  padding: 6px 0;
  font-size: 10px;
  font-weight: 750;
}

.nav button span {
  display: block;
  font-size: 21px;
  margin-bottom: 3px;
}

.nav button.active {
  color: var(--teal);
}

.mutedNote {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.spread {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#fileImport {
  display: none;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.headerActions .iconBtn {
  padding: 9px 10px;
  white-space: nowrap;
}

.settingsBtn {
  min-width: 40px;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settingsBtn.active {
  background: var(--teal);
  color: #fff;
}

@media (max-width: 360px) {
  .top .brand {
    font-size: 19px;
  }
  .switcherLabel {
    display: none;
  }
  .headerActions .iconBtn {
    min-width: 40px;
  }
}

.app.locked .headerActions,
.app.locked .nav {
  display: none;
}

.app.locked {
  padding-bottom: 30px;
}
