@layer lf-pages {
body.dashboard-client-flat-theme > .shell .topbar.app-topbar.lf-unified-app-header {
  min-height: 54px;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .dashboard-welcome-title {
  margin: 0;
  font-size: var(--lf-font-size-xl);
  line-height: 1.1;
  font-weight: var(--lf-font-weight-820);
}

body.dashboard-client-flat-theme > .shell .topbar.app-topbar.lf-unified-app-header .subtitle {
  max-width: 720px;
  font-size: var(--lf-font-size-sm);
  line-height: 1.35;
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .topbar.app-topbar.lf-unified-app-header .app-header-title-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: var(--lf-radius-md);
}

body.dashboard-client-flat-theme > .shell .app-topbar-actions {
  gap: 8px;
  padding-top: 2px;
}

body.dashboard-client-flat-theme > .shell .dashboard-today-pill,
body.dashboard-client-flat-theme > .shell .user-chip-icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-pill);
  background: var(--lf-color-surface);
  color: var(--lf-color-text);
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .dashboard-today-pill {
  width: auto;
  min-width: 0;
  padding: 0 10px;
  grid-auto-flow: column;
  gap: var(--lf-space-2);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
}

body.dashboard-client-flat-theme > .shell .dashboard-today-pill svg {
  width: 14px;
  height: 14px;
}

body.dashboard-client-flat-theme > .shell .lf-header-search {
  min-width: 36px;
  height: 36px;
}

body.dashboard-client-flat-theme > .shell .lf-header-search-field {
  min-height: 40px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-pill);
  background: var(--lf-color-surface);
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .theme-toggle-btn[hidden] {
  display: none !important;
}

body.dashboard-client-flat-theme > .shell .user-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 2px 8px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-pill);
  background: var(--lf-color-surface);
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .user-chip-actions {
  gap: 2px;
}

body.dashboard-client-flat-theme > .shell .user-chip .user-chip-icon-btn {
  border-color: transparent;
  background: transparent;
}

body.dashboard-client-flat-theme > .shell .user-chip .user-chip-icon-btn:hover {
  background: var(--lf-color-surface-muted, #f1f5f9);
}

body.dashboard-client-flat-theme > .shell .notification-badge {
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: var(--lf-font-size-xs);
}

body.dashboard-client-flat-theme > .shell .user-chip-profile-link,
body.dashboard-client-flat-theme > .shell :is(.user-chip-profile-anchor, .user-chip-profile-link > a) {
  gap: 8px;
}

body.dashboard-client-flat-theme > .shell .topbar.app-topbar.lf-unified-app-header .user-avatar {
  width: 34px;
  min-width: 34px;
  height: 34px;
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme > .shell .user-name {
  max-width: 96px;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-820);
}

body.dashboard-client-flat-theme > .shell .user-chip-inline-logout {
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin-left: 2px;
  border-radius: var(--lf-radius-pill);
}

body.dashboard-client-flat-theme > .shell .user-chip-inline-logout:hover {
  background: var(--lf-color-surface-muted, #f1f5f9);
}

@media (max-width: 640px) {
  body.dashboard-client-flat-theme > .shell .topbar.app-topbar.lf-unified-app-header {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  body.dashboard-client-flat-theme > .shell .dashboard-welcome-title {
    min-width: 0;
    font-size: var(--lf-font-size-xl);
    overflow-wrap: anywhere;
  }

  body.dashboard-client-flat-theme > .shell .app-topbar-actions {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-left: 0;
  }

  body.dashboard-client-flat-theme > .shell .dashboard-today-pill {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  body.dashboard-client-flat-theme > .shell .dashboard-today-pill [data-dashboard-today-text] {
    display: none !important;
  }

  body.dashboard-client-flat-theme > .shell .lf-header-search.is-open {
    width: 100%;
    flex: 1 0 100%;
  }

  body.dashboard-client-flat-theme > .shell .lf-header-search.is-open .lf-header-search-field {
    left: 0;
    right: auto;
  }

  body.dashboard-client-flat-theme > .shell .user-chip {
    max-width: calc(100% - 84px);
    gap: 4px;
    padding-right: 2px;
  }

  body.dashboard-client-flat-theme > .shell .user-chip-actions,
  body.dashboard-client-flat-theme > .shell .user-chip-profile-link {
    gap: 2px;
  }

  body.dashboard-client-flat-theme > .shell .user-chip-profile-link > a {
    flex: 0 0 auto;
    gap: 0;
  }

  body.dashboard-client-flat-theme > .shell .user-name {
    display: none !important;
  }

  body.dashboard-client-flat-theme > .shell .user-chip-inline-logout {
    margin-left: 0;
  }
}
}
