:root {
  --accent-error: #a43e32;
  --surface-input: #fffdf7;
  --text-secondary: #4e4a44;
}

.app-header__brand,
.app-header__actions {
  flex-shrink: 0;
}

.auth-shell {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: 2rem 1rem 3rem;
}

.auth-shell--wide {
  max-width: 44rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.settings-panel {
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: 0 8px 24px var(--shadow-ambient);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--surface-panel);
  font-family: var(--font-sans);
  line-height: 1.45;
}

.alert-info {
  border-color: color-mix(in srgb, var(--accent-secondary) 55%, var(--border-strong));
  background: color-mix(in srgb, var(--accent-secondary) 10%, var(--surface-panel));
}

.alert-outline {
  background: transparent;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-subtle);
}

.btn-soft {
  border: 1px solid var(--border-strong);
  background: var(--surface-panel);
  color: var(--accent-primary-strong);
  box-shadow: none;
}

.btn-soft:hover {
  background: color-mix(in srgb, var(--accent-primary) 8%, var(--surface-panel));
}

.dashboard-mobile-search {
  display: none;
}

.cookbook-card--static {
  cursor: default;
}

.cookbook-card--static:hover {
  border-color: var(--border-subtle);
  box-shadow: 0 8px 32px 0 var(--shadow-ambient);
}

.release-static-label {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface-panel);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 56rem) {
  .dashboard-shell {
    height: calc(100vh - 72px);
    flex-direction: column;
  }

  .dashboard-shell > .app-sidebar {
    width: 100%;
    flex: none;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
  }

  .dashboard-shell > .app-sidebar .app-sidebar__brand,
  .dashboard-shell > .app-sidebar .app-sidebar__search,
  .dashboard-shell > .app-sidebar .app-sidebar__status {
    display: none;
  }

  .dashboard-shell > .app-sidebar .app-sidebar__nav {
    display: flex;
    flex: none;
    min-width: max-content;
    margin: 0;
    padding: 0.5rem;
  }

  .dashboard-shell > .app-sidebar .app-sidebar__nav > a {
    min-height: 44px;
    margin-inline: 0.125rem;
    padding-inline: 0.875rem;
    white-space: nowrap;
  }

  .dashboard-main {
    padding: 1rem;
  }

  .dashboard-mobile-search {
    display: block;
    margin-bottom: 1rem;
  }

  .dashboard-graph {
    height: 16rem;
  }
}

@media (max-width: 40rem) {
  .app-header {
    height: 64px;
  }

  .dashboard-shell {
    height: calc(100vh - 64px);
  }

  .app-header__inner {
    padding-inline: 1rem;
  }

  .app-header__actions {
    gap: 0.625rem;
  }

  .app-header__actions a {
    font-size: 0.8125rem;
  }

  .app-header__email {
    display: none;
  }

  .app-flash {
    top: 64px;
    padding-inline: 1rem;
  }

  .auth-shell {
    padding-top: 1.5rem;
  }

  .settings-panel {
    padding: 1rem;
  }
}

@media (max-width: 22rem) {
  .app-header__brand-name {
    display: none;
  }
}
