
.theme-toggle {
  background: var(--surface-2, #f0f0f0);
  border: 0;
  padding: 0.2rem 0.2rem;
  line-height: normal;
  display: flex;
  align-items: center;
  /* gap: 8px; */
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  width: max-content;
}

.theme-toggle-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.switches {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

@media (prefers-reduced-motion: no-preference) {
  .theme-toggle-text {
    transition: opacity .2s var(--ease-3);
  }
}

body {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: sans-serif;
}

.page {
  display: grid;
  gap: 1rem;
}

.empty-state {
  color: #555;
}

.auth-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.auth-card p {
  margin: 0;
}

.auth-field {
  display: grid;
  gap: 0.25rem;
}

.auth-input {
  padding: 0.5rem;
}

.auth-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-actions button {
  padding: 0.6rem 1rem;
}

.auth-footer[data-visible='0'] {
  display: none;
}

.auth-status[data-error='1'] {
  color: #8b0000;
}

.nutrition-summary {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.nutrition-summary h2 {
  margin: 0;
}

.nutrition-table-wrap {
  overflow-x: auto;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.nutrition-table th,
.nutrition-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.nutrition-table th:nth-child(n + 5),
.nutrition-table td:nth-child(n + 5) {
  text-align: right;
}
